[FLOW3-general] Best way to handle metatags / opengraph

Dominique Feyer dfeyer at ttree.ch
Mon Feb 25 08:27:33 CET 2013


Hi,

I'm working on the support of OpenGraph for a projet. The handling of 
"static" meta tag (author, description, …) work fine, but for some 
property (title, …) I need to capture the content from the controller 
or directly in the view.

I have a MetaTag VH, based on the tabbuilder, who register the tags in 
a PageService. The tag are rendered in the layout of my template by 
using an other ViewHelpers. My problem is that the Layout are rendered 
first … so the metatag registred in the view (partial, …) are not ready.

Plan B is to put the logic in the controller action, that's maybe a 
better design.

What do you think ?

Bests

Dominique Feyer



More information about the FLOW3-general mailing list