# HG changeset patch # User ymh # Date 1321526500 -3600 # Node ID 8795818b0c4603a80a5c7bfa1e497bc99879484f # Parent 52118e2a0860b18e8263402caf9ec7a7b76f6e0d# Parent f457dd0e7a1e21f687f7e28f1cd357f1a2d52786 merge diff -r 52118e2a0860 -r 8795818b0c46 .hgsubstate diff -r 52118e2a0860 -r 8795818b0c46 app/config/config.yml --- a/app/config/config.yml Thu Nov 17 11:38:06 2011 +0100 +++ b/app/config/config.yml Thu Nov 17 11:41:40 2011 +0100 @@ -77,6 +77,14 @@ type: text weight: 0.5 + # reactive_selectors is a list of jQuery selectors meant to let appear tag context search by selecting text. + # Example of list : '".any_class", "#any_div .p_class", "#another_selector"'. Write 'document' if you want the whole document/page to be reactive. + # Do not define reactive_selectors if you want nothing to be reactive. + #reactive_selectors: '".left_sheet", "#p_title .sheet_title", "#p_description"' + reactive_selectors: '"#p_title .sheet_title", "#p_description"' + #reactive_selectors: 'document' + + services: wiki_tag.tag_test_listener: class: Company\BaseBundle\Event\TestListener diff -r 52118e2a0860 -r 8795818b0c46 src/Company/BaseBundle/Resources/views/Index/tag_embedder.html.twig --- a/src/Company/BaseBundle/Resources/views/Index/tag_embedder.html.twig Thu Nov 17 11:38:06 2011 +0100 +++ b/src/Company/BaseBundle/Resources/views/Index/tag_embedder.html.twig Thu Nov 17 11:41:40 2011 +0100 @@ -9,6 +9,7 @@ {% block js_declaration %} {{ parent() }} {% render "WikiTagBundle:WikiTag:addJavascript" %} +{% render "WikiTagBundle:WikiTag:addJavascriptForContextSearch" with {'context_name': "my_context"} %} {% endblock %} {% block content %} @@ -18,8 +19,8 @@

HERE ARE THE INFORMATIONS ABOUT A DOCUMENT

doc id
{{doc.id}}

-

Titre
{{doc.title}}

-

Description
{{doc.description}}

+

Titre
{{doc.title}}

+

Description
{{doc.description}}

 <  -  >