Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamic Meta Description Tag  RSS feed

 
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
Sheriff
Posts: 36406
454
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
Sheriff
Posts: 36406
454
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
Boost this thread!