-
AuthorPosts
-
February 20, 2014 at 5:42 pm #195015
I’m not totally sure where this problem arises. It could be the magazine layout, the template as a whole, T3 or Joomla.
For some reason when you add a created_by_alias, the articles disappear from the magazine featured/home listing. This is true of the demo builder site and of a new Joomla 3.2.2 installation with latest T3 and Purity III. I might have made some really strange setting but I can’t find it.
In the demo site adding an alias to “Choosing your Joomla template framework” article, for example, makes it disappear from the magazine home listing.
Demo site url: http://b1a22e4e2025aa3f.builder.joomlart.com/index.php/layout/new-layouts/magazine
phong nam Friendphong nam
- Join date:
- May 2015
- Posts:
- 3779
- Downloads:
- 1
- Uploads:
- 587
- Thanks:
- 499
- Thanked:
- 974 times in 888 posts
February 21, 2014 at 10:52 am #523758@niklasalbin: Thank you for your feedback. It is a bug of Featured Magazine layout when it does not display the article with Created by alias parameter. I have already raised a bug report to our template developer to check and update the bug fix. You can keep track on the workflow at http://pm.joomlart.com/browse/PURITYIII-61
March 7, 2014 at 12:27 pm #525804OK. Figured out what the problem was.
The template helper.php uses /modules/mod_articles_category/helper.php, which contains an author alias filter. By setting the parameter ‘author_alias_filtering_type’ to 0 in the getArticles function, the articles are displayed. Not the prettiest of solutions, but it works.
[PHP]public static function getArticles($params, $catid, $count, $front = ‘show’)
{
require_once JPATH_ROOT . ‘/modules/mod_articles_category/helper.php’;
$aparams = clone $params;
$aparams->set(‘count’, $count);
$aparams->set(‘show_front’, $front);
$aparams->set(‘catid’, (array)$catid);
$aparams->set(‘show_child_category_articles’, 1);
$aparams->set(‘levels’, 2);
$aparams->set(‘author_alias_filtering_type’, 0);
$alist = ModArticlesCategoryHelper::getList($aparams);
return $alist;
}[/PHP]Niklas
March 7, 2014 at 12:58 pm #525809Actually, that just replicated the opposite problem. Another ugly solution:
[PHP]public static function getArticles($params, $catid, $count, $front = ‘show’)
{
require_once JPATH_ROOT . ‘/modules/mod_articles_category/helper.php’;
$aparams = clone $params;
$aparams->set(‘count’, $count);
$aparams->set(‘show_front’, $front);
$aparams->set(‘catid’, (array)$catid);
$aparams->set(‘show_child_category_articles’, 1);
$aparams->set(‘levels’, 2);
$aparams->set(‘author_alias_filtering_type’, 0);
$aparams->set(‘created_by_alias’, “excluded”);
$alist = ModArticlesCategoryHelper::getList($aparams);
return $alist;
} [/PHP] -
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by niklasalbin 10 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum