aspose file tools*
The moose likes JForum and the fly likes Dynamic Meta Description Tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JForum
Bookmark "Dynamic Meta Description Tag " Watch "Dynamic Meta Description Tag " New topic
Author

Dynamic Meta Description Tag

Nova Sping
Greenhorn

Joined: Aug 26, 2012
Posts: 3
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

Joined: May 26, 2003
Posts: 30772
    
156

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:


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Nova Sping
Greenhorn

Joined: Aug 26, 2012
Posts: 3
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

Joined: May 26, 2003
Posts: 30772
    
156

It's the metaDescription field in the Topic object.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Dynamic Meta Description Tag