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, ...Beginner Question:  Links to static pages in my skinBeginner Question: Links to static pages in my skin
Previous
 
Next
New Post
9/11/2010 2:16 PM
 
Hello,

In the skin I'm building there I am using the DNN Nav menu for the main pages of the skin, but there is also another set of links in the footer to a few static pages (Contact Us, Newsletters, etc...) that I do not want in the Nav menu.

I have built this menu using HTML elements in my skin, but how do I link those anchor tags to pages in the site?

Thanks!

-Ben
 
New Post
9/11/2010 5:05 PM
 
Hi Ben.

That's pretty simple, it depends on whether you want to refer to a static pure html page or a "real" page in your dnn-portal.

Put one of the following lines into the acsx-file of your skin.

1) For Example you have a html-file called impressum.html:
<a href="<%= Page.ResolveUrl("~/portals/0/junk/impressum.html") %>">Impressum</a>
This will call the html-file in the given folder, here is it the folder JUNK

2) To refer to a real page:
Call your page from e.g. the admin-pages-menu, remember the tabid and then e.g.:
<a href="/Default.aspx?tabid=162">Impressum</a>
So here is it the page with the tabid 162

That's it.

Kai
 
New Post
9/12/2010 7:18 AM
 
IMO this can be done even easier, without hard coding the links.
Simple create "dummy" pages for the menu and let them link to the URL you need by setting the "link URL" in the page settings.
This does mean you can only access the page settings through Admin > pages after you set the link to an external page.
Advantage is you can set both the link and the link text from the DNN admin interface.
 
New Post
9/12/2010 5:23 PM
 

Thanks for the replies guys.

I want the pages to be proper DNN pages so that the content pane is editable by the end user.  I understand the first solutions, but since the tabid values might change when I roll out to production so I don't necessarily want to hard code those.


Timo,

I'm not following your suggestion completely.   I understand that I can create a page that simply redirects to an external URL or a page within the site (or a file it appears) but I'm not quite certain how I use that in my situation.

These pages are being linked to from a UL in the footer, which is not editable in DNN so how would you use the interface to edit them?

Thanks guys, sorry for my cluelessness!

 
New Post
9/13/2010 4:46 AM
 
Ok, I did not understand (/read) your question completely.
I thought you were using nav at the bottom of the page.

There's another way to inject dynamic pages based on page name:

http://www.dotnetnuke.com/?TabName=About
takes you to the About page (this used to be case sensitive in pre 5.4 I think)
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Beginner Question:  Links to static pages in my skinBeginner Question: Links to static pages in my skin


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