 |

dean_i
New User
Aug 1, 2006, 7:06 PM
Post #1 of 3
(668 views)
Shortcut
|
|
Specific category & article in index page
|
Can't Post
|
|
Hi, How do I insert specific category & specific article in index page? I just re-design a site http://www.halaljournal.com Let say in 'Company in Focus'. What should I do if I want to insert an article from 'Company in Focus' category? So far I just copy & paste from the article. It's not practical for me to do that way
|
|
|  |
 |

ross
Staff
/ Moderator

Aug 2, 2006, 11:02 AM
Post #2 of 3
(654 views)
Shortcut
|
|
Re: [dean_i] Specific category & article in index page
[In reply to]
|
Can't Post
|
|
Hi there. Thanks for posting and welcome to the board! To be honest though, I am not sure exactly what you are trying to setup here. Did you want to have just a single article appear on the index of each category? Or were you looking to be able to choose a specific article to appear on each index page. If you could get me some more details, I’d be more than happy to go over the different options you have . ----------------------------------------------------------- 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.
|
|
|  |
 |

LiquidQuest
User
Aug 2, 2006, 11:48 AM
Post #3 of 3
(651 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)
|
|
Attachments:
|
pagebreak.js
(6.64 KB)
|
|
|  |
 | |  |
|