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

Home: Products: Article Manager 2:
Displaying a List of Category Specific Articles Within an Article

 

 


LostCoder
User

Nov 2, 2006, 12:33 PM

Post #1 of 3 (390 views)
Shortcut
Displaying a List of Category Specific Articles Within an Article Can't Post

Hello,

In my old version of AM i would publish an article in 'Category 1' and when the article was viewed, there was a list of articles for that category at the bottom.

This was done by inserting the following code:

<?php include("/home/yyyyyyy/public_html/main/$file_headlines$"); ?>

The upgrade converted this line to say:

<?php include("/home/yyyyyyy/public_html/main/$published.categoryHeadlines.filename$"); ?>


------

I have changed the publish directory for the index pages to main_index and my articles are currently publishing as follows:

http://www.mysite.com/artman2/publish/CATEGORY1/articlename.php

Could you please help me to come up with the correct syntax for displaying article lists?

Also, I used to have a file called "headlines_plus.htm" where i would code up how i wanted the headlines to display.

Is there a similar file I need to update in AM 2?

Thanks.

LC


Theo
Project Manager / Moderator


Nov 2, 2006, 3:39 PM

Post #2 of 3 (381 views)
Shortcut
Re: [LostCoder] Displaying a List of Category Specific Articles Within an Article [In reply to] Can't Post

Thanks for posting, LostCoder!

I think this will be a quick fix for you. I suspect the problem is simply that the files you're trying to include aren't in the same location that they were before. So the hard-coded directory in your PHP includes isn't working.

Replace this include:

<?php include("/home/yyyyyyy/public_html/main/$published.categoryHeadlines.filename$"); ?>

With this one:

<?php include("$published.categoryHeadlines.filepath$"); ?>

And then republish your articlePages.

I hope that helps, let us know if you need any further assistance!


Theo Wiersma
Project Manager


LostCoder
User

Nov 3, 2006, 10:49 AM

Post #3 of 3 (370 views)
Shortcut
Re: [Theo] Displaying a List of Category Specific Articles Within an Article [In reply to] Can't Post

Good deal -- works like a champ.

Thanks for the assistance.

As a side note for other would-be article list publishers ---

The code Theo posted:
<?php include("$published.categoryHeadlines.filepath$"); ?>

basically tells the page to go to the "categoryHeadlines" place holder set name at 'Admin > Publishing'

This utilizes the 'categoryHeadlines.html' file located in cgi-bin/artman2/templates/articlelists directory.

So, to change the display of your article list, just change around the look and feel in the aforementioned .html file.

Or, you can always create a new html file called whatever you want and set it up as needed. Just remember to change the Template under the placeholder set name.


--wow -- i like the new AM :)

Thanks Theo.

LC

 
 
 


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