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
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- michiel responded to »password problem« 10:01 AM
- mazdev responded to »Hide "Register new account" and change template to 3 col« 07:50 AM
- mesteele101 created topic »Zikula 1.3.3 - Site Search 1.5.2 - Unable to turn off plug-ins« 07:48 AM
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
Content or Pages module to work like News?
-
- Rank: Softmore
- Registered: Nov 04, 2003
- Last visit: Oct 21, 2009
- Posts: 119
-
- Rank: Developer
- Registered: Aug 23, 2003
- Last visit: May 31, 2010
- Posts: 1428
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 -
- Rank: Moderator
- Registered: Mar 15, 2005
- Last visit: May 30, 2010
- Posts: 1077
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. -
- Rank: Softmore
- Registered: Nov 04, 2003
- Last visit: Oct 21, 2009
- Posts: 119
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 -
- Rank: Softmore
- Registered: Nov 04, 2003
- Last visit: Oct 21, 2009
- Posts: 119
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
- Moderated by:
- Support
