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 1:46 PM
 

Timo Breumelhof wrote

Page Title = PortalSettings.ActiveTab.Title

Thanks Timo!  For those of you paying attention, the answer to my question is:

<%=PortalSettings.ActiveTab.Title%>

My question kinda revolves around my bounce back-and-forth on Wells Doty's thread on Header Tag / Logo Replacement, found here.  Essentially, I've used this in the following way...

<div class="logo-wrpr">
<dnn:LOGO runat="server" id="dnnLOGO" />
<h1 class="logo">
<a title="<%= PortalSettings.PortalAlias.HTTPAlias%>" href="#">
<span><%=PortalSettings.ActiveTab.Title%></span></a></h1>
</div>

And then the CSS (again, this is for a specific skin:

.logo-wrpr { float: left; width: 470px; max-width: 470px; height: 80px; overflow: hidden; }
.logo { margin: 0; padding: 0; }

The only reason I've used the [LOGO] token is that this markup is for a paying client who insisted on using "convetional" DNN skinobjects, rather than CSS background images.  Ultimately, I would revise my Header / Logo replacement to the following:

<h1 class="logo"><a title="<%= PortalSettings.PortalAlias.HTTPAlias%>" href="<%= PortalSettings.PortalAlias.HTTPAlias%>"><%=PortalSettings.ActiveTab.Title%></a></h1>

And then style as I mention in the Header / Logo Replacement Thread.

Thanks again, Timo for the list - very, very handy bit of info to have...


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

 
New Post
8/24/2009 3:47 PM
 

Joan wrote

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%>"  />

<

<img src="<%=PortalSettings.HomeDirectory & PortalSettings.LogoFile%>" alt="logo" />

(I added this one to the example skin too)

 
New Post
8/24/2009 3:59 PM
 

For Logo's I prefer to use a regular image, not a background-image because it gets indexed by google as content.
I'm considering that some user might google for images and I want the logo to show up in that case.

 
New Post
8/24/2009 4:49 PM
 

You make a valid point, but for me its about separating the display from the content.  I personally don't consider this content.  Images in a Gallery however, that's content and must get indexed.  Any image I consider content and contextual, gets a nice neat alt tag and is displayed and indexed as such. I've got either method pretty much down, so I guess it comes down to personal preference.


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

 
New Post
8/24/2009 5:01 PM
 

It looks like this has already been answered, but I wanted to get one more thought/option in on this.  My reason for replacing the logo in the skin is for the slight performance kick.  As such, I removed the "<%@ Register ..." for the LOGO tag and then hard code my site's logo like this:

 <div class="logo">
  <a id="logoDBR" title="Design Builders and Remodeling" href="/">
   <img id="logoDBR" src="/Portals/0/image/logoDBR_w230h160.gif" alt="Design Builders and Remodeling" /></a>
 </div>

It is a very minor performance enhancement, but it is one less thing DNN has to do during page construction! 


- Accuraty / Jeremy
 
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