How to link a Symfony CMF StaticContent to an existing route -


i using symfony cmf stack without simplecmsbundle. in sonata admin able create staticcontents including seo metadata. working , can add content pages seo metadata way.

however, how can link existing route of symfony application staticcontent (page)?

for example, have messagecontroller defines own routes. /messages/inbox/{page}. how can define seometa (or staticcontent) these pages?

if use dynamic routing, process route has reference content , using route enhancer content set request attribute "contentdocument" automatically injected standard symfony controller resolver: https://github.com/symfony-cmf/contentbundle/blob/master/controller/contentcontroller.php#l75

if not use dynamic router recommend add default on route containing content path. can use transform (see sensioframeworkextrabundle) or manually read document path inside controller action.


Comments

Popular posts from this blog

Capture and play voice with Asterisk ARI -

java - Why database contraints in HSQLDB are only checked during a commit when using transactions in Hibernate? -

visual studio - Installing Packages through Nuget - "Central Directory corrupt" -