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

Home: Discontinued Products: Article Manager 1 Add-ons:
Adding a second category_list template

 

 


wclendining
New User

Dec 16, 2005, 5:59 PM

Post #1 of 3 (1756 views)
Shortcut
Adding a second category_list template Can't Post

I have modified the standard category_list.html template that comes with Article Manager no problem, and I am using this to presetnt my categories along the left panel. Now what I want to do is include a list of links to the level 1 categories at the footer of each page. I have tried pasting in the code from the category_list.html file (that works) into my template... but it seems to be stripped out. I can include via SSI a file, but I can't get this file to be processed by Article Manager to resolve statements like:

Code
<!-- template insert : $category_list$ --> 
<!-- templatecell : row_depth1 -->
<div class="ln_r1_off"><a href="$url_index$">$cat_name$</a></div>
<!-- /templatecell : row_depth1 -->

Can anyone help...

Warren


jcocking
User

Dec 17, 2005, 7:24 AM

Post #2 of 3 (1746 views)
Shortcut
Re: [wclendining] Adding a second category_list template [In reply to] Can't Post

One of the keys to understanding what you can and can not do with AM is what variables you can use on each template. Within the documentation, http://www.interactivetools.com/docs/articlemanager/admin/index.html, there is a section called reference. Within the reference section each template type is listed. This documentation shows the which variables will work within each template type.

The only template that supports a "template cell" of "row_depth" is the category list template. Placing this code in any other template type will be removed/ignored by AM.

It appears you are developing a common footer for your website. For most sites, this is hand coded html that is included on every page. This allows you to only have one page that is required to be edited for all your pages.

jeff
Jeff Cocking
Lotus Elan (AM 1.38)
VoIP Phone Comparisons (AM 2.02)


ross
Staff / Moderator


Dec 17, 2005, 10:22 AM

Post #3 of 3 (1739 views)
Shortcut
Re: [wclendining] Adding a second category_list template [In reply to] Can't Post

Hi Warren.

Thanks for posting and welcome to the board!

From the sounds of it you wanted to have just the level 1 categories appearing down the left side of your page, then all the level 2 categories from the category you are looking at appear at the bottom of the page.

Does that sound right?

It is possible to set this up but there are few steps. You’ll definitely want to have a backup of your templates handy Smile. Here’s how to do it:

1. Log into Article Manager and go to Setup Options.

2. On the Server tab, scroll down to the Subcategory Settings section and check off the Subcategories Only button. Hit Publish All.

3. Open your index templates (/templates/index/default.html) and look for this code:


Code
    <!-- INCLUDE CATEGORY LIST --> 
<!--#include virtual="$publishdir_virtualpath$$file_categories$" -->


Change that to read:


Code
    <!-- INCLUDE CATEGORY LIST --> 
<!--#include virtual="$publishdir_virtualpath$/category_list.shtml$" -->


4. In the footer section of your template, add the following line:


Code
  
<!-- INCLUDE CATEGORY LIST -->
<!--#include virtual="$publishdir_virtualpath$/category_list.shtml" -->


And that should be it. Once you finish this, do the same for your article template (/templates/article/default.html) then republish your articles from within Setup Options.

Does that make sense? Give it a shot and let me know how you make out Smile.
-----------------------------------------------------------
Cheers,
Ross Fairbairn - 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