Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
1 Article, 2 Article pages

 

 


nkerschgens
User

Mar 16, 2009, 6:10 AM

Post #1 of 5 (3044 views)
Shortcut
1 Article, 2 Article pages Can't Post

Hi,

I have 1 article that will be published in 2 categories:

- News
- Calendar

The article pages for these categories are different, but when i use 1 Placeholder Set Name for both article pages, only 1 page is used (news and calendar listing page are linking to the same article).

When i use 2 different Placeholder Set Names for both article page's, only the first selected category (on the article page) is linking correctly to the article, the other i get a URL like: http://mysite.com/.php

How do i fix this? So when i click on the article within the category news i go to the article page defined for News, when i click on the article within the category calendar i get the article page defined for this category...


(This post was edited by nkerschgens on Mar 16, 2009, 6:11 AM)


Donna
Staff / Moderator


Mar 19, 2009, 1:34 PM

Post #2 of 5 (3013 views)
Shortcut
Re: [nkerschgens] 1 Article, 2 Article pages [In reply to] Can't Post

Hi there,

What have you got in the index template linking to your article pages? Can you copy & paste the code you've got, and let me know what the two placeholders are?

Donna

--
support@interactivetools.com


nkerschgens
User

Mar 23, 2009, 1:51 AM

Post #3 of 5 (2989 views)
Shortcut
Re: [Donna] 1 Article, 2 Article pages [In reply to] Can't Post

Hi Donna,

Calendar (Agenda):

Code
<ul class="calendarlist"> 
<!-- template insert : $articleList$ -->
<!-- templatecell : articleRow -->
<li>
<div class="date">$article.event_start:format(dd-MM-yyyy)$</div><div class="title"> <a href="$published.articleCalendar.url$" title="$article.title$ - lees meer...">$article.title$</a></div><br />
<div class="summary">$article.summary$</div>
</li>
<!-- /templatecell : articleRow -->
</ul>
<!-- templateIf : $articleList$ eq "" -->
<p>Er staan momenteel geen evenementen op onze agenda.</p>
<!-- /templateIf -->


News (Nieuws):

Code
<ul class="newslist"> 
<!-- template insert : $articleList$ -->
<!-- templatecell : articleRow -->
<?
$expire_date = "$article.expire_date:format(epoch)$";
$current_date = date("U");
if ($current_date < $expire_date) {
?>
<li>
<div class="date">$article.date:format(dd-MM)$</div>
- <a href="$published.articleNews.url$" title="$article.title$ - lees meer...">$article.title$</a><br />
<div class="summary">$article.summary$</div>
</li>
<? } ?>
<!-- /templatecell : articleRow -->
</ul>
<!-- templateIf : $articleList$ eq "" -->
<p>Er zijn momenteel geen nieuwsberichten gepubliceerd.</p>
<!-- /templateIf -->


The 2 placeholders:

$published.articleCalendar.url$
$published.articleNews.url$


(This post was edited by nkerschgens on Mar 23, 2009, 1:54 AM)


ross
Staff / Moderator


Mar 25, 2009, 10:07 AM

Post #4 of 5 (2962 views)
Shortcut
Re: [nkerschgens] 1 Article, 2 Article pages [In reply to] Can't Post

Hi there

Thanks for posting that code. Each publish rule in Article Manager is setup to create one copy of each file it needs to make. This is why you only get one copy of the article when you use the same publish rule and why you get two different files if you use a second publish rule.

I think setting up publish rules specifically for each of your categories is going to be the way to go. If you use the "exclude" option though, you can still have them all using the same publish rule, but they will get published with different templates.

In total, you'll have 4 publish rules:

articleList for each category
articlePage for each category

Does that make sense? Let me know if you need some more detail setting this up.

Thanks!
-----------------------------------------------------------
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: http://www.interactivetools.com/consulting/



nkerschgens
User

Mar 26, 2009, 3:45 AM

Post #5 of 5 (2950 views)
Shortcut
Re: [ross] 1 Article, 2 Article pages [In reply to] Can't Post

Hi Ross,

My setup (after reading your post):

2 Categories:

- Agenda
- News

Publish rules:

- ArticlePage for Agenda (placeholder = published.article.suffix)
- ArticlePage for News (placeholder = published.article.suffix)
- ArticleList for Agenda
- ArticleList for News

The templates used for both ArticlePages are different, see articlerows of both templates:

Agenda:

Code
<ul class="calendarlist"> 
<!-- template insert : $articleList$ -->
<!-- templatecell : articleRow -->
<li>
<div class="date">$article.event_start:format(dd-MM-yyyy)$</div><div class="title"> <a href="$published.article.url$" title="$article.title$ - lees meer...">$article.title$</a></div><br />
<div class="summary">$article.summary$</div>
</li>
<!-- /templatecell : articleRow -->
</ul>


News:

Code
<!-- templatecell : articleRow --> 
<li>
<div class="date">$article.date:format(dd-MM)$</div>
- <a href="$published.article.url$" title="$article.title$ - lees meer...">$article.title$</a><br />
<div class="summary">$article.summary$</div>
</li>
<? } ?>
<!-- /templatecell : articleRow -->


When you take a look at the website:
http://www.nestores.nl/Agenda.php

I have published the article "Woensdag 19 augustus, golfdag" in both categories (Agenda, News). I can open the article from agenda:
http://www.nestores.nl/Agenda/Woensdag_19_augustus_golfdag.php

This is correct, but when i go to News (Nieuws) and click on the article it is linking to the same article as in Agenda:
http://www.nestores.nl/Nieuws.php

The article within News (Nieuws) should have the URL:
http://www.nestores.nl/Nieuws/Woensdag_19_augustus_golfdag.php

Can you please tell me what i do wrong?