Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic Meta Description Tag

 
Nova Sping
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

Does anyone know a way to create a dynamic Meta Description TAG in JForum, which means that for example on a thread-site The TAG is filled with The first 160 characters of the thread content. I hope someone can help me.

Thanks!

Regards
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Joe,
Welcome to CodeRanch!

The description meta tag for this JForum page


Which is implemented by calling this method to set a field in topic:



And output using:
 
Nova Sping
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tanks a Lot for your reply. Can you Tell me The Assigned Input Variable of The sanitisemetadescription-method. Is it a jforum Variable? It has to be The Content of The thread?!

Tanks a Lot
 
Jeanne Boyarsky
author & internet detective
Marshal
Posts: 34837
369
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's the metaDescription field in the Topic object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic