Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dynamic Meta Description Tag

 
Nova Sping
Greenhorn
Posts: 3
  • 0
  • 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: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • 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
  • 0
  • 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: 33694
316
Eclipse IDE Java VI Editor
  • 0
  • 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