https://ark.lparchaeology.com/wiki/index.php?title=Sf_websites&feed=atom&action=historySf websites - Revision history2024-03-28T08:39:53ZRevision history for this page on the wikiMediaWiki 1.27.1https://ark.lparchaeology.com/wiki/index.php?title=Sf_websites&diff=2172&oldid=prevStuarteve: /* Description */2009-05-11T12:27:28Z<p><span dir="auto"><span class="autocomment">Description</span></span></p>
<table class="diff diff-contentalign-left" data-mw="interface">
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;' lang='en'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 12:27, 11 May 2009</td>
</tr><tr><td colspan="2" class="diff-lineno" id="mw-diff-left-l1" >Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===Description===</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===Description===</div></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>The sf_websites is for generating a list of web URLs, where query string parameters can be filled by values from <del class="diffchange diffchange-inline">user</del>-specified <del class="diffchange diffchange-inline">fields</del>. The field will need to be properly setup in [[field_settings.php]]. It is better to use an attribute field, or something without verbose text as the whole string will be sent as the search term.</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>The sf_websites is for generating a list of <ins class="diffchange diffchange-inline">one or more </ins>web URLs, where query string parameters can be filled by values from <ins class="diffchange diffchange-inline">a administrator</ins>-specified <ins class="diffchange diffchange-inline">field</ins>. The field will need to be properly setup in [[field_settings.php]]. It is better to use an attribute field, or something without verbose text as the whole string will be sent as the search term.</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===Additional Fields===</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>===Additional Fields===</div></td></tr>
</table>Stuartevehttps://ark.lparchaeology.com/wiki/index.php?title=Sf_websites&diff=723&oldid=prevStuarteve at 12:26, 11 May 20092009-05-11T12:26:16Z<p></p>
<p><b>New page</b></p><div>===Description===<br />
The sf_websites is for generating a list of web URLs, where query string parameters can be filled by values from user-specified fields. The field will need to be properly setup in [[field_settings.php]]. It is better to use an attribute field, or something without verbose text as the whole string will be sent as the search term.<br />
<br />
===Additional Fields===<br />
<br />
sf_websites takes the following extra fields:<br />
<br />
*'websites' - REQUIRED - this is an array containing the following values:<br />
<br />
**'title' - REQUIRED - the title to be displayed as the link text<br />
**'url' - REQUIRED - the base url (with other non-dynamic parameters if required, but with the dynamic parameters REMOVED)<br />
**'params' - REQUIRED - an array containing:<br />
***'variable' - REQUIRED - the variable name (i.e. '&search_term=')<br />
***'fields' - REQUIRED - the field whose value will be used as the value of the parameter<br />
<br />
<br />
===Example Configuration===<br />
<br />
An example of sf_websites displaying a link to youTube where the search term is filled from $conf_field_common_name<br />
<pre><br />
$conf_mcd_website =<br />
array(<br />
'view_state' => 'max',<br />
'edit_state' => 'view',<br />
'sf_title' => 'brd_websites', <br />
'sf_html_id' => 'brd_websites', // Must be unique<br />
'script' => 'php/subforms/sf_websites.php',<br />
'sf_nav_type' => 'full',<br />
'op_label' => 'space',<br />
'op_input' => 'edit',<br />
'websites' => array(<br />
array(<br />
'title' => 'youTube Videos',<br />
'url' => 'http://www.youtube.com/results?search_type=&aq=f',<br />
'params' => array(<br />
array(<br />
'variable' => '&search_query=',<br />
'fields' => $conf_field_common_name<br />
)<br />
) <br />
), <br />
),<br />
'fields' => array(<br />
) <br />
);<br />
<br />
</pre><br />
<br />
[[category:Administrator]]</div>Stuarteve