Developer forum

Forum » Development » Dynamically set the number of products in a product list template

Dynamically set the number of products in a product list template


Reply
 Hi,

What i want to do is to give the user an option of selecting 10, 20 or 50 products on the frontend.

I also saw this old post about the same topic.
http://engage-dynamicweb.com/Forum-5.aspx?PID=34&action=ShowThread&ThreadID=22

Is this currently supported or possible via custom code?

Kind regards,
Remi

Replies

 
Reply
You can do it by code..

Subscribe to Dynamicweb.Notifications.Standard.Paragraph.OnBeforeRender

and then manipulate the module properties by setting "PageSize" to whatever you want.

...maybe :)

BR.
Morten
 
Reply
 i tried the Dynamicweb.Notifications.Standard.Paragraph.OnBeforeRender
i updated the PageSize element in Paragraph.Paragraph.ParagraphModuleSettings
This does not seem to work as my original PageSize is still being used.
Should this work or do you mean that it maybe works??

Regards,
Remi
 
Reply
got it working now via paragraphArgs.Paragraph.Paragraph.Row["ParagraphModuleSettings"]

it is confusing that Paragraph.Paragraph.ParagraphModuleSettings is not suitable for updating

 

You must be logged in to post in the forum