Loading...
 
Features / Usability

Features / Usability


Content templates and Articles

posts: 46 Portugal

Hi there,
I'm building a content template in order to make my wikipages in a certain section with the same layout. For each Wiki page (i.e. each subject) there is an topic (in the articles section) associated. My question is: is there any easy way to, at the top of each page present the title of the last 5 articles of a given topic. For example in a box something like this:
{BOX(title=>Latest News on subject aaaa,align=>right)}
{ARTICLES(id=>1, max=>5)}{ARTICLES}
{BOX}

Thanks very much for your help in advance.

Luis Pedro

posts: 1092

there is an additional paramter to the wiki plugin ARTICLES
ARTICLES(max=>3,topic=>topicId)}{ARTICLES}

Nerver try it, but it is in the code


posts: 46 Portugal

Hi,
Thanks very much for your help. Just a small correction.
Actually it works but like this:
{ARTICLES(max=>3,topic=>TopicName)}{ARTICLES}

The only diference is that, instead of topic=>TopicId, it should be used topic=>TopicName

In any case, this will get the full article, and what I really need is to get only the title of the last 3 articles in a given topic... Any other hint?

see you

Luis Pedro