Changes between Version 4 and Version 5 of Docs/MVC/XSL/Templates

Show
Ignore:
Timestamp:
07/22/10 14:08:27 (7 weeks ago)
Author:
mikey (IP: 212.227.66.11)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Docs/MVC/XSL/Templates

    v4 v5  
    7373Use {{{stub:link}}} for creating links to other pages of the project. The only required attribute is the page attribute. You don't have to give a path or session ID, this things are added automatically. Next to this, all known attributes beside {{{href}}} can be used. 
    7474 
    75 === Example === 
    76  
    7775{{{ 
    7876<stub:link page="DslHome" target="_blank" onclick="openPopup(this.href); return false;">Go to Homepage</stub:link> 
    7977}}} 
     78 
     79=== Parameters === 
     80 
     81In order to have additional parameters on the link use the {{{stub:argument}}} template: 
     82 
     83{{{ 
     84<stub:link page="DslHome"> 
     85  <stub:argument name="id">303</stub:argument> 
     86  Go to DSL home page 
     87</stub:link> 
     88}}} 
     89 
     90=== Bot link cloaking === 
     91 
     92Sometimes it is necessary to have another URL for bots which visit the site in order to spider it for seach engines. To use another URL then the given one, you can use the bot attribute: 
     93 
     94{{{ 
     95<stub:link page="download" bot="http://downloads.example.net/important.pdf"> 
     96  <stub:argument name="id">303</stub:argument> 
     97  Important PDF file 
     98</stub:link> 
     99}}} 
     100 
     101This will force the usage of the bot URL in case the visiting user agent is recognized as a search bot. Currently this recognition includes the Googlebot, Msnbot and Slurp (Yahoo!). 
    80102 
    81103== stub:include ==