 | |  |
 |

Owenk
User
Aug 27, 2008, 3:18 AM
Post #1 of 4
(1503 views)
Shortcut
|
|
sub nav highlight current
|
Can't Post
|
|
Hi there I'm trying to make a sub nav so its stays highlighted when a user clicks on a button. i have done this successfully with PHP using this code: ------------------------------------------------------------------------------ <!-- templateIf : $articleList$ eq "" --> Sorry, no articles were found. <!-- /templateIf --> <ul> <!-- template insert : $articleList$ --> <!-- templatecell : articleRow --> <?PHP if($article_url == "$published.articlePage.url$"){?> <li class="current"><a href="$published.articlePage.url$">$article.title$</a></li> <?}else{?> <li><a href="$published.articlePage.url$">$article.title$</a></li> <?}?> <!-- /templatecell : articleRow --> </ul> ------------------------------------------------------------------------- however I'm making an asp version which isn't working, the following code for that is: ------------------------------------------------------------------------- <!-- templateIf : $articleList$ eq "" --> Sorry, no articles were found. <!-- /templateIf --> <ul> <!-- template insert : $articleList$ --> <!-- templatecell : articleRow --> <% if article_url = "$published.articlePage.url$" then%> <li class="current"><a href="$published.articlePage.url$">$article.title$</a></li> <%else%> <li><a href="$published.articlePage.url$">$article.title$</a></li> <%End If%> <!-- /templatecell : articleRow --> </ul> ------------------------------------------------------------------------- This asp code isn't working, I think it has something to do with the article_url part of the code???? Some help would be greatly appreciated many thanks Owen
|
|
|  |
 |

Jake
Staff
/ Moderator

Aug 27, 2008, 8:21 PM
Post #2 of 4
(1463 views)
Shortcut
|
|
Re: [Owenk] sub nav highlight current
[In reply to]
|
Can't Post
|
|
Hi Owen, How are you defining the "article_url" variable? You might want to make sure that this is being assigned the correct value - that could be the cause of the problem here. ----------------------------------------------------------- Cheers, Jake Swanson - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

Owenk
User
Aug 28, 2008, 5:38 AM
Post #3 of 4
(1419 views)
Shortcut
|
|
Re: [Jake] sub nav highlight current
[In reply to]
|
Can't Post
|
|
Hi Jake thanks for the reply yea it was missing this little bit of important code Thispage ="http://" & Request.ServerVariables("SERVER_NAME") & Request.ServerVariables("URL") I have another question in regards to the category_article_list.html which one would use to make the main navigation of a site from the category's that which have created in AM2. However in category i have 14 unlinked categories, I set them to unlinked so they don't show up on the main nav. What I want to do is to make a navigation similar to category_article_list.html but the list would be made out of 7 of the 14 unlinked categories that i have. Is this possible? Thanks Again Jake
|
|
|  |
 |

Jake
Staff
/ Moderator

Aug 28, 2008, 11:08 PM
Post #4 of 4
(1388 views)
Shortcut
|
|
Re: [Owenk] sub nav highlight current
[In reply to]
|
Can't Post
|
|
Hi Owen, If the categories are set to "unlinked", the software won't be able to generate a list of the automatically for you at all. You would need to code the category links onto your pages manually. Let us know if you have any other questions. ----------------------------------------------------------- Cheers, Jake Swanson - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
|