1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Navigation: Custom template path example?

Navigation: Custom template path example?

8 posts, 0 answered
  1. Cory
    Cory avatar
    12 posts
    Registered:
    08 Mar 2012
    04 Apr 2012
    Link to this post
    I can't seem to find an example anywhere of what this template file should look like. Can anyone point me to a working example?

    Thanks
  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    05 Apr 2012
    Link to this post
    Hi Cory,

    The full widget templates for all sitefinity widgets are available after installing the Sitefinity SDK in zip files in the folder:

    C:\Program Files (x86)\Telerik\Sitefinity [Version]\SDK\Content\Resources

    I hope this is helpful!
  3. Cory
    Cory avatar
    12 posts
    Registered:
    08 Mar 2012
    05 Apr 2012
    Link to this post
    Thanks for the help. I've found the example, but the default template is just calling SiteMapNavigationTabStrip, which I can't seem to find in the SDK. Any ideas? All I want to do is over ride the HTML that is output by the nav.
  4. Cory
    Cory avatar
    12 posts
    Registered:
    08 Mar 2012
    05 Apr 2012
    Link to this post
    FYI I've followed this:  http://www.sitefinity.com/blogs/gabesumner/posts/11-12-14/how_to_disable_sitefinity_rsquo_s_default_navigation_styling.aspx to strip out the default styling, but all of the markup is still a mess of SiteFinicky code.
  5. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    05 Apr 2012
    Link to this post
    Are you attempting to strip out the default styling or the default markup? because as Gabe's blog suggests, you can certainly set EnableEmbeddedBaseStylesheet and EnableEmbeddedSkins to false in the template for SiteMapNavigationTabStrip.

    This will disable the additional Telerik css stylesheets that add skin styling to the control. however, the default markup is that of the RadTabStrip, which does not use a template to render the html, rather it's simply an instance of that control.

    I hope that makes sense, let me know if I misunderstood your question or if I can be of further help!
  6. Cory
    Cory avatar
    12 posts
    Registered:
    08 Mar 2012
    05 Apr 2012
    Link to this post
    You're right, I was confusing "styling" with "markup". I'm trying to get my own markup, so as to apply some previously working styling to it.

    So can I build my own instance of RadTabStrip or modify the existing one to write my own markup?

    Thanks again, SelArom.
  7. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    05 Apr 2012
    Link to this post
    As far as I know, the Rad Ajax controls can't be easily modifed with a template or anything like that...

    However, you could use either the Sitefinity API or the Sitemap as a datasource for a custom control. I've done this in the past when I need precice control over a navigation menu...
  8. Cory
    Cory avatar
    12 posts
    Registered:
    08 Mar 2012
    09 Apr 2012
    Link to this post
    Would there be a way for me to build a custom control, but still have the designer act like the "Custom selection of pages" option?
8 posts, 0 answered