Loading...
 
Features / Usability

Features / Usability


PluginArticles

posts: 4

Hi,

I would like to make a module which displays the titles of the n last articles of x groups like that:

::GroupA
-Title Article 1
...
-Title Article n
::GroupB
-Title Article 1
...
-Title Article n
::GroupC
-Title Article 1
...
-Title Article n

Is there a way to use PluginArticles in a module ?
Or anyelse way ?

Pascal

posts: 1092

You can use a plugin in a module (1.9) at least
In admin > modules, create a user module with the contain

Image
{ARTICLES(topic=name){{ARTICLES}{ARTICLES(topic=name2){{ARTICLES}

Don't forget to check wiki syntac
But in a module, the plugin articles ... is busy
You wan only the title I suppose

In the module last_articles, you can filter on a topic by givin in the parameter line "topic=name". But you can use only one time the module (stupid limitation as the paramms can change , but ...)

The best is to write your own module. Take exemple on the last_articles (modules/mod-last_articles.php). You can for instance do a sort on topicId (s/publishDate_desc/topicName_desc. And in the templates templates/modules/mod-list_articles.tpl. Print the topic if the topic change

Good luck

posts: 4

> You can use a plugin in a module (1.9) at least
> In admin > modules, create a user module with the contain

> Image
{ARTICLES(topic=name){{ARTICLES}{ARTICLES(topic=name2){{ARTICLES}

> Don't forget to check wiki syntac
> But in a module, the plugin articles ... is busy
> You wan only the title I suppose
>
> In the module last_articles, you can filter on a topic by givin in the parameter line "topic=name". But you can use only one time the module (stupid limitation as the paramms can change , but ...)
>
> The best is to write your own module. Take exemple on the last_articles (modules/mod-last_articles.php). You can for instance do a sort on topicId (s/publishDate_desc/topicName_desc. And in the templates templates/modules/mod-list_articles.tpl. Print the topic if the topic change
>
> Good luck

Thanks a lot.
"Don't forget to check wiki syntac" it's exactly what I forgot to do.

Just a little thing:
I think the syntax is:

{ARTICLES(topic=name)}{ARTICLES}{ARTICLES(topic=name2)}{ARTICLES}


And another mysterious thing: the articles are not displayed ! But the links are right.
Exemple:
A link in the module is:
http://www.linuxorable.net/tikiwiki_1.9/tiki-read_article.php?articleId=6
but the article is not displayed. I get a white page. And it's the same for each article in the module. If you follow this link you won't ba able to display the article.
But once I'm logged in as a user, if I display the same article (article 6), all works fine and the URI is exactly the same than above ! rolleyes

Pascal