Portal Engine
Version 3.x > Portal Engine > Possible to add a parameter to link in the wysiwyg editor? View modes: 
User avatar
Member
Member
gary.swanson-number41media - 2/6/2009 12:29:37 PM
   
Possible to add a parameter to link in the wysiwyg editor?
Hi,

We have a client with an existing kentico app built using web parts that we are doing some small changes for.

One change is this:
Current setup:
On a Product page - they have two links, one for a data sheet, one form a manual. These links take you to a documents page. On this page you have to select the product again from a custom built drop down list.

What they want:
They would like the manual or data sheet link to take you to the documents page and have the documentation already displayed for the product you were looking at.


The solution in my mind is to add the Product ID in a query string, and in the user control grab the id and run the query. Is it possible to do this in the wysiwyg editor? Or should I build a custom web part to do this?

thanks


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 2/9/2009 5:42:31 AM
   
RE:Possible to add a parameter to link in the wysiwyg editor?
Hi,

You can add to the links some query string parameter. Then, you can use e.g. the query string macro (www.kentico.com/docs/devguide/appendix_a___macro_expressions.htm) in the WHERE condition of the web part or in your custom control - it will read the macro value and according to this you can display certain document.

Best Regards,
Juraj Ondrus