Developer forum

Forum » Development » Set itemfield value to current backend user

Set itemfield value to current backend user

Lars Larsen
Reply

Hi,

I have made an itemtype with a field of type "Dropdown_list". The list is populated with records (users) from the table "AccessUser". I have attached the itemtype to the pageproperties for all pages on my website (Websites - Item type - Page properties). Now when a user creates a page I want my itemtype field to be set to the AccessUserID for the current user who creates the page. How can I achieve that behaviour?


Replies

 
Mikkel Ricky
Reply
This post has been marked as an answer

In Dynamicweb 8.3.1.1, we've implemented "Context sensitive default values" [http://developer.dynamicweb-cms.com/releases/dynamicweb-8-3-1.aspx#12999], but currently they only work for item based pages and paragraphs. In the near future they will also work for page properties as this makes sense as well.

 

We're currently working on documenting this feature.

 

 

 

Votes for this answer: 1
 
Lars Larsen
Reply

ok, thanks for your answer. I look forward to have context sensitive default values also for page properties also :-)

 
Mikkel Ricky
Reply
This post has been marked as an answer

I've just commited a fix that makes context sensitive default values work for website and page properties. Hopefully it will be released very soon.

Votes for this answer: 1
 
Lars Larsen
Reply

That sounds great, thanks :-)

 

You must be logged in to post in the forum