Like the title says: Is there a way to list articles of a specific category, but not while editing the article. I know that there's an content type available for this purpose.
But I mean some kind of replacement tag for the template. My aim is to show article lists from 3 different categories on every page. So i must integrate it somehow into the template. Is there any workaround for this? Thanx guys!
List articles of a specific category
Re: List articles of a specific category
Sparky wrote:Like the title says: Is there a way to list articles of a specific category, but not while editing the article. I know that there's an content type available for this purpose...
But I mean some kind of replacement tag for the template.
Code: Select all
{RELATED:max_count_links}
Place the x number of related articles based on keyword I guess?
eg: {RELATED:5}
Unfortunately, this tag would show 'X' number of articles of a single category (based on keyword) and disallow different categories to exist in the same sectionSparky wrote:My aim is to show article lists from 3 different categories on every page.
Ok. Answering own qustions: In content.func.inc.php I've included:
Now it lists subcategories of a given category, but still no articles...lol
But that's a start, isn't it?
If i put each article in different subcategory...
Code: Select all
// Simple Navigation table of current cat
if( ! ( strpos($content["all"],'{NAV_TABLE_CAT:')===false ) ) {
$content["all"] = preg_replace('/\{NAV_TABLE_CAT:(\d+)\}/e','nav_table_simple_struct($content["struct"], $1);', $content["all"]);
}
But that's a start, isn't it?
If i put each article in different subcategory...
How to display articles of other categories?
Hi,
If you have found a solution to this problem, please notify me. I want to display article lists of two categories (e.g. Announcements and News) in the homepage.
Anyone else who may have a workaround?
Nick
If you have found a solution to this problem, please notify me. I want to display article lists of two categories (e.g. Announcements and News) in the homepage.
Anyone else who may have a workaround?
Nick