You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: en/administrators/blocks.rst
+39Lines changed: 39 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,17 +37,56 @@ For a Menu with alias main:
37
37
38
38
[menu:main] OR [m:main]
39
39
40
+
Advanced
41
+
42
+
``This options could drastically change the way your website works, handle with caution``
43
+
44
+
Variables supported:
45
+
46
+
* tag="htmlTag" : tag to wrap content output
47
+
* tagAttributes="className" : class name for wrapping tag
48
+
* selected="selected" : class for the selected element
49
+
* dropdown="false" : Dropdown menu
50
+
* dropdownClass="sf-menu" : Class for dropdown menus
51
+
* element="Menus.menu" : Element to use as template
52
+
40
53
Vocabulary
41
54
----------
42
55
43
56
For a Vocabulary with alias categories:
44
57
45
58
[vocabulary:categories] OR [v:categories]
46
59
60
+
Advanced
61
+
62
+
``This options could drastically change the way your website works, handle with caution``
63
+
64
+
Variables supported :
65
+
66
+
* link="true" : if true, it creates a link for each vocabulary found, it will create the link using the supplied arguments for plugin, controller, action and type.
67
+
* plugin="nameOfPlugin" : plugin name supplied to create link
68
+
* controller="controller" : controller name supplied to create link
69
+
* action="action" : action name supplied to create link
70
+
* type="type" : type of node supplied to create link
71
+
* tag="htmlTag" : tag to wrap content output
72
+
* tagAttributes="className" : className for wrapping tag
73
+
* element="Taxonomy.vocabulary" : Element to use as template
74
+
47
75
Nodes
48
76
-----
49
77
50
78
For example, you want to show a list of 5 most recent blog posts as a block:
``This options could drastically change the way your website works, handle with caution``
85
+
86
+
Variables supported :
87
+
88
+
* link="true" : if true, it creates a link for each node found, it will create the link using the supplied arguments for plugin, controller, action and type.
89
+
* plugin="nodes" : plugin name supplied to create link
90
+
* controller="nodes" : controller name supplied to create link
91
+
* action="view" : action name supplied to create link
92
+
* element="Nodes.node_list" : Element to use as template
0 commit comments