Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Getting the Page Title valueGetting the Page Title value
Previous
 
Next
New Post
8/24/2009 8:07 AM
 

Hi

Timo will probably have the answer for this - I've seen the answer before but cannot find it...

I'd like to get the page title value from a DNN page to use in some markup for my skin.  I know that this call works to get the Site / Portal Title...:

<%= PortalSettings.PortalAlias.HTTPAlias%>

...but I'm looking for the individual page title.  So something like: <%= PortalSettings.PortalAlias.PageTitle%> or whatever...

Any help would be appreciated.

Jon


Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
New Post
8/24/2009 8:14 AM
 

OK, so after a little further investigation, is it this..?

<%=PortalSettings.ActiveTab.TabName %>

Jon


Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
New Post
8/24/2009 12:18 PM
 

Jon, that reminded me of a project I was working on last week.

It's a skin that demonstrates some of the Framework Attributes you can use inline in your ASCX skin.
I just finished it and uploaded it to codeplex: http://dnnskinobjects.codeplex.com

Some of the examples are:

Portal URL / Alias = PortalSettings.PortalAlias.HTTPAlias
Portal ID = PortalSettings.PortalAlias.PortalID
Portal Description = PortalSettings.Description
Portal Namen = PortalSettings.PortalName
Portal Admin Email address = PortalSettings.Email
Portal home folder = PortalSettings.HomeDirectory
Link to Home page = NavigateUrl(PortalSettings.HomeTabId)
Link to Splash page = NavigateURL(PortalSettings.SplashTabId)
Link to Host page = NavigateURL(PortalSettings.SuperTabId)
Link to Admin page = NavigateURL(PortalSettings.AdminTabId)

Page Description = PortalSettings.ActiveTab.Description
Page Link = PortalSettings.ActiveTab.FullUrl
Page Name = PortalSettings.ActiveTab.TabName
Page Title = PortalSettings.ActiveTab.Title
Page Keywords = PortalSettings.ActiveTab.KeyWords
Page Keywords = PortalSettings.ActiveTab.TabID
Page Level = PortalSettings.ActiveTab.Level

 
New Post
8/24/2009 1:08 PM
 

Is there anything that will return the path to the logo file?  I tried the following but it doesn't work.  I'm trying to hardcode the logo file into my skin - is there a better way?

img src="./Portals/<%= PortalSettings.PortalName%>/<%= PortalSettings.LogoFile%>"  />

<

 
New Post
8/24/2009 1:29 PM
 

Joan wrote

I'm trying to hardcode the logo file into my skin - is there a better way?

Joan, you could try my technique found here...  Just look for my posts on this - let me know if it helps. Essentially, I create an H1 header for the page and style it to display as a background image.

Jon


Shebang Websites - A product of Mogridge Design
Hey, we're partnered with UntangleMyWeb.com

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Getting the Page Title valueGetting the Page Title value


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out