Developer forum

Forum » Development » Acces paragraphmodule settings in my ProductListTemplateExtender

Acces paragraphmodule settings in my ProductListTemplateExtender


Reply

Hi guys,

 

I'd like to access a module setting from a paragraph in my ProductListTemplateExtender.

What i'd like to figure out which sorting is set for the product loop i'm extending.

 

Can it be done? i'm guessing that since the extender only has acces to a Template object, the settings needs to be in there som how.

 

But maybe there is some other way.

 

Thanks..


Replies

 
Reply

Base.GetparagraphModuleSettings(ID);

 
Reply
Sorensen wrote:

Base.GetparagraphModuleSettings(ID);


That will give me the Module settings for a given paragrah, but do i know what paragraph i'm on?

 
Reply

If you're using the ContentModule approach, the paragraph id is in the ParagraphRow object of the base class. Check this out: http://developer.dynamicweb.dk/default.aspx?id=16918&action=ShowArticle&ArticleID=132

 

If you're using the Custom module handler in Default.aspx, the ID is in DataRow objec that is passed as one of the arguments to your output method, if you've made it as we suggest in the Default.aspx codebehind file.

 

You must be logged in to post in the forum