Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
Global Index error

 

 


simonwh
User

Nov 8, 2006, 5:17 PM

Post #1 of 3 (680 views)
Shortcut
Global Index error Can't Post

If I creat an article that only contains a PDF attachment (ie no associated story) AM2 is still creating an article page and the index is showing 'read ful article'

In AM1 this was replaced with 'download file'

What do I have to change in the templates to make this happen.

I even tried using the standard template that came with the AM2 package with no changes but that didn't work either.


???


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/


simonwh
User

Nov 10, 2006, 3:08 PM

Post #3 of 3 (647 views)
Shortcut
Re: [Damon] Global Index error [In reply to] Can't Post

Thankyou, I'll give that a try

What happened to the simplicity of AM1 that just gave you the option of full article, summary only or attachment?