Difference between revisions of "DPL Example 030"
From FollowTheScore
Line 1: | Line 1: | ||
{{Example|Generic Search Dialogue - links and template use}} | {{Example|Generic Search Dialogue - links and template use}} | ||
This page demonstrates how easy it is to create a search dialogue. We want to look for pages that link to a given page and use a certain template. | This page demonstrates how easy it is to create a search dialogue. We want to look for pages that link to a given page and use a certain template. | ||
+ | |||
<!-- | <!-- | ||
get command line arguments | get command line arguments | ||
Line 7: | Line 8: | ||
-->{{#form: action={{SCRIPTPATH}}/index.php | -->{{#form: action={{SCRIPTPATH}}/index.php | ||
|{{#input: type=hidden | name=title | value={{FULLPAGENAME}} }} | |{{#input: type=hidden | name=title | value={{FULLPAGENAME}} }} | ||
− | pages linking to {{#input: name=DPL_arg1 | value={{#var:target}} }} | + | pages linking to {{#input: name=DPL_arg1 | value={{#if:{{#var:target}}|{{#var:target}}|Dynamic Page List}} }} |
starting with name {{#input: name=DPL_arg2 | value={{#var:pattern}} }} and using template {{#input: name=DPL_arg3 | value={{#var:tpl}} }}<br> | starting with name {{#input: name=DPL_arg2 | value={{#var:pattern}} }} and using template {{#input: name=DPL_arg3 | value={{#var:tpl}} }}<br> | ||
{{#input: type=submit | value=search }} | {{#input: type=submit | value=search }} |
Revision as of 09:25, 25 June 2009
back to list of examples
Generic Search Dialogue - links and template use
This page demonstrates how easy it is to create a search dialogue. We want to look for pages that link to a given page and use a certain template.
{{#vardefine:target| }}{{#vardefine:pattern|A }}{{#vardefine:tpl| }}{{#form: action=/dpldemo/index.php
|{{#input: type=hidden | name=title | value=DPL Example 030 }}
pages linking to {{#input: name=DPL_arg1 | value={{#var:target}} }}
starting with name {{#input: name=DPL_arg2 | value={{#var:pattern}} }} and using template {{#input: name=DPL_arg3 | value={{#var:tpl}} }}
{{#input: type=submit | value=search }}
Extension:DynamicPageList (DPL), version 3.2.1: Warning: Skipping bad option 'Template:' for parameter 'uses'.
execution time: 0.002 sec. (2024/11/24 11:56:38)