Can I change the News Module results page name?

For discussion and questions related to CMS Specific templates and stylesheets (CSS), and themes. or layout issues. This is not a place for generic "I don't know CSS issues"
Post Reply
User avatar
duplay
Power Poster
Power Poster
Posts: 289
Joined: Tue Mar 14, 2006 1:57 pm
Location: Canton, Ohio

Can I change the News Module results page name?

Post by duplay »

I have implemented the news module, and all is well, however, when i user clicks the more button, the page with the details comes back with HOME on the page. Can I change this to NEWS? see pic.

[attachment deleted by admin]
User avatar
Darwin Web Design
Forum Members
Forum Members
Posts: 212
Joined: Tue May 30, 2006 3:12 am
Location: Darwin NT, Australia

Re: Can I change the News Module results page name?

Post by Darwin Web Design »

I'm not sure how to changes this but I would never give my home page the title of "Home".  I always name my page with a short description of the website eg:  XYZ School, Z Town - Australia.  This is also better for the search engines than "home" as search engines place some importance on the title tags.  So doing this would also make your news results page look nicer as it would just have the title of your school (or whatever) at the top.

To make sure the word "home" still appears in the list of pages in the admin section, I use a different template for the home page that does not put the menu name in the title field, I simply type this title name in the template instead and usually there are other things on the home page that differ from the rest of the site so a separate home template is justified anyway. 

Otherwise if the long title doesn't bother you in the admin section, you wouldn't even need to do a separate template as you would know it is the home page (I just like to do this so my clients, who update their own site, don't get confused).

Regards
Eva  :D
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Can I change the News Module results page name?

Post by RonnyK »

Duplay,

I don't know if you found it already, but I use

Code: Select all

detailpage="nieuws"
in the calling of

Code: Select all

{news category="general" number=5 detailpage='Uutiset' detailpage="nieuws" dateformat="%d-%m-%Y"}
to make it open in a content-page called "nieuws"

Ronny
contented
Forum Members
Forum Members
Posts: 11
Joined: Wed Mar 28, 2007 6:13 pm
Location: Wales, UK

Re: Can I change the News Module results page name?

Post by contented »

I'd like to do this too, but am thoroughly confused by the news module.
Sorry to be dim, but just where do I put the code karma suggests?

Thanks in anticipation,
C
::)
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Can I change the News Module results page name?

Post by RonnyK »

C,

who do you mean with
where do I put the code karma suggests?
There is no one called karma in this topic.

If you want the news to be displayed, you just call the news-module with {news} and optionally some parameters in the template at the place you want it. If you want it placed in the sidebar, you can place it there in the template. If you want it in the content of the mainpage, you just call the module from a content-page. In the signature I've 2 sites linked. The .nl-site holds the news on the homepage, being in the content of it. The .eu-site holds it in the sidebar, so there its calling is placed in the template in the sidebar-area. If you explain where you want it and how you want it called, I can give you the used calling.

Ronny
contented
Forum Members
Forum Members
Posts: 11
Joined: Wed Mar 28, 2007 6:13 pm
Location: Wales, UK

Re: Can I change the News Module results page name?

Post by contented »

Thanks for offer of help Ronny, but have worked it out now.
I've put the following code on my home page (because I only wanted the news module to show on the home page)

Code: Select all

<!-- Start News -->
<div id="news">
<h2>News</h2>
{news limit=3 detailpage="news-2" } </div>
<!-- End News -->  <br />
and it calls up a page which I've set up with a type of news.

Cheers,

C

:)
brdon

Re: Can I change the News Module results page name?

Post by brdon »

I also think that Elijah Lofgren worked out a way to do this... but I can't find his link at the moment.
RonnyK
Support Guru
Support Guru
Posts: 4962
Joined: Wed Oct 25, 2006 8:29 pm
Location: Raalte, the Netherlands

Re: Can I change the News Module results page name?

Post by RonnyK »

brdon,

there are two points. If you want the news to be displayed on a fixed page called "Something" instead of overwriting the content of the page you have opened at the moment you can use "detailpage=""Something"".

If you want the title of every single news-item to be used as your page-title you can use Elijah's trick which is posted under:

http://forum.cmsmadesimple.org/index.ph ... 953.0.html

Ronny
Post Reply

Return to “Layout and Design (CSS & HTML)”