[ Index ] |
|
Code source de eZ Publish 3.9.0 |
1 {* DO NOT EDIT THIS FILE! Use an override template instead. *} 2 <form action={concat("content/urltranslator/")|ezurl} method="post" > 3 <h1>{'URL translator'|i18n('design/standard/content')}</h1> 4 5 {section show=$alias_list} 6 7 <div class="objectheader"> 8 <h2>Existing URLs</h2> 9 </div> 10 <div class="object"> 11 <table cellspacing="4" cellpadding="0"> 12 <tr> 13 <th>{'System URL'}</th> 14 <th>{'Virtual URL'}</th> 15 <th>{'Type'}</th> 16 <th>{'Remove'}</th> 17 </tr> 18 {section name=Alias loop=$alias_list show=$alias_list} 19 <tr> 20 <td> 21 {section show=$Alias:item.forward_to_id|eq(0)} 22 <input type="text" name="URLAliasDestinationValue[{$Alias:item.id}]" value="{$Alias:item.destination_url|wash}" /> 23 {section-else} 24 {section show=$Alias:item.forward_to_id|eq( -1 )} 25 Forwards to <a href={$Alias:item.destination_url|ezurl}>{$Alias:item.destination_url|wash}</a><br/> 26 {section-else} 27 Forwards to <a href={$Alias:item.forward_url.destination_url|ezurl}>{$Alias:item.forward_url.source_url|wash}</a><br/> 28 {/section} 29 {/section} 30 </td> 31 <td> 32 <input type="text" name="URLAliasSourceValue[{$Alias:item.id}]" value="{$Alias:item.source_url|wash}" /> 33 </td> 34 <td> 35 {section show=$Alias:item.is_wildcard|gt(0)} 36 Wildcard 37 {section-else} 38 {section show=$Alias:item.forward_to_id|eq(0)} 39 Normal 40 {section-else} 41 Forwarding 42 {/section} 43 {/section} 44 </td> 45 <td align="right"> 46 <input type="checkbox" name="URLAliasSelection[{$Alias:item.id}]" value="{$Alias:item.id}" /> 47 </td> 48 </tr> 49 {/section} 50 <tr> 51 <td colspan="3"> 52 <input type="submit" name="StoreURLAliasButton" value="{'Store'|i18n('design/standard/content')}" /> 53 </td> 54 <td align="right"> 55 <input type="image" name="RemoveURLAliasButton" value="{'Remove'}" src={"trash.png"|ezimage} /> 56 </td> 57 </tr> 58 </table> 59 60 {include name=navigator 61 uri='design:navigator/google.tpl' 62 page_uri='/content/urltranslator' 63 item_count=$alias_count 64 view_parameters=$view_parameters 65 item_limit=$alias_limit} 66 67 68 </div> 69 70 <p/> 71 72 {/section} 73 74 {section show=$forward_info} 75 {section show=$forward_info.error} 76 <div class="error"> 77 <p> 78 The destination URL <b>{$forward_info.destination|wash}</b> does not exist in the system. 79 </p> 80 <p> 81 You can only create forwarding URLs to existing translation URLs. 82 </p> 83 </div> 84 {section-else} 85 <div class="feedback"> 86 <p> 87 Created forwarding URL from <b>{$forward_info.source|wash}</b> to <b>{$forward_info.destination|wash}</b>. 88 </p> 89 </div> 90 {/section} 91 {/section} 92 93 {section show=$wildcard_info} 94 {section show=$wildcard_info.error} 95 {section-else} 96 <div class="feedback"> 97 <p> 98 Created wildcard URL, translates from <b>{$wildcard_info.source|wash}</b> to <b>{$wildcard_info.destination|wash}</b>. 99 </p> 100 </div> 101 {/section} 102 {/section} 103 104 <div class="objectheader"> 105 <h2>Create new URLs</h2> 106 </div> 107 <div class="object"> 108 <table cellspacing="4" cellpadding="0"> 109 <tr> 110 <th colspan="3"> 111 {'Translation'} 112 </th> 113 </tr> 114 <tr> 115 <td> 116 {'System URL'} 117 </td> 118 <td> 119 {'Virtual URL'} 120 </td> 121 </tr> 122 <tr> 123 <td> 124 <input type="text" name="NewURLAliasDestination" value="{cond(and($translation_info,$translation_info.error),$translation_info.destination, 125 '')|wash}" /> 126 </td> 127 <td> 128 <input type="text" name="NewURLAliasSource" value="{cond(and($translation_info,$translation_info.error),$translation_info.source, 129 '')|wash}" /> 130 </td> 131 <td> 132 <div class="buttonblock"> 133 <input type="submit" name="NewURLAliasButton" value="{'Add'|i18n('design/standard/content')}" /> 134 </div> 135 </td> 136 </tr> 137 <tr> 138 <td> 139 {'e.g. /content/view/full/42'} 140 </td> 141 <td colspan="2"> 142 {'e.g. /services'} 143 </td> 144 </tr> 145 <tr> 146 <th colspan="3"> 147 {'Forwarding'} 148 </th> 149 </tr> 150 <tr> 151 <td> 152 {'Old virtual URL'} 153 </td> 154 <td> 155 {'Existing virtual URL'} 156 </td> 157 </tr> 158 <tr> 159 <td> 160 <input type="text" name="NewForwardURLAliasDestination" value="{cond(and($forward_info,$forward_info.error),$forward_info.destination, 161 '')|wash}" /> 162 </td> 163 <td> 164 <input type="text" name="NewForwardURLAliasSource" value="{cond(and($forward_info,$forward_info.error),$forward_info.source, 165 '')|wash}" /> 166 </td> 167 <td> 168 <div class="buttonblock"> 169 <input type="submit" name="NewForwardURLAliasButton" value="{'Add'|i18n('design/standard/content')}" /> 170 </div> 171 </td> 172 </tr> 173 <tr> 174 <td> 175 {'e.g. /about/service'} 176 </td> 177 <td colspan="2"> 178 {'e.g. /services'} 179 </td> 180 </tr> 181 <tr> 182 <th colspan="3"> 183 {'Wildcard'} 184 </th> 185 </tr> 186 <tr> 187 <td> 188 {'Old virtual URL'} 189 </td> 190 <td> 191 {'Existing virtual URL'} 192 </td> 193 </tr> 194 <tr> 195 <td> 196 <input type="text" name="NewWildcardURLAliasDestination" value="{cond(and($wildcard_info,$wildcard_info.error),$wildcard_info.source, 197 '')|wash}" /> 198 </td> 199 <td> 200 <input type="text" name="NewWildcardURLAliasSource" value="{cond(and($wildcard_info,$wildcard_info.error),$wildcard_info.destination, 201 '')|wash}" /> 202 </td> 203 <td> 204 <div class="buttonblock"> 205 <input type="submit" name="NewWildcardURLAliasButton" value="{'Add'|i18n('design/standard/content')}" /> 206 </div> 207 </td> 208 </tr> 209 <tr> 210 <td colspan="3"> 211 <input type="checkbox" name="NewWildcardURLAliasIsForwarding" value="1" checked="checked" />{'Forwarding URL'}<br/> 212 </td> 213 </tr> 214 <tr> 215 <td> 216 {literal}e.g. /dev/{1}{/literal} 217 </td> 218 <td colspan="2"> 219 {'e.g. /developer/*'} 220 </td> 221 </tr> 222 </table> 223 224 </div> 225 226 </form>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sat Feb 24 10:30:04 2007 | par Balluche grâce à PHPXref 0.7 |