article labels

Use GitHub to post feature requests for phpwcms.
Locked
ramone
Posts: 23
Joined: Sun 25. Dec 2005, 20:43

article labels

Post by ramone »

hello
i developed a mod that i'd like to see in future releases, it is inspired in gmail's labels, it consists in a new column in the article table that defines the 'type' of an article, in my case, for example, news, articles and polls (i run a site about politics so we create polls about almost anything), that lets me create lists of articles of the same type without being concerned about the section where they were created, take this more in-depth example:

site structure:
home
- theme1
- - articles
- - - article1(type article)
- - news
- - - article2(type news)
- - polls
- - - article3(type poll)

- theme2
- - articles
- - - article4(type article)
- - news
- - - article5(type news)
- - polls
- - - article6(type poll)

- theme3
- - articles
- - - article7(type article)
- - news
- - - article8(type news)
- - polls
- - - article9(type poll)

so what if i want to get the new articles/news/polls for the whole site?...
{MOD_ARTICLES:20}
{MOD_NEWS:20}
{MOD_POLLS:20}

it's something very simple to do, i'm currently testing it, if you want to see my code let me know!!
Locked