Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Streda, 14. október 2026

Rozdiely pre phpMyEdit/doc/sgml/configuration.fields.sgml medzi verziami 1.22 a 1.23

verzia 1.22, 2003/04/06 19:32:32 verzia 1.23, 2003/04/18 13:25:59
Riadok 1 
Riadok 1 
 <!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.21 2003/04/05 20:32:04 nepto Exp $ -->  <!-- $Platon: phpMyEdit/doc/sgml/configuration.fields.sgml,v 1.22 2003/04/06 19:32:32 nepto Exp $ -->
   
 <!-- Categories:  <!-- Categories:
   
Riadok 699  preceding "http://".
Riadok 699  preceding "http://".
   
 </para>  </para>
 </sect1>  </sect1>
   
   <sect1 id="configuration.options-variability">
   <title id="configuration.options-variability.title">Options variability</title>
   <para>
   
   This section does not descibe new field option or options. It just extend the
   prossibility of their initialization. Options variability feature can be
   applied to each field option.
   
   </para>
   <para>
   
   There is often a situation, when you want to have some field option in effect
   only on particular page(s). But on other pages you do not want to have this
   option in effect. So there are pages where field option should be taken into
   consideration, but there are also page when not.
   
   </para>
   <para>
   
   The good example for this is <varname>['trimlen']</> option. Imagine you will
   set something like this:
   
   <example><title>Init without options variability</title>
   <programlisting><![CDATA[
   $opts['fdd']['col_name']['trimlen'] = 30;
   ]]></programlisting>
   </example>
   
   This will trim the maximum length of text to 30 characters on all possible
   pages, which in this case for this option are:
   
   <itemizedlist spacing=compact>
   <listitem><simpara>table list</></>
   <listitem><simpara>table filter</></>
   <listitem><simpara>record view</></>
   <listitem><simpara>record delete</></>
   </itemizedlist>
   
   </para>
   <para>
   
   This is nice and it will work as expected, however on record view page it may
   be desirable to see whole field content, no only first 30 characters. Similary
   we could want this also for delete page.
   
   </para>
   <para>
   
   Thus there is a possiblity to restrict particular option effect only for
   selected types of pages. In our case we want to resctrict
   <varname>['trimlen']</> option affect to table listing and table filtering
   pages. This can be done in the following way. Take a look at "|LF" string in
   the definition.
   
   <example><title>Init with options variability</title>
   <programlisting><![CDATA[
   $opts['fdd']['col_name']['trimlen|LF'] = 30;
   ]]></programlisting>
   </example>
   
   </para>
   <para>
   
   Every restriction letter stands for particular page type. They are the same as
   they are described in list under <xref linkend="configuration.options"
   endterm="configuration.options"> subsection.
   
   </para>
   </sect1>
   
 <!-- ----- -->  <!-- ----- -->
   

Legend:
Odstranené z verzie1.22  
zmenené riadky
  Pridané vo verzii1.23

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok