enhance document_list_profile and update readme V00.12
authorcavaliet
Thu, 19 Jul 2012 16:05:48 +0200
changeset 100 6abcdd06d768
parent 99 59b34092c462
child 101 1113a5f7dde0
enhance document_list_profile and update readme
.hgsubstate
app/config/config.yml
src/Company/BaseBundle/Resources/views/Index/tag_embedder.html.twig
--- a/.hgsubstate	Wed Jul 18 12:36:18 2012 +0200
+++ b/.hgsubstate	Thu Jul 19 16:05:48 2012 +0200
@@ -1,1 +1,1 @@
-3e11915dd103414e0380d9f56cfdb59842485e7c vendor/bundles/IRI/Bundle/WikiTagBundle
+a22fb91de2311d184e158becd71fe94c384253ba vendor/bundles/IRI/Bundle/WikiTagBundle
--- a/app/config/config.yml	Wed Jul 18 12:36:18 2012 +0200
+++ b/app/config/config.yml	Thu Jul 19 16:05:48 2012 +0200
@@ -94,6 +94,7 @@
     # If visibility is not defined, it means 0. Hidden columns can be not in the list, it means 0.
     # Exemple of list : ['sort_tag', 'order', 'move_up_down', 'label', 'wikipedia_link', 'remove_tag_from_list' ]
     # If document_list_profile in not defined, all columns and the sort tag button will be displayed.
+    # If no param is set in the controller call, all columns and the sort tag button will be displayed. ({% render "WikiTagBundle:WikiTag:addJavascript" %})
     document_list_profile:
         all:
             sort_tag:
--- a/src/Company/BaseBundle/Resources/views/Index/tag_embedder.html.twig	Wed Jul 18 12:36:18 2012 +0200
+++ b/src/Company/BaseBundle/Resources/views/Index/tag_embedder.html.twig	Thu Jul 19 16:05:48 2012 +0200
@@ -8,7 +8,7 @@
 
 {% block js_declaration %}
 {{ parent() }}
-{% render "WikiTagBundle:WikiTag:addJavascript" with {'profile_name': 'editor', 'read_only': true} %}
+{% render "WikiTagBundle:WikiTag:addJavascript" with {'profile_name': 'editor', 'read_only': false} %}
 {% render "WikiTagBundle:WikiTag:addJavascriptForContextSearch" with {'context_name': "only_p"} %}
 {% endblock %}
 
@@ -24,7 +24,7 @@
       </div>
       <div class="right_sheet">
         <p style="float:right;"><a href="{{ url('document_with_tags', { 'idDoc': (doc.id-1) }) }}">&nbsp;&lt;&nbsp;</a> - <a href="{{ url('document_with_tags', { 'idDoc': (doc.id+1) }) }}">&nbsp;&gt;&nbsp;</a></p>
-        {% render "WikiTagBundle:WikiTag:documentTags" with {'id_doc': doc.id, 'profile_name': 'all'} %}
+        {% render "WikiTagBundle:WikiTag:documentTags" with {'id_doc': doc.id, 'profile_name': 'editor'} %}
         {% include 'WikiTagBundle:WikiTag:contextSearchDiv.html.twig' %}
       </div>
     </div>