Just a query as to how much work it would take to duplicate this module...
So instead of 2 categorys [ news, recentevents ] have 2 modules.... [ news ] and [ recentevents ]
Is it as simple as just duplications the folder and editing the News.module.php??
mike
<! duplicating news module
-
- Support Guru
- Posts: 8169
- Joined: Tue Oct 19, 2004 6:44 pm
- Location: Fernie British Columbia, Canada
Re: <! duplicating news module
duplicating a module is relatively easy, but has it's drawbacks.
The big question is "why would you want to?"
Is this something that needs to be changed in the news module?
The big question is "why would you want to?"
Is this something that needs to be changed in the news module?
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Re: <! duplicating news module
re: "Is this something that needs to be changed in the news module?"
...it would be nice to be able to have different templates... ie display [ beer ] news in a different template than [ wine ] news.
...and it would be nice to be able to set the order of the items manually like page order.
I really want to seperate the news so that a client can log in and go straight to [ beer ] or [ wine ] and edit the content. Rather than having to use the dropdown to select.. I can see a problem where the admin client enters the "wrong news into the wong section"
...it would be nice to be able to have different templates... ie display [ beer ] news in a different template than [ wine ] news.
...and it would be nice to be able to set the order of the items manually like page order.
I really want to seperate the news so that a client can log in and go straight to [ beer ] or [ wine ] and edit the content. Rather than having to use the dropdown to select.. I can see a problem where the admin client enters the "wrong news into the wong section"
Re: <! duplicating news module
RTFMmikemcvey wrote: ...it would be nice to be able to have different templates... ie display [ beer ] news in a different template than [ wine ] news.

You can define your own summary and detail templates with {cms_module module="news" number="5" category="wine" summarytemplate="winetemplate.tpl" } or {cms_module module="news" number="5" category="beer" detailtemplate="beertemplate.tpl"}
Here you have the option to play with start date and sort with {cms_module module="news" number="5" category="Bier" sortby="news_date"}. There are some other order options too....and it would be nice to be able to set the order of the items manually like page order.
IMHO that should not really be an optionI really want to seperate the news so that a client can log in and go straight to [ beer ] or [ wine ] and edit the content. Rather than having to use the dropdown to select.. I can see a problem where the admin client enters the "wrong news into the wong section"

Re: <! duplicating news module
is it also possible to give every news template its own CSS ?
Re: <! duplicating news module
if the news category only shows up on one template then yes..
and i changed the 'News' Module into 'Blog' Module as seen here...
http://www.multiintech.com/index.php?page=blogger
it's also used on a couple of other pages with the News next to it....
mark
and i changed the 'News' Module into 'Blog' Module as seen here...
http://www.multiintech.com/index.php?page=blogger
it's also used on a couple of other pages with the News next to it....
mark
Re: <! duplicating news module
in summary template chenge lineis it also possible to give every news template its own CSS ?
Code: Select all
<div class="NewsSummary">
Code: Select all
<div class="NewsSummary {$entry->category}">
same goes with detail template but you would need to wrap it first like this
Code: Select all
<div id="NewsPostDetailWrapper" class="{$entry->category}">
[old template content here]
</div>
