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

Home: Products: Article Manager 2:
Article page if statment

 

 


Owenk
User

May 9, 2008, 8:58 AM

Post #1 of 5 (345 views)
Shortcut
Article page if statment Can't Post

Hi there

I have a small if statement question.

The site I'm building has a main navigation across the top and on the left side of the site just below the main nav is a sub navigation created using category_article_list.html, the sub nav is present in all pages.

The thing is on one of the article pages i don't want the sub nav to show. I figured this would be something like a templateif statement but not sure where to place it or what to query in the statement??

Many thanks for your help
Owen


MikeB
Staff / Moderator


May 9, 2008, 1:03 PM

Post #2 of 5 (337 views)
Shortcut
Re: [Owenk] Article page if statment [In reply to] Can't Post

Hi Owen,

Thanks for posting! Smile

You mentioned that there is one specific article that you don't want the menu to show up on, is there anything that distinguishes this article from the others? Or would there be any other articles you'd need to set this up for? What we'd want to do is track down one field or value that will work to distinguish these from the rest of the site and then use that as part of the templateIf statement.

From there we should be able to add the if statement right in the articlePage.html template file so the include will only be brought in for the appropriate articles.

I hope this helps and I look forward to hearing from you! Smile

Cheers,
Mike Briggs - 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

May 12, 2008, 2:30 AM

Post #3 of 5 (320 views)
Shortcut
Re: [MikeB] Article page if statment [In reply to] Can't Post

Hi Mike

The site has a category named news this page has an include file that includes the contents made by the categoryHheadlines.html page I created. Then the user would scroll down the page to see the various news articles, under each news article their is a view more button when the user clicks that they are taken to that news article page which works great but on the left the sub nav is populated by the list of news articles which just looks silly because over the life of the site their could potentially be hundreds of news articles ya know.

I suppose the distinguishing part of the page would be the category name of "News" so I suppose that would be the one to query.

Thanks a mill Mike
O


MikeB
Staff / Moderator


May 12, 2008, 10:44 AM

Post #4 of 5 (310 views)
Shortcut
Re: [Owenk] Article page if statment [In reply to] Can't Post

Hi Owen,

Thanks for the email and these details!

If this is the case, then you'll just want to modify your /articlePages/articlePage.html template file and find the include that you're using for the list of news articles.

You'll just modify the include you're using so it looks like this:

<!-- templateIf : $category.num$ == 'X'-->
<!--#include virtual="YOUR INCLUDE HERE"-->
<!-- /templateIf -->

Of course in this example, you'll want to find out the category number for your "News" category and use that to replace the "X" above. The easiest way to figure out the category number is to log into Article Manager and click "Categories". Click modify for your News category and then look at the URL in your web browser, it should look like this:


http://www.yoursite.com/artman/admin.cgi?action=categoryEdit&num=Y

The "Y" at the end of this line is the category number you can use.

I hope this helps Owen! Smile

Cheers,
Mike Briggs - 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

May 13, 2008, 2:54 AM

Post #5 of 5 (298 views)
Shortcut
Re: [MikeB] Article page if statment [In reply to] Can't Post

Excellent Mike That worked perfect, I'll remember that one, its handy.

Thanks again

Owen

 
 
 


Search for (options)
Products
CMS Builder
Article Manager
Realty Manager
Listings Manager
Order Now
Services
Priority Consulting
Hosting
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