Developer forum

Forum » Development » Access FilePublisher settings

Access FilePublisher settings

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I was wondering if I can use the API to access some settings of the FilePublisher module.

Mainly, I am interested in "Folder" property.

Thank you,

Adrian


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

If you are in the context of the current paragraph being rendered, i.e. in a Razor file within the module, you can do like this:

var folder = Pageview.CurrentParagraph.ModuleProperties.Value["FilepublishFolder"]

Or you can call the paragraph service, GetById and access Paragraph.ModuleProperties.Value["FilepublishFolder"]

BR Nicolai

Votes for this answer: 1
 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

Thank you very much.

It is exactly what I needed.

Adrian

 

You must be logged in to post in the forum