Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • sublimemag Friend
    #939529

    Since Joomla core is missing the feature for listing articles by author (like in K2), it would be very useful to add a filter to the ACM category listing module, so only articles by selected author are shown.

    Likewise, adding Tag and Topic filters would greatly extend the functionality of this module.

    Any ideas?

    Pankaj Sharma Moderator
    #939613

    Hi
    Its does not support filter by author option , I will forward your feedback to development team for further discussion on it to future consideration .
    Beside it you can take a on default Joomla articles category module that have different options for article filters as u said you have found too much option in Joomla core .

    Mo0nlight Moderator
    #950053

    Hi

    if you want to make a author filter for category listing. edit the file for example : /templates/ja_teline_v/acm/news-list/tmpl/style-1.xml add this code to any where you want to show.

    <field name="created_by" type="user" label="JGLOBAL_FIELD_CREATEBY_BY_LABEL"></field>

    If you want to make a tags filter. edit the xml file. add this code.

    <field name="tag_id" type="tag" label="JTAG" description="JTAG_DESC" mode="nested" multiple="true"></field>

    edit the file :/templates/ja_teline_v/helper.content.php find for :

    // Filter by language
            $articles->setState('filter.language', $app->getLanguageFilter());

    add this code under.

    // Filter by Tag
            $articles->setState('filter.tags', $params->get('tag_id', array()));

    edit the file : /plugins/system/jacontenttype/models/items.php Change :

    $query->where($db->quoteName('tagmap.tag_id') . ' IN (SELECT GROUP_CONCAT(tag_id SEPARATOR ",") FROM #__contentitem_tag_map WHERE content_item_id = '.$Itemid.')')

    To

    $query->where($db->quoteName('tagmap.tag_id') . ' IN ('.implode(',', $Itemid).')')

    That it for now.

Viewing 3 posts - 1 through 3 (of 3 total)

This topic contains 2 replies, has 3 voices, and was last updated by  Mo0nlight 7 years, 9 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum