Sign In  |  Register
 
 DotNetNuke Powered!
DotNetNuke Support Forums

DotNetNuke Tokens: Some tricks for getting more than SkinPath in your skin.

Rate this topic:

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.

Page 4 of 4<< < 1234
AuthorMessages
visionweaver
Posts:4



03/21/2008 4:08 PM  

I have a similar question to this one. If I wanted to include the page's (tab's) description on the page just under the title, what would the token be? I am guessing that it is <%=PortalSettings.ActiveTab.Description %>. Is that correct?

John Mitchell
Posts:2750



03/21/2008 4:28 PM  

Yes, PortalSettings.ActiveTab.Description is a valid property.

griederm
Posts:2



03/26/2008 8:36 AM  

Hi John,

I use the Snapsis NavMenu and localized it with the Apollo PageLocalization module. Now, I would like to output the top-level navigation item name. I tried the following:

<%=PortalSettings.ActiveTab.BreadCrumbs(0).TabName%>

...but this always returns the name in the language, i originally entered. How to output the localized (translated) value for the currently selected language?

Cheers,
Marcel

John Mitchell
Posts:2750



03/26/2008 1:24 PM  
Hi Marcel,
The BreadCrumbs are not translated, but something like this may work:

<%= CType(PortalSettings.DesktopTabs(0),DotNetNuke.Entities.Tabs.TabInfo).TabName %>

Otherwise I would look for a special Breadcrumb that can be translated. I think Apollo does one.
griederm
Posts:2



03/27/2008 7:11 AM  

Hi John,

Thanks for your answer.
Actually, all i wanted to do was to return the current 1st level menu item (localized) name, which would always be the first entry in a breadcrumb navigation.

For instance with the menu structure:

Home
Products
- Software
- Hardware
About Us
- Jobs

On the page "Hardware", it should return the string "Products" in the current language. Is this possible?

Cheers,
Marcel

John Mitchell
Posts:2750



03/27/2008 2:45 PM  
You should probably get a localizeable Breadcrumb SkinObject to do that. I've been trying to figure out a way to do it, and all I can come up with would take a lot of code. Erik, who does the Apollo PageLocalization module may have a way to do it, and I think he has a module called MLBreadcrumb.
schotman
Posts:2



04/10/2008 7:25 AM  

Yes, MLbreadcrumb, is just the localized version of the normal breadcrumb skinobject.

Peter

Please Register to post a reply.
Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Page 4 of 4<< < 1234

Forums >DotNetNuke Support >Tips-And-Tricks > DotNetNuke Tokens: Some tricks for getting more than SkinPath in your skin.



ActiveForums 3.7
Visit our Store for great DotNetNuke Modules and Skins
DNNMasters Sitemap/Google Sitemap 3.0

Item codeSM3-01
Price$29.00
Product Information 
DotNetNuke CSS NavMenu 3.3 (Developers)

Item codeCSSNM33DEV
Base Price$149.00
Product Information 
Snapsis PageBlaster 3.3.1 for DotNetNuke - Professional Edition

AuthorJohn Mitchell
Base Price$79.00
Product Information 
XDAkuna (Web 2.0 CSS XHTML Skin)

Item codeXDAkuna
AuthorNina Meiers
Price$49.00
Product Information