
LiquidQuest
User
Aug 2, 2006, 11:48 AM
Post #3 of 3
(1364 views)
Shortcut
|
|
Re: [dean_i] Specific category & article in index page
[In reply to]
|
Can't Post
|
|
insert specific category & specific article in index page? i think you want to change the default layout format in the index page from an "article list" to a specific category that you have, showing only the content of the latest article body inserted into that same category. is that right? if so, do the following: 1) Turn off Global Index publishing - go to your admin control panel, choose Setup Options, then click on the Server tab. - go down to where Global Index, and deselect the checkbox on its right. - click save 2) Specify which category you want to show as your index - go to Category Editor, go down to the category you want to show as your site mainpage, and click on modify. - go to where it says "Category Filename" - select "Use filename:" and type in "index" (without the quotes) in the text field. - click save 3) Create the template to carry out the publishing rules for this category.: - copy and paste the following code into the template section (NOTE: this template should be located under the /templates/index folder) where you want your article content to show:
<!-- template insert : $article_list$ --> <!-- templatecell : row --> $art_name$ <script language="javascript" src="$url_publish$pagebreak.js"></script> <script language="javascript"><!-- var showPageNavTop = 1; var showPageNavBot = 1; var showPageNavAll = 0; var PageMarker = '<!--page--\>'; var PageContent= '$art_content_je$'; PrintArticle(); // --> </script> <!-- /templatecell : row --> <!-- templatecell : row_summary --> <!-- /templatecell : row_summary --> <!-- templatecell : row_link --> <!-- /templatecell : row_link --> <!-- templatecell : row_ufile --> <!-- /templatecell : row_ufile --> <!-- templatecell : not_found --> <!-- /templatecell : not_found --> <!-- templatecell : img_caption --> <table border=0 cellspacing=2 cellpadding=0 width=$img_width$ align="left"> <tr><td><img src="$img_url$" height="$img_height$" width="$img_width$" border=1 /></td></tr> <tr><td><span class="image_caption">$img_caption$</span></td></tr> </table> <!-- /templatecell : img_caption --> <!-- templatecell : img_nocaption --> <table border=0 cellspacing=2 cellpadding=0 width=$img_width$ align="left"> <tr><td><img src="$img_url$" height="$img_height$" width="$img_width$" border=1 /></td></tr> </table> <!-- /templatecell : img_nocaption --> <!-- template insert : $prev$ --> <!-- templatecell : prev --> <!-- /templatecell : prev --> <!-- templatecell : no_prev --> <!-- /templatecell : no_prev --> <!-- template insert : $next$ --> <!-- templatecell : next --> <!-- /templatecell : next --> <!-- templatecell : no_next --> <!-- /templatecell : no_next --> <!-- template insert : $more$ --> <!-- templatecell : more --> <!-- /templatecell : more --> <!-- templatecell : no_more --> <!-- /templatecell : no_more --> - Save this file as "frontpage.html" (or any other name you want) - upload to your /cgi-bin/artman/templates/index" folder 4) choose the correct template to publish the category index page - on that same page as step #2, find the "Templates" section - choose the correct template which has the coding in the next steps by clicking the "Category Index Page" drop down menu, and selecting "frontpage.html". - click save 5) copy the attached JavaScript file "pagebreak.js" into your publish directory. without it you will get a blank area where your content should be. (file is attached to the bottom of this post). i hope i was of help. let me know if you dont understand any of the above steps. Marssin
(This post was edited by LiquidQuest on Aug 2, 2006, 11:58 AM)
|