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

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

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

Legend:
Removed from v.1.23  
changed lines
  Added in v.1.24

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