ASPX templates
Version 3.x > ASPX templates > CMSBreadCrumbs - Adding Parameters View modes: 
User avatar
Member
Member
genglish - 2/5/2009 3:42:04 AM
   
CMSBreadCrumbs - Adding Parameters
Hello,

I am using the CMSBreadCrumbs control in my master page.

I have a generic page that accepts an ID parameter. The CMSBreadCrumbs control renders this page in the bread crumb trail, however it doesn't have the parameter value that was passed to the page.

Is there a way that I can add parameters to the break crumb links?

I attempted to modified the CMSBreadCrumbs DataSource (which is a DataSet) however, there isn't a column that contains the URL. I believe that when the CMSBreadCrumbs control is render it uses the alias path to generate the URL.

I also can't find any info on the RenderHTML(bool) method. I was thinking that maybe I can modify the DataSource and call the RenderHTML method, but I don't know the schema that the DataSource should be.

Thanks,
Garry

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 2/9/2009 4:09:26 AM
   
RE:CMSBreadCrumbs - Adding Parameters
Hello Garry,

You could really use the RenderHTML method. You could use it like this:

breadcrumbID.RenderedHTML = new_content (e.g. breadcrumbID.RenderedHTML.change_something)

Best regards,
Helena Grulichova

User avatar
Member
Member
genglish - 2/16/2009 4:31:42 PM
   
RE:CMSBreadCrumbs - Adding Parameters
Thanks for your reply Helena.

This appears to defeat the purpose of the BreadCrumb control. I would like the control to handle all of the rendering. I would simply like to add a parameter to the URL that the breadcrumb control is rendering. For example:

( (DataSet) this.breadCrumb.DataSource ).Tables[0].Rows[0]["URL"] += "?paramName=Value";

This seems like a very common request. Is there not another way?

Thanks,
Garry

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 2/24/2009 6:08:26 AM
   
RE:CMSBreadCrumbs - Adding Parameters
Hello Gary,

you could for example replace your extension (e.g. ‘.aspx’) with the extension with query string (e.g. ‘.aspx?paramName=Value’).

There is not any easy way to ensure this functionality - we have not yet met such requested behavior before.

Best regards,
Helena Grulichova