SOLVED : is there a way of duplicating the news module?
-
Eskymo
SOLVED : is there a way of duplicating the news module?
Hey All
I like the way the News Module works and my client wants a section on her site that lists case studies which needs to work pretty much like the news module works...
- a page that lists all the case studies
- a detail page that is linked to from the list of case studies that shows each in more detail
- the option of having one case study on the homepage [would be great if this could be randomised]
- the option to show a case study summary on certain pages throughout the site and for this to link to the detail
I've looked through the module manager and not found anything that would do this, so wondered if it's possible to duplicate the news module.
Thanks
E
I like the way the News Module works and my client wants a section on her site that lists case studies which needs to work pretty much like the news module works...
- a page that lists all the case studies
- a detail page that is linked to from the list of case studies that shows each in more detail
- the option of having one case study on the homepage [would be great if this could be randomised]
- the option to show a case study summary on certain pages throughout the site and for this to link to the detail
I've looked through the module manager and not found anything that would do this, so wondered if it's possible to duplicate the news module.
Thanks
E
Last edited by Eskymo on Wed Nov 07, 2007 1:20 pm, edited 1 time in total.
- lollipop27
- Forum Members

- Posts: 237
- Joined: Wed Sep 12, 2007 4:09 pm
Re: is there a way of duplicating the news module and using it for something els
Well, have you seen the cataloger module?
It's pretty much what you need, not?
It's pretty much what you need, not?
-
Eskymo
Re: is there a way of duplicating the news module and using it for something els
nope - not looked at that one - will check it out now though. Thanks for the recommendation!
-
Eskymo
Re: is there a way of duplicating the news module and using it for something els
Looks like that might work - I'd overlooked it as the word Catalogue didn't jump out at me as a solution to what I needed. I'll have a play with this - it'll give me something to accomplish today.
thanks
E
thanks
E
Re: is there a way of duplicating the news module and using it for something else?
Eskymo,
you can use News itself. As you can create categories and put specific entries in the correct catgorie. With the "category=" parameter you can call the correct category wanted, and with the summarytemplate/detailtemplate parameter calling you can have specific styling per category.
Parameter sortby="random" will pull a specific item if used in combination with number=1 f.e.
Ronny
you can use News itself. As you can create categories and put specific entries in the correct catgorie. With the "category=" parameter you can call the correct category wanted, and with the summarytemplate/detailtemplate parameter calling you can have specific styling per category.
Parameter sortby="random" will pull a specific item if used in combination with number=1 f.e.
Ronny
Last edited by RonnyK on Wed Nov 07, 2007 12:52 pm, edited 1 time in total.
-
Eskymo
Re: is there a way of duplicating the news module and using it for something els
Now there's an idea...that might be worth a try...thanks for the tip.
-
Eskymo
Re: SOLVED : is there a way of duplicating the news module?
RonnyK - that's saved me a ton of work and was really easy to implement...thanks ever so much!
Nearly finished the site I'm working on now - so chuffed!
Nearly finished the site I'm working on now - so chuffed!
-
Eskymo
Re: SOLVED : is there a way of duplicating the news module?
I'm encountering one problem though...
I created a new summary template and a new detail template for the Case Studies and using this on the main Case Studies page:
the casestudies use the correct casestudysummary, but for some reason on the default page revert to using the newsdetail page instead of the casestudydetail page I've specified.
I have tripple checked everything and I just can't find out where the problem is arising.
I created a new summary template and a new detail template for the Case Studies and using this on the main Case Studies page:
Code: Select all
{news moretext="read more" detailpage="casestudydetail" pagelimit="5" category="CaseStudies" summarytemplate="casestudysummary"}
I have tripple checked everything and I just can't find out where the problem is arising.
Re: SOLVED : is there a way of duplicating the news module?
Eskymo,
you're referring in the calling to the detailpage, that is the content-page to be opened where the news should be shown. If you've created a news detailtemplate, you should call the detailtemplate, as that pulls the news-detail-template. Those are 2 different things. detailtemplate and detailpage that is.
Ronny
you're referring in the calling to the detailpage, that is the content-page to be opened where the news should be shown. If you've created a news detailtemplate, you should call the detailtemplate, as that pulls the news-detail-template. Those are 2 different things. detailtemplate and detailpage that is.
Ronny
-
Eskymo
Re: SOLVED : is there a way of duplicating the news module?
Sorry I'm not sure what you mean...let me explain better the problem I'm having...
Within the news module all my news stories have the category News and within the News Page template I use the following:
{news moretext="read more" detailpage="newsdetail" pagelimit="5" category="News"}
For the news page on the site to list all the current news stories I created a summary template called 'newssummary'
For the news detail page on the site to show the full news story I created the detail template called 'newsdetail'
so to have a different section of the site for case studies I created a new category within the news modules called CaseStudies and within the CaseStudies Page template I ussed the following:
{news moretext="read more" detailpage="casestudydetail" pagelimit="5" category="CaseStudies" summarytemplate="casestudysummary"}
For the case study page on the site to list all the current case studies I created a summary template called 'casestudysummary'
For the case study detail page on the site to show the full case studies I created the detail template called 'casestudydetail'
All straightforward I thought. But for some reason the case study detail page on the site uses the newsdetail template instead of the casestudydetail template and I can't figure out why. I don;t want the dates appearing on the case study pages and that's why I created a new template for this category. I've removed all reference to the date within the casestudydetail template so that's how I know it's using the newsdetail template instead.
Within the news module all my news stories have the category News and within the News Page template I use the following:
{news moretext="read more" detailpage="newsdetail" pagelimit="5" category="News"}
For the news page on the site to list all the current news stories I created a summary template called 'newssummary'
For the news detail page on the site to show the full news story I created the detail template called 'newsdetail'
so to have a different section of the site for case studies I created a new category within the news modules called CaseStudies and within the CaseStudies Page template I ussed the following:
{news moretext="read more" detailpage="casestudydetail" pagelimit="5" category="CaseStudies" summarytemplate="casestudysummary"}
For the case study page on the site to list all the current case studies I created a summary template called 'casestudysummary'
For the case study detail page on the site to show the full case studies I created the detail template called 'casestudydetail'
All straightforward I thought. But for some reason the case study detail page on the site uses the newsdetail template instead of the casestudydetail template and I can't figure out why. I don;t want the dates appearing on the case study pages and that's why I created a new template for this category. I've removed all reference to the date within the casestudydetail template so that's how I know it's using the newsdetail template instead.
Re: SOLVED : is there a way of duplicating the news module?
Eskymo,
what I meant was that the newsdetailtemplate isn't called from within the news-calling and thus takes the default template.
Ronny
what I meant was that the newsdetailtemplate isn't called from within the news-calling and thus takes the default template.
Ronny
-
Eskymo
Re: SOLVED : is there a way of duplicating the news module?
so can you only have one newsdetail template?
Re: SOLVED : is there a way of duplicating the news module?
No, you can have more, but you have to call them specifically, otherwise the default will be used, similar as with summary.
Ronny
has to be included in the calling.....detailtemplate=""
Ronny
Re: SOLVED : is there a way of duplicating the news module?
You probably only have one news detail template now and if it's not told diff. in the news tag it will default to the existing one...
{news moretext="read more" detailpage="casestudydetail" pagelimit="5" category="CaseStudies" summarytemplate="casestudysummary" detailtemplate="nameofnewtemplate"}
You make new detail templates like making new summary templates...
{news moretext="read more" detailpage="casestudydetail" pagelimit="5" category="CaseStudies" summarytemplate="casestudysummary" detailtemplate="nameofnewtemplate"}
You make new detail templates like making new summary templates...
-
Eskymo
Re: SOLVED : is there a way of duplicating the news module?
oh I see what you mean now - I'm getting confused with all the similar names for everything. thanks for clearing that up for me! Sorry for being so thick...it makes perfect sense now.


