[ Index ]
 

Code source de eZ Publish 3.9.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/design/admin/templates/rss/ -> edit_export.tpl (source)

   1  <form action={"rss/edit_export"|ezurl} method="post" name="RSSExport">
   2  
   3  <div class="context-block">
   4  {* DESIGN: Header START *}<div class="box-header"><div class="box-tc"><div class="box-ml"><div class="box-mr"><div class="box-tl"><div class="box-tr">
   5  
   6  <h1 class="context-title">{'Edit <%rss_export_name> [RSS Export]'|i18n( 'design/admin/rss/edit_export',, hash( '%rss_export_name', $rss_export.title ) )|wash}</h1>
   7  
   8  {* DESIGN: Mainline *}<div class="header-mainline"></div>
   9  
  10  {* DESIGN: Header END *}</div></div></div></div></div></div>
  11  
  12  {* DESIGN: Content START *}<div class="box-ml"><div class="box-mr"><div class="box-content">
  13  
  14  <div class="context-attributes">
  15  
  16      {section show=$validaton}
  17          <div class="warning">
  18              <h2>{'Invalid Input'|i18n( 'design/admin/rss/edit_export' )}</h2>
  19              <ul>
  20                  <li>{'If RSS Export is Active then a valid Access URL is required.'|i18n( 'design/admin/rss/edit_export' )}</li>
  21              </ul>
  22          </div>
  23      {/section}
  24  
  25      <div class="block">
  26      <label>{'Name'|i18n( 'design/admin/rss/edit_export' )}:</label>
  27      <input class="halfbox" id="exportName" type="text" name="title" value="{$rss_export.title|wash}" title="{'Name of the RSS export. This name is used in the administration interface only, to distinguish the different exports from each other.'|i18n('design/admin/rss/edit_export')}" />
  28      </div>
  29  
  30      <div class="block">
  31      <label>{'Description'|i18n( 'design/admin/rss/edit_export' )}:</label>
  32      <textarea class="halfbox" name="Description" rows="3" title="{'Use the description field to write a text explaining what users can expect from the RSS export.'|i18n('design/admin/rss/edit_export')}">{$rss_export.description|wash}</textarea>
  33      </div>
  34  
  35      <div class="block">
  36      <label>{'Site URL'|i18n( 'design/admin/rss/edit_export' )}:</label>
  37      <input class="halfbox" type="text" name="url" value="{$rss_export.url|wash}"/>
  38      <div class="context-attributes">
  39          <p>{'Use this field to enter the base URL of your site. It is used to produce the URLs in the export, composed by the Site URL (e.g. "http://www.example.com/index.php") and the path to the object (e.g. "/articles/my_article"). The Site URL depends on your Webserver and eZ publish configuration.'|i18n( 'design/admin/rss/edit_export')}</p>
  40      </div>
  41      </div>
  42  
  43      <input type="hidden" name="RSSImageID" value="{$rss_export.image_id}" />
  44  
  45      <div class="block">
  46      <label>{'Image'|i18n( 'design/admin/rss/edit_export' )}:</label>
  47      <input type="text" readonly="readonly" size="45" value="{$rss_export.image_path|wash}" />
  48      <input class="button" type="submit" name="BrowseImageButton" value="{'Browse'|i18n( 'design/admin/rss/edit_export' )}" title="{'Click this button to select an image for the RSS export. Note that images only work with RSS version 2.0'|i18n('design/admin/rss/edit_export')}" />
  49      </div>
  50      {section name=RemoveImage show=eq( $rss_export.image_id, 0 )|not }
  51        <div class="block">
  52          <input class="button" type="submit" name="RemoveImageButton" value="{'Remove image'|i18n( 'design/admin/rss/edit_export' )}" title="{'Click to remove image from RSS export.'|i18n('design/admin/rss/edit_export')}" />
  53        </div>
  54      {/section}
  55  
  56      <div class="block">
  57      <label>{'RSS version'|i18n( 'design/admin/rss/edit_export' )}:</label>
  58      <select name="RSSVersion" title="{'Use this drop-down menu to select the RSS version to use for the export. You must select RSS 2.0 in order to export the image selected above.'|i18n('design/admin/rss/edit_export')}">
  59      {section name=Version loop=$rss_version_array}
  60      <option
  61      {section name=DefaultSet show=eq( $rss_export.rss_version, 0 )}
  62        {section name=Default show=eq( $Version:item, $rss_version_default )}
  63          selected="selected"
  64        {/section}
  65      {section-else}
  66        {section name=Default2 show=eq( $Version:item, $rss_export.rss_version )}
  67          selected="selected"
  68        {/section}
  69      {/section}
  70        value="{$:item}">{$:item|wash}
  71      </option>
  72      {/section}
  73      </select>
  74      </div>
  75  
  76      <div class="block">
  77      <label>{'Number of objects'|i18n( 'design/admin/rss/edit_export' )}:</label>
  78      <select name="NumberOfObjects" title="{'Use this drop-down menu to select the maximum number of objects included in the RSS feed.'|i18n('design/admin/rss/edit_export')}">
  79      {section name=Number loop=$number_of_objects_array}
  80      <option
  81      {section name=DefaultSet show=eq( $rss_export.number_of_objects, 0 )}
  82        {section name=Default show=eq( $Number:item, $number_of_objects_default )}
  83          selected="selected"
  84        {/section}
  85      {section-else}
  86        {section name=Default2 show=eq( $Number:item, $rss_export.number_of_objects )}
  87          selected="selected"
  88        {/section}
  89      {/section}
  90        value="{$:item}">{$:item|wash}
  91      </option>
  92      {/section}
  93      </select>
  94      </div>
  95  
  96      <div class="block">
  97      <label>{'Active'|i18n( 'design/admin/rss/edit_export' )}:</label>
  98      <input type="checkbox" name="active" {section show=$rss_export.active|eq( 1 )}checked="checked"{/section} title="{'Use this checkbox to control if the RSS export is active or not. An inactive export will not be automatically updated.'|i18n('design/admin/rss/edit_export')}"/>
  99      </div>
 100  
 101      <div class="block">
 102      <label>{'Main node only'|i18n( 'design/admin/rss/edit_export' )}:</label>
 103      <input type="checkbox" name="MainNodeOnly" {section show=$rss_export.main_node_only|eq( 1 )}checked="checked"{/section} title="{'Check if you want to only feed the object from the main node.'|i18n('design/admin/rss/edit_export')}"/>
 104      </div>
 105  
 106      <div class="block">
 107      <label>{'Access URL'|i18n( 'design/admin/rss/edit_export' )}:</label>
 108      rss/feed/<input class="halfbox" type="text" name="Access_URL" value="{$rss_export.access_url|wash}" title="{'Use this field to set the URL where the RSS export should be available. Note that "rss/feed/" will be appended to the real URL. '|i18n('design/admin/rss/edit_export')|wash}" />
 109      </div>
 110  
 111  
 112      <input type="hidden" name="RSSExport_ID" value={$rss_export.id} />
 113      <input type="hidden" name="Item_Count" value={count($rss_export.item_list)} />
 114  
 115  <hr />
 116  
 117      {section name=Source loop=$rss_export.item_list}
 118  
 119  
 120         <h2>{'Source'|i18n( 'design/admin/rss/edit_export' )} {sum($Source:index, 1)}</h2>
 121  
 122         <input type="hidden" name="Item_ID_{$Source:index}" value="{$Source:item.id}" />
 123         <div class="block">
 124         <label>{'Source path'|i18n( 'design/admin/rss/edit_export' )}:</label>
 125         <input type="text" readonly="readonly" size="45" value="{$Source:item.source_path|wash}" />
 126         <input class="button" type="submit" name="{concat( 'SourceBrowse_', $Source:index )}" value="{'Browse'|i18n( 'design/admin/rss/edit_export' )}" title="{'Click this button to select the source node for RSS export source. Objects of the type selected in the drop down below published as sub-items of the selected node will be included in the RSS export.'|i18n('design/admin/rss/edit_export')}" />
 127         </div>
 128         
 129          <div class="block">
 130          <label>{'Subnodes'|i18n( 'design/admin/rss/edit_export' )}:</label>
 131          <input type="checkbox" name="Item_Subnodes_{$Source:index}" {section show=$Source:item.subnodes|wash|eq( 1 )}checked="checked"{/section} title="{'Activate this checkbox if also objects from the subnodes of the source should be feeded.'|i18n('design/admin/rss/edit_export')}"/>
 132          </div>
 133      
 134         <div class="block">
 135         <label>{'Class'|i18n( 'design/admin/rss/edit_export' )}:</label>
 136         <select name="Item_Class_{$Source:index}" title="{'Use this drop down to select the type of object that triggers the export. Click the "Set" button to load the correct attribute types for the remaining fields.'|i18n('design/admin/rss/edit_export')|wash}">
 137         {section name=ContentClass loop=$rss_class_array }
 138         <option
 139         {section name=Class show=eq( $:item.id, $Source:item.class_id )}
 140           selected="selected"
 141         {/section} value="{$:item.id}">{$:item.name|wash}</option>
 142         {/section}
 143         </select>
 144         <input class="button" type="submit" name="Update_Item_Class" value="{'Set'|i18n( 'design/admin/rss/edit_export' )}" title="{'Click this button to load the correct values into the drop-down fields below. Use the drop-down menu on the left to select the correct class type.'|i18n('design/admin/rss/edit_export')}" />
 145         </div>
 146  
 147         {section name=Attribute show=count( $rss_export.item_list[$Source:index] )|gt( 0 )}
 148  
 149           <div class="block">
 150           <label>{'Title'|i18n( 'design/admin/rss/edit_export' )}:</label>
 151           <select name="Item_Class_Attribute_Title_{$Source:index}" title="{'Use this drop-down to select which attribute that should be exported as the title of the RSS export entry.'|i18n('design/admin/rss/edit_export')}">
 152           {section name=ClassAttribute loop=$rss_export.item_list[$Source:index].class_attributes}
 153           <option value="{$:item.identifier}"
 154               {section name=ShowSelected show=eq( $Source:item.title, $:item.identifier )}
 155                   selected="selected"
 156               {/section}>{$:item.name|wash}</option>
 157           {/section}
 158           </select>
 159         </div>
 160  
 161         <div class="block">
 162           <label>{'Description'|i18n( 'design/admin/rss/edit_export' )}:</label>
 163           <select name="Item_Class_Attribute_Description_{$Source:index}" title="{'Use this drop-down to select which attribute that should be exported as the description of the RSS export entry.'|i18n('design/admin/rss/edit_export')}" >
 164           {section name=ClassAttribute loop=$rss_export.item_list[$Source:index].class_attributes}
 165           <option value="{$:item.identifier|wash}"
 166               {section name=ShowSelected show=eq( $Source:item.description, $:item.identifier )}
 167                   selected="selected"
 168               {/section}>{$:item.name|wash}</option>
 169           {/section}
 170           </select>
 171         </div>
 172         {/section}
 173  
 174         <input class="button" type="submit" name="{concat( 'RemoveSource_', $Source:index )}" value="{'Remove this source'|i18n( 'design/admin/rss/edit_export' )}" title="{'Click to remove this source from the RSS export.'|i18n('design/admin/rss/edit_export')}" />
 175  <hr />
 176      {/section}
 177  
 178      <input class="button" type="submit" name="AddSourceButton" value="{'Add source'|i18n( 'design/admin/rss/edit_export' )}" title="{'Click to add a new source to the RSS export.'|i18n('design/admin/rss/edit_export')}" />
 179  
 180  </div>
 181  
 182  {* DESIGN: Content END *}</div></div></div>
 183  
 184      <div class="controlbar">
 185  {* DESIGN: Control bar START *}<div class="box-bc"><div class="box-ml"><div class="box-mr"><div class="box-tc"><div class="box-bl"><div class="box-br">
 186      <div class="block">
 187          <input class="button" type="submit" name="StoreButton" value="{'OK'|i18n( 'design/admin/rss/edit_export' )}" title="{'Apply the changes and return to the RSS overview.'|i18n('design/admin/rss/edit_export')}" />
 188          <input class="button" type="submit" name="RemoveButton" value="{'Cancel'|i18n( 'design/admin/rss/edit_export' )}" title="{'Cancel the changes and return to the RSS overview.'|i18n('design/admin/rss/edit_export')}" />
 189      </div>
 190  {* DESIGN: Control bar END *}</div></div></div></div></div></div>
 191      </div>
 192  
 193  </div>
 194  </form>
 195  
 196  {literal}
 197  <script language="JavaScript" type="text/javascript">
 198  <!--
 199      window.onload=function()
 200      {
 201          document.getElementById('exportName').select();
 202          document.getElementById('exportName').focus();
 203      }
 204  -->
 205  </script>
 206  {/literal}


Généré le : Sat Feb 24 10:30:04 2007 par Balluche grâce à PHPXref 0.7