Context search v1 is finished. Context allowing various configuration is set. Css and templates are clearly set.
--- 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
--- 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
--- 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 @@
<div class="right_sheet">
<p style="float:right;"><a href="{{ url('document_with_tags', { 'idDoc': (doc.id-1) }) }}"> < </a> - <a href="{{ url('document_with_tags', { 'idDoc': (doc.id+1) }) }}"> > </a></p>
{% render "WikiTagBundle:WikiTag:documentTags" with {'id_doc': doc.id} %}
+ {% include 'WikiTagBundle:WikiTag:contextSearchDiv.html.twig' %}
</div>
</div>
</div>