-
Notifications
You must be signed in to change notification settings - Fork 157
Add SeoBundle twig extension documentation #705
Conversation
benglass
commented
Sep 22, 2015
Q | A |
---|---|
Doc fix? | no |
New docs? | yes (symfony-cmf/seo-bundle#263) |
Applies to | SeoBundle master/1.2 |
|
||
This bundle provides a twig function ``cmf_seo_update_seo_page`` | ||
which lets you set the object which should be used to populate | ||
the seo page. For details on how this works, read :doc:`introduction`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/this/populating the SEO page/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
The twig extension was added in SeoBundle 1.2. | ||
|
||
This bundle provides a twig function ``cmf_seo_update_metadata`` | ||
which lets you set the object which should be used to populate |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is it changing the object or does it just extract information from that object, in addition to what it already extracted from previous objects?
please also add a note in the documentation about extracting the metadata that mentions the twig functions in case documents are looped over in twig or otherwise not yet available in the controller. |
The twig extension was added in SeoBundle 1.2. | ||
|
||
This bundle provides a twig function ``cmf_seo_update_metadata`` | ||
which lets you populate the seo page from an object. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dbu I reworded this per your comment.
952b224
to
a7e8ad8
Compare
{% extends 'base.html.twig' %} | ||
|
||
{% block metadata %} | ||
{{ cmf_seo_update_metadata(post) }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dbu Removed the do, you caught me trying to be clever.
…o_page_docs Add SeoBundle twig extension documentation
thanks! |