# HG changeset patch # User cavaliet # Date 1321528073 -3600 # Node ID 382573c64e164aea4a650c93fc9ada1646f73a85 # Parent 8795818b0c4603a80a5c7bfa1e497bc99879484f Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set. diff -r 8795818b0c46 -r 382573c64e16 .hgsubstate --- a/.hgsubstate Thu Nov 17 11:41:40 2011 +0100 +++ b/.hgsubstate Thu Nov 17 12:07:53 2011 +0100 @@ -1,1 +1,1 @@ -92ddb5488eb4bee2a9fab6c71b0dad9cf412accb vendor/bundles/IRI/Bundle/WikiTagBundle +540607cf3447770c798e081bc5b2a9548b21e0dd vendor/bundles/IRI/Bundle/WikiTagBundle diff -r 8795818b0c46 -r 382573c64e16 app/config/config.yml --- a/app/config/config.yml Thu Nov 17 11:41:40 2011 +0100 +++ b/app/config/config.yml Thu Nov 17 12:07:53 2011 +0100 @@ -76,19 +76,19 @@ description: 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. + # 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' + reactive_selectors: + all: [ '.left_sheet', '#p_title .sheet_title', '#p_description' ] + only_p: [ '#p_title .sheet_title', '#p_description' ] + document: [ 'document' ] - services: wiki_tag.tag_test_listener: class: Company\BaseBundle\Event\TestListener arguments: [@service_container] tags: - { name: kernel.event_listener, event: wikitag.tag_changed, method: onTagCreateAction } - + + \ No newline at end of file diff -r 8795818b0c46 -r 382573c64e16 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:41:40 2011 +0100 +++ b/src/Company/BaseBundle/Resources/views/Index/tag_embedder.html.twig Thu Nov 17 12:07:53 2011 +0100 @@ -9,7 +9,7 @@ {% block js_declaration %} {{ parent() }} {% render "WikiTagBundle:WikiTag:addJavascript" %} -{% render "WikiTagBundle:WikiTag:addJavascriptForContextSearch" with {'context_name': "my_context"} %} +{% render "WikiTagBundle:WikiTag:addJavascriptForContextSearch" with {'context_name': "only_p"} %} {% endblock %} {% block content %} @@ -25,6 +25,7 @@

 <  -  > 

{% render "WikiTagBundle:WikiTag:documentTags" with {'id_doc': doc.id} %} + {% include 'WikiTagBundle:WikiTag:contextSearchDiv.html.twig' %}