
Damon
Staff
/ Moderator

Nov 10, 2006, 3:01 PM
Post #2 of 3
(650 views)
Shortcut
|
|
Re: [simonwh] Global Index error
[In reply to]
|
Can't Post
|
|
Hi Simon, There is a couple of different options if you are interested in publishing summary only. First, take a look at Theo's post about creating a Summary Only by having a Summary Yes, NO checkbox option in the create/edit article page. This will let you have control of when an article displays as a summary only. If you only want to display the summary (no link to the article page) automatically when attachments (File Attachments) have been uploaded, here is the steps: 1. Edit the templates and add some templateif statements Open these templates to edit: /artman2/templates/articleLists/globalIndex.html /artman2/templates/articleLists/categoryIndex.html Add the templateif statements to both: Replace this: <a href="$published.articlePage.url$" class="summary_title">$article.title$</a> with is: <span class="summary_title"> <!-- templateIf : $article.attachments$ eq "" --> <a href="$published.articlePage.url$">$article.title$</a> <!-- /templateIf --> <!-- templateIf : $article.attachments$ ne "" --> $article.title$ <!-- /templateIf --> </span> This will make the title link to the full article page not appear if any File Attachments have been uploaded. Replace this: [ <a href="$published.articlePage.url$">Read More...</a> ] with this: <!-- templateIf : $article.attachments$ eq "" --> [ <a href="$published.articlePage.url$">Read More...</a> ] <!-- /templateIf --> This will only publish the "Read More..." link if there is no file attachments. 2. Upload templates and publish the Global Index and Category Indexes After uploading the editted templates to your site, go to the Admin > Publishing section and click the small publish link beside Global Index and Category Indexes. That's it. I hope this helps. If you have any other questions or would like more details, please let me know. :) --------------------------------------------------- Cheers Damon Edis interactivetools.com Hire me! Save time by getting our experts to help with your project. http://www.interactivetools.com/consulting/
|