Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, October 15, 2026

Diff for phpMyEdit/doc/sgml/configuration.fields.sgml between version 1.22 and 1.23

version 1.22, 2003/04/06 19:32:32 version 1.23, 2003/04/18 13:25:59
Line 1 
Line 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:
   
Line 699  preceding "http://".
Line 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:
Removed from v.1.22  
changed lines
  Added in v.1.23

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top