Fork me on GitHub

Content or Pages module to work like News?  Bottom

  • Hi there!
    Content module does not show the category in articles nor the category in the list of all articles within the category. However it does allow listing all articles from one category in a nice list without the category title. Is there an easy way to fix this?

    Pages module does show the section to which the article or list of articles belong, however to my knowledge it does not allow for an extended list of articles within a section. Any easy workaround?

    I need both features, something only the good old News module does. But I am already using the news module for site news and need another module to handle other specific topics which need to be categorized and displayed in extended lists (1. Category Title, 2 listed article titles with short text each)

    Pagemaster/pagesetter is beyond my abilities as in 2 years of trying to get it to work (errors, templates) I never succeeded.

    Is it possible to install two instances of news module and call them differently, for example: "Issues" and use one for news and the other for listing issues articles(not having words news in any segment of the module, don't want to confuse the user on whether he is reading News or Issues.)

    Any ideas?

    Thanks in advance!

    --
    "A patriot must be ready to defend his country against his government." - Edward Abbey
  • Quote

    Content module does not show the category in articles nor the category in the list of all articles within the category. However it does allow listing all articles from one category in a nice list without the category title. Is there an easy way to fix this?

    This should be solvable by changing the templates for the list display. You can add the category information to the content_user_list.htm template.
    Check out the Pages templates for examples (pages_user_diaplay). This part shows the categories as unordered list items.

    Code

    <!--[if $__CATEGORIES__]-->
                <li><!--[pnml name=_CATEGORIES]-->:
    <!--[foreach from=$__CATEGORIES__ key=property item=category]-->
    <!--[if $category.accessible]-->
    <!--[if $shorturls and $shorturlstype eq 0]-->
                    <a href="<!--[pnmodurl modname=Pages func=view prop=$property cat=$category.path_relative]-->" title="<!--[$category.display_desc.$lang]-->"><!--[$category.display_name.$lang]--></a>
    <!--[else]-->
                    <a href="<!--[pnmodurl modname=Pages func=view prop=$property cat=$category.id]-->" title="<!--[$category.display_desc.$lang]-->"><!--[$category.display_name.$lang]--></a>
    <!--[/if]-->
    <!--[/if]-->
    <!--[/foreach]-->
                </li>
    <!--[/if]-->



    Quote

    Is it possible to install two instances of news module and call them differently, for example: "Issues" and use one for news and the other for listing issues articles(not having words news in any segment of the module, don't want to confuse the user on whether he is reading News or Issues.)

    This is indeed possible. You can copy the News directory to Issues and edit the pnversion.php to change the name, displayname and description. The last 2 are language defined. You can make them a static string or edit the language files pnlang/eng/version.php and change the Strings there.

    --
    campertoday.nl, Module development, Dutch Zikula Community
  • Quote

    Pagemaster/pagesetter is beyond my abilities as in 2 years of trying to get it to work (errors, templates) I never succeeded.


    You're not the only one.
  • Thank you Erik, I will give your suggestions on modifying content templates a try, before surrendering to News module option. On the side, I noticed that:

    /index.php/Content/list/cat/33/ (shows titles list within a category)
    /index.php/Content/extlist/ (shows extended list for all articles)
    so I combined the two
    /index.php/Content/extlist/cat/33/ (to get extended list within a category, titles and short article text)

    Quote

    You're not the only one.

    Well that makes me feel a bit better about myself, either there are more dumb people like myself, or I'm not that dumb to begin with :)

    --
    "A patriot must be ready to defend his country against his government." - Edward Abbey
  • I'm slowly learning how these templates work. Quickly tried the option of installing another instance of News module, with the suggested modifications to the second instance. However it seems to need more than just that. Regenerating module list shows this error:

    The module list could not be regenerated

    The module list could not be regenerated because the following errors were found in the file system. You need to correct them before you can proceed.

    The following table shows a list of module displaynames which seem to appear in more than one directory. You need to delete one of these.
    Display name Directory Directory
    News modules/News modules/Issues

    Also, what about the database tables, aren't they having the same names? What else should I change?

    --
    "A patriot must be ready to defend his country against his government." - Edward Abbey

This list is based on users active over the last 60 minutes.