1
ukandrewf
title of each page

How can I get XOOPS to give each generated page a title based on it's content.

For example this article about Sidekick98 I'd like to have the page title 'Sidekick98'.
sidekick98

I tried the admin/preferences and the metagen module but deleting the title entry doesn't seem to make a difference.

Any ideas?

thanks

Andrew

2
mbogosian
Re: title of each page
  • 2003/5/8 0:45

  • mbogosian

  • Just popping in

  • Posts: 53

  • Since: 2002/9/30


Well, you could probably do something like this, only you'd be changing the title instead of adding arbitrary headers.

In most themes, the title is set by:

<title><{$xoops_sitename}> - <{$xoops_pagetitle}></title>

So, you could just set the 'xoops_pagetitle' Smarty variable to be whatever you wanted. You chould also edit your theme to get rid of the site name:

<title><{$xoops_pagetitle}></title>

Of course, you'd have to edit the mylinks module to set this appropriately....

3
ukandrewf
Re: title of each page
  • 2003/5/18 11:22

  • ukandrewf

  • Friend of XOOPS

  • Posts: 198

  • Since: 2002/12/2


thanks for the reply, I'm using 1.3.9 so I don't think have smarty variables. Do you know which file I should edit your examples in for 1.3.9?

thanks

Andrew

4
malexandria
Re: title of each page

I'm curious about this as well.

I'd like all the automatic content in the news page to have simple headers like

sitename/topicname/contentname

so for instance

http://www.eclipsemagazine.com/moviereviews/matrix


or barring that

http://www.eclipsemagazine.com/moviereviews/.....

the important thing is to have a clean header string on the topics so that partners can write search scripts that will easily index content

5
ukandrewf
Re: title of each page
  • 2003/6/24 21:10

  • ukandrewf

  • Friend of XOOPS

  • Posts: 198

  • Since: 2002/12/2


actually <{$xoops_pagetitle}> seems to be the site slogan rather than a page title based on content so this doesn't fix the problem.

How much extra traffic would all our XOOPS sites be getting from search engines if the subject/item name was actually in the page title? I know I'd get a lot more.

Andrew

6
patagon
Re: title of each page
  • 2003/6/24 22:28

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


I also posted the need (IMO) to match the title of the page with the content (many other people posted it too, not that I came up with a brilliant idea). I hope that this is considered for a future version, in the meantime I havent been able to find a way of doing it w/o modifying the code so much that it would make it a pain to upgrade, does anyone know of a way of doing this by just modifying template files? that would be interesting because then you can keep it as you upgrade...

7
patagon
Re: title of each page
  • 2003/6/24 22:30

  • patagon

  • Quite a regular

  • Posts: 235

  • Since: 2002/1/8 0


BTW another benefit (besides the extra traffic) would be the way it makes bookmarking easier. Right now each forum post you try to bookmark modifies the previous one (unless you change its name of course)

8
ukandrewf
Re: title of each page
  • 2004/5/26 23:18

  • ukandrewf

  • Friend of XOOPS

  • Posts: 198

  • Since: 2002/12/2


don't ask me quite how i did it but that doesn't happen for me.

My forum shows title:-

Forum(module) - forum name - subject of the post - site name.

when i book mark two posts they both remain as links to their posts.

ideally i'd want:-

subject of post - forum name - site name

9
builderb
Re: title of each page
  • 2004/5/27 4:21

  • builderb

  • Not too shy to talk

  • Posts: 137

  • Since: 2003/8/4 2


There is a hack that currently exists for this located here:

https://xoops.org/modules/mydownloads/viewcat.php?cid=28&min=10&orderby=titleA&show=10

If you can figure out how it works than you can apply it to every module on your site. I've done it for my site and it's been working beautifully to get me listed higher on the SE's

Good luck,

Builderb

Login

Who's Online

177 user(s) are online (106 user(s) are browsing Support Forums)


Members: 0


Guests: 177


more...

Donat-O-Meter

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

Latest GitHub Commits