1 |
85ad3d82
|
Assos Assos
|
With the <strong>jump menu</strong> style can you create selectbox menus for the content of your site.
|
2 |
|
|
|
3 |
|
|
<a href="path:images/views3-jump-style-menu.png"><img src="path:images/views3-jump-style-menu.png" /></a>
|
4 |
|
|
|
5 |
|
|
The <strong>jump menu</strong> style will display each row of your view within a jump menu. This style requires that your view's <a href="topic:views/style-row">row style</a> is set to <a href="topic:views/style-fields">fields</a>.
|
6 |
|
|
|
7 |
|
|
To properly configure a jump menu, you must select one field that will represent the path to utilize. In most cases, you will need to rewrite the output of this field. You should set that field to exclude from display. All other displayed fields will be part of the menu. Please note that all HTML will be stripped from this output as select boxes cannot show HTML.
|
8 |
|
|
|
9 |
|
|
Some examples of how this might be useful:
|
10 |
|
|
|
11 |
|
|
|
12 |
|
|
<h3>Jump to a node</h3>
|
13 |
|
|
<ol>
|
14 |
|
|
<li>Create a new <strong>Node</strong> view</li>
|
15 |
|
|
<li>Select the <strong>Node: Path</strong> and <strong>Node: Title</strong> fields</li>
|
16 |
|
|
<li>Configure the <strong>Node: Path</strong> field to "exclude from display" and check "Use absolute link"</li>
|
17 |
|
|
<li>Configure the <strong>Node: Title</strong> field by removing the "Label" and unchecking "Link this field to its node"</li>
|
18 |
|
|
<li>Set the view style to <strong>jump menu</strong></li>
|
19 |
|
|
<li>In the style settings, set the "Path field" to <strong>Node: Path</strong></li>
|
20 |
|
|
</ol>
|
21 |
|
|
|
22 |
|
|
Your view will now display with a select list and a <strong>Go</strong> button. If you select an item in the list and hit the <strong>Go</strong> button you will see the selected node's page in the browser.
|
23 |
|
|
|
24 |
|
|
<h3>Jump to a node's edit page</h3>
|
25 |
|
|
<ol>
|
26 |
|
|
<li>Create a new <strong>Node</strong> view</li>
|
27 |
|
|
<li>Select the <strong>Node: Nid</strong> and <strong>Node: Title</strong> fields</li>
|
28 |
|
|
<li>Configure the <strong>Node: Nid</strong> field to "exclude from display" and check "Rewrite the output of this field"</li>
|
29 |
|
|
<li>In the text field that appears for rewriting the output of this field, enter <strong>node/[nid]/edit</strong></li>
|
30 |
|
|
<li>Configure the <strong>Node: Title</strong> field by removing the "Label" and unchecking "Link this field to its node"</li>
|
31 |
|
|
<li>Set the view style to <strong>jump menu</strong></li>
|
32 |
|
|
<li>In the style settings, set the "Path field" to <strong>Node: Nid</strong></li>
|
33 |
|
|
</ol>
|
34 |
|
|
|
35 |
|
|
Your view will now display with a select list and a <strong>Go</strong> button. If you select an item in the list and hit the <strong>Go</strong> button you will see the selected node's edit page in the browser. Please note that users without rights to the node's edit page will see an access denied message.
|
36 |
|
|
|
37 |
|
|
<h3>Jump to a user profile</h3>
|
38 |
|
|
<ol>
|
39 |
|
|
<li>Create a new <strong>User</strong> view</li>
|
40 |
|
|
<li>Select the <strong>User: Uid</strong> and <strong>User: Name</strong> fields</li>
|
41 |
|
|
<li>Configure the <strong>User: Uid</strong> field to "exclude from display" and check "Rewrite the output of this field"</li>
|
42 |
|
|
<li>In the text field that appears for rewriting the output of this field, enter <strong>user/[uid]</strong></li>
|
43 |
|
|
<li>Configure the <strong>User: Name</strong> field by removing the "Label" and unchecking "Link this field to its user"</li>
|
44 |
|
|
<li>Set the view style to <strong>jump menu</strong></li>
|
45 |
|
|
<li>In the style settings, set the "Path field" to <strong>User: Uid</strong></li>
|
46 |
|
|
</ol>
|
47 |
|
|
|
48 |
|
|
Your view will now display with a select list and a <strong>Go</strong> button. If you select an item in the list and hit the <strong>Go</strong> button you will see the selected user's profile page in the browser. |