Mercurial > hg > rr-repo
annotate sites/all/modules/views/help/display-block.html @ 0:ff03f76ab3fe
initial version
author | danieleb <danielebarchiesi@me.com> |
---|---|
date | Wed, 21 Aug 2013 18:51:11 +0100 |
parents | |
children |
rev | line source |
---|---|
danielebarchiesi@0 | 1 Block displays will show up on your blocks administration page. Once a block display is created and saved, it can be enabled and positioned in your theme by visiting <strong>administer >> site building >> blocks</strong> and selecting it from the list. |
danielebarchiesi@0 | 2 |
danielebarchiesi@0 | 3 Blocks <strong>do not</strong> accept arguments from any source; the only way to get arguments to a block is to provide defaults to it, possibly via the PHP Code default setting. |
danielebarchiesi@0 | 4 |
danielebarchiesi@0 | 5 <ul> |
danielebarchiesi@0 | 6 <li>Edit the argument in question; you may want to override this argument if you have multiple displays using it.</li> |
danielebarchiesi@0 | 7 <li>Change the "Action to take if argument is not present" to "Provide default argument". This will bring up a new box called "Provide default argument options".</li> |
danielebarchiesi@0 | 8 <li>The most common default argument type used for blocks is Node from URL, where it attempts to determine if the URL refers to a node, for example if visiting 'node/1' or 'node/1/edit'. User ID from URL is also very common.</li> |
danielebarchiesi@0 | 9 <li>If you change the default argument type to 'PHP Code' (note: You must have permission to use PHP code on your site) you can enter PHP to define the argument needed. Simply return the argument.</li> |
danielebarchiesi@0 | 10 <li>If you are using a <strong>more link</strong> with a block, you must have a page display for that more link to attach to. The more link will not print if there is no place (no display) for it to link to.</li> |
danielebarchiesi@0 | 11 </ul> |