Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Article Manager 2:
sub nav highlight current

 

 


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. Smile
-----------------------------------------------------------
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. Smile
-----------------------------------------------------------
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.


 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Support
Online Documentation
Support Forums
Support Homepage
Company Info
12 reasons to choose us!
Meet the team
Monthly newsletter
Contact Us
Toll Free: 1-800-752-0455
Phone: (604) 689-3347
Sales | Support
Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
#201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4