1
BelaS
Item-Specific Page Titles in News, wfsection
  • 2003/6/18 14:33

  • BelaS

  • Just popping in

  • Posts: 62

  • Since: 2003/5/26


Hi folks,

I'd like to have the page titles of individual news and wfsection items reflect the title of that specific item, rather than merely the title of the XOOPS module.

e.g. for a news story on my site, http://www.internetadsales.com, the page title currently reads only "The Latest" (the Module title) rather than "The Latest: Google Launches AdSense for Small Publishers" (the title of a specific article). Are there any hacks or expanded News modules that can do that?

Much obliged!

Bela
InternetAdSales.com

2
hsalazar
Re: Item-Specific Page Titles in News, wfsection
  • 2003/6/18 15:27

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


BelaS:

I'd also like to be able to include the story headline in the title. So far I haven't figured a way, and the reason is the page title is set in the file theme.html, while the story headline get retrieved until you click on a story link. I guess the logic would be to put an IF statement in the title tags, but I'm not sure it can be done this way... I'll keep trying, and perhaps a wiser fellow can help us...

Happy Xoopsing!

3
ukandrewf
Re: Item-Specific Page Titles in News, wfsection
  • 2003/6/24 20:58

  • ukandrewf

  • Friend of XOOPS

  • Posts: 198

  • Since: 2002/12/2


i'd like an answer to this one too.

4
Catzwolf
Re: Item-Specific Page Titles in News, wfsection
  • 2003/6/24 22:39

  • Catzwolf

  • Home away from home

  • Posts: 1392

  • Since: 2007/9/30


I am not exactly sure what you mean by your above statment? Could you show me an example of this in WF-Section and I will see what I can do to modify this!


ATB

Catz

5
hsalazar
Re: Item-Specific Page Titles in News, wfsection
  • 2003/6/24 23:14

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


Catzwolf:

The idea is that instead of having in the window title a legend such as:

XOOPS Official Site - News - Microsoft Internet Explorer

no matter what story you're in, to have

XOOPS Official Site - News - Title of the specific note - Microsoft Internet Explorer

This is far more specific and useful.


6
ackbarr
Re: Item-Specific Page Titles in News, wfsection

I haven't figured out how to do this in wf-sections yet, but to make the news article title appear in the title bar do the following

1. Modify theme.html
The theme.html file for your current theme may need to be modified like so:

find the part of your theme.html that displays the page title:
<title>[b]Original Title Here[/b]title>


change this line to read:
<title>[b]<{$xoops_sitename}> - <{$xoops_pagetitle}>[/b]title>


2. Modify /modules/news/article.php
Add a newline before:
include XOOPS_ROOT_PATH.'/include/comment_view.php';
that reads:
$xoopsTpl->assign('xoops_pagetitle'htmlentities($xoopsModule->name() . ' - ' $article->title()));


To see it in action:
http://www.evenground.org/xoops2/modules/news/article.php?storyid=2

7
hsalazar
Re: Item-Specific Page Titles in News, wfsection
  • 2003/6/25 1:54

  • hsalazar

  • Just popping in

  • Posts: 78

  • Since: 2003/2/6 1


ackbarr:

Thanks a lot! It's just what I was looking for!


8
BelaS
Re: Item-Specific Page Titles in News, wfsection
  • 2003/6/25 5:21

  • BelaS

  • Just popping in

  • Posts: 62

  • Since: 2003/5/26


Thanks a million! Just what I needed.

Bela
InternetAdSales - online ad network reviews and insights

9
BelaS
Re: Item-Specific Page Titles in News, wfsection
  • 2003/6/25 7:21

  • BelaS

  • Just popping in

  • Posts: 62

  • Since: 2003/5/26


While we're on the subject, the same functionality in the Forum section would be very desirable as well.

For example, the title bar I currently see,

XOOPS Official Site - Forum

should read

XOOPS Official Site - Forum - Item-Specific Page Titles in News, wfsection

This would be useful both from a navigation point of view and for search engine spiders.

Thanks in advance for any assistance anyone would care to provide.

Bela

10
ukandrewf
Re: Item-Specific Page Titles in News, wfsection
  • 2003/6/25 10:06

  • ukandrewf

  • Friend of XOOPS

  • Posts: 198

  • Since: 2002/12/2


and in weblinks would be extremely useful to me.

Login

Who's Online

188 user(s) are online (103 user(s) are browsing Support Forums)


Members: 0


Guests: 188


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits