Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Title-tag equaling thread title?

 
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
using version 2.1.6., I'd like the HTML title-tag (<title>Name of Page</title>) of each forum page to be filled with the corresponding thread title.
How do I do this?

Thanks in advance!
[originally posted on jforum.net by penguin]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In 2.1.6 and 2.1.7, it looks like that is the default behaviour. Have you modified your header.htm file a lot?

If so, you may need to change the <Title> statement back to:

<title>${pageTitle?default("JForum")?html}</title>

The show posts code will set pageTitle to the current topic subject.
[originally posted on jforum.net by monroe]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a mill for the fast reply - that was exactly the info I needed!
Yepp, looks like the header was modified too much ;)
[originally posted on jforum.net by penguin]
reply
    Bookmark Topic Watch Topic
  • New Topic