Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

display page title in DNN Skin

i want to use the active "tab"-name or page name inside my DNN Skin.

I can't find anything on the web about it (which is slightly odd). I'm looking for a control or sth. which i could use inside my ascx-file.

like image 569
Peter Avatar asked Dec 12 '22 04:12

Peter


1 Answers

I don't think that there is a built-in skin object for displaying the name of the page. You can use this snippet in your skin to get the page's name:

<%= Server.HtmlEncode(PortalSettings.ActiveTab.TabName) %>

You can also get the page's title (the text displayed in the browser window title) via

<%= Server.HtmlEncode(PortalSettings.ActiveTab.Title) %>
like image 109
bdukes Avatar answered Jan 03 '23 11:01

bdukes