1
caek9
In the default news module, how do I remove the catagory name from the title?
  • 2009/1/24 4:03

  • caek9

  • Friend of XOOPS

  • Posts: 35

  • Since: 2008/7/9 2


The default news module displays news like "category : Article title"

How do I change it to just displays the article title?

2
deka87
Re: In the default news module, how do I remove the catagory name from the title?
  • 2009/1/24 6:31

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


In the article.php find a line that starts with
le="color: #000000"><?php $xoopsTpl->assign('xoops_pagetitle'
. The rest of the line should contain variables for your category and article title. Just remove those your don't need.
Mind anchors

3
ghia
Re: In the default news module, how do I remove the catagory name from the title?
  • 2009/1/24 8:19

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


No, you should not remove things in, or alter, PHP code for changing the view of your site!
The templates are made for that!

So ,alter /modules/news/templates/news_topics_directory.html(?) for removing the title.
If it is enclosed in eg. a div or span tag with some name or id, then you can also use CSS with a display:none or visibility:hidden for removing it from display.

4
caek9
Re: In the default news module, how do I remove the catagory name from the title?
  • 2009/1/26 2:39

  • caek9

  • Friend of XOOPS

  • Posts: 35

  • Since: 2008/7/9 2


I tried looking for it, and I thought I removed it, but keeps displaying the topic title in the titlebar. The code for this I thought was in templates/news_item.html in the header section,
le="color: #000000"><?php <td class="itemHead">&nbsp;&nbsp;<span class="itemTitle"><{$story.news_title}></span><a href="<{$xoops_url}>/modules/news/index.php?storytopic=<{$story.topicid}>"> </a></td></tr>


Thats the line I thought was responsible, and I removed references to topic, but it isn't going away. Any one know where else I might check?

5
ghia
Re: In the default news module, how do I remove the catagory name from the title?
  • 2009/1/26 8:44

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Did you do update for the News module in admin - module admin or set temporary the update template preference setting in admin - preferences - system -general to yes??

6
deka87
Re: In the default news module, how do I remove the catagory name from the title?
  • 2009/1/26 12:29

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


still editing article.php would be much easier...
Mind anchors

7
trabis
Re: In the default news module, how do I remove the catagory name from the title?
  • 2009/1/26 13:27

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


What title do you mean? Title of the page as you see in your browser or title close to your article?

8
caek9
Re: In the default news module, how do I remove the catagory name from the title?
  • 2009/1/27 5:48

  • caek9

  • Friend of XOOPS

  • Posts: 35

  • Since: 2008/7/9 2


I am talking about the title of each individual article, not the title bar of the browser, I'd also like to remove title of the most recent news article from displaying as well.

Basicaly, if I have a topic named "Topic" and an article under that topic named "Article" it displays it as "topic article"

I'd like just to display the article title.


Ghia- I tried both of your suggestions, but it still hasn't changed.

And I'm still unsure about editing the actual PHP of my site, in case it breaks other things.

9
deka87
Re: In the default news module, how do I remove the catagory name from the title?
  • 2009/1/27 6:26

  • deka87

  • Friend of XOOPS

  • Posts: 1125

  • Since: 2007/10/5


caek9, forget about editing php my comments were regarding changing the page <title>.

Mind anchors

Who's Online

149 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 149


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits