 |

joelozito
User
Jul 10, 2008, 4:15 PM
Post #1 of 4
(913 views)
Shortcut
|
|
Adding category index to article page
|
Can't Post
|
|
Hi all, I have kind of an odd question: in one category, at the bottom of the article page content, I want to place the category article listing again. Meaning, in an article page, you'd see the article body copy, then under it you'd get a list of all the articles in that category (just like in the index). I tried adding the category index template to my article template but got all sorts of errors. Any ideas? Thanks! Joe
|
|
|  |
 |

Jake
Staff
/ Moderator

Jul 11, 2008, 1:22 PM
Post #2 of 4
(886 views)
Shortcut
|
|
Re: [joelozito] Adding category index to article page
[In reply to]
|
Can't Post
|
|
Hi Joe, To set this up, you would need to create a new template file that only had the code required to display the article titles and their links. Here's some code you could use for this:
<!-- template insert : $articleList$ --> <!-- templatecell : articleRow --> <a href="$published.articlePage.url$">$article.title$</a><br /> <!-- /templatecell : articleRow --> Now you'd need to create a new "list of articles" publishing rule that will create files with this template. You would then add an include statement to your articlePage.html template to bring in this list of articles. For example, if you gave you publishing rule a placeholder set name of "headlineArticles", then the resulting code would look like this:
<!--#include virtual="$published.headlineArticles.webpath$" --> Let us know if you have any other questions about this. ----------------------------------------------------------- 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.
|
|
|  |
 |

joelozito
User
Jul 11, 2008, 1:48 PM
Post #3 of 4
(883 views)
Shortcut
|
|
Re: [Jake] Adding category index to article page
[In reply to]
|
Can't Post
|
|
Perfect, Jake, thanks! Worked on the first try. You guys rock, -joe
|
|
|  |
 |

carminejg3
User
Jul 15, 2008, 10:10 AM
Post #4 of 4
(442 views)
Shortcut
|
|
Re: [joelozito] Adding category index to article page
[In reply to]
|
Can't Post
|
|
Awesome Jake, I'm going to use this as well. Great for a Related Articles: section. One question: Is there a way to randomize the articles? I dont think there is but just looking at the options to this. Webmaster http://news.carjunky.com
|
|
|  |
|