
Theo
Project Manager
/ Moderator

Jul 28, 2009, 11:17 AM
Post #2 of 7
(3783 views)
Shortcut
|
|
Re: [dondemaio] Inserting articles into current page
[In reply to]
|
Can't Post
|
|
Thanks for posting, Don. That link isn't working, so I can't get a perfect idea of what you're trying to do. :D From the sounds if it, you've installed Article Manager already, and you want to add a list of headlines to your home page, linking to the articles you're publishing elsewhere. Sound about right? What I'd do is: 1) Create a very simple template listing my headlines. Something like:
<!-- template insert : $articleList$ --> <!-- templatecell : articleRow --> <p><a href="$published.articlePage.url$">$article.title$</a></p> <!-- /templatecell : articleRow --> 2) Save it as "headlines.html" and upload it to [artman cgi folder]/templates/articleLists/ 3) Create a new Publishing Rule in Admin > Publishing - Click the "Create" button and name your new rule "Headlines" - Rule Type: "a list of articles" - Template: select your new /templates/articleLists/headlines.html file - Placeholder Set Name: headlines - Publish the headlines as "One File" and call it "headlines.<ext>" - Save the new rule, and then click the "publish" link next to it in your list. 3) Add a server side include to your home page. <!--#include virtual="/[ARTMAN PUBLISH FOLDER]/headlines.shtml" --> 4) You might need to change your home page to be index.shtml to get includes working with it. Then you can work with your headlines template to tweak the design, etc, or add other article fields like $article.summary$ or the category associated with it. Hope that helps, Don! Talk to you soon. :) Regards, Theo Wiersma Project Manager
|