Developer forum

Forum » CMS - Standard features » ItemPublisher condition using Session UserID

ItemPublisher condition using Session UserID

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I might remember it wrongluy but wasn'there a way to use Code in the conditions set on ItemPublisher?

My specific situation requires that I use the UserId of the user that is currently authenticated on the website.

I am thinking I can use the value from the session.

I could not find this part in the documentation. I could find the explanation on how to use Query string filtering but I would rather set this filter in the Module.

Thank you,

Adrian


Replies

 
Nuno Aguiar Dynamicweb Employee
Nuno Aguiar
Reply
This post has been marked as an answer

Hi Adrian,

 

I found this post frm you https://doc.dynamicweb.com/forum/dynamicweb-9-0-upgrade-issues/dynamicweb-9-0-upgrade-issues/item-publisher-does-not-support-code-and-request-anymore

 

Have you by any chance tried the ones from DataIntegration http://doc.dynamicweb.com/documentation-9/integration/data-integration-module/data-integration-module#5520 (scroll down until you find the table of reference.

 

Best Regards,

Nuno Aguiar

Votes for this answer: 1
 
Vladimir Shushunov Dynamicweb Employee
Vladimir Shushunov
Reply

Hi Adrian,

Nuno is right, item publisher has same feature to use Code in the conditions
For your case you could use: @User(ID)

Best regards,
Vladimir

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Vladimir,

Thank you.

I was just about to go with the Session approach but the User approach seems more obvious.

Thank you both.

Adrian

 

You must be logged in to post in the forum