Petti.eu

berteparser

Parse the text generated by the RTE back end

<bodytext>
       <label>Description</label>
       <berteparser>1</berteparser>
</bodytext>

crop

cut part of text
first par : number of chars
second par : last symbol

<bodytext>
       <striptags>1</striptags>
       <crop>200| [...]</crop>
       <label>Abstract</label>
       <width>50</width>
</bodytext>

detail

link the value to the first object in tab details

<title>
       <label>Title</label>
       <width>50</width>
       <wrap><![CDATA[<b>|</b>]]></wrap>
       <detail>1</detail>
</title>

dynafef

Get data from dynafef field

<tx_documentum_theme>
      <dynafef>
         <field_value>uid</field_value>
         <field_label>title</field_label>
      </dynafef>
</tx_documentum_theme>

<user_extextender_option_list_1>
       <dynafef>1</dynafef>
       <label>Section</label>
       <separator>,</separator>
       <show_separator><![CDATA[<br>]]></show_separator>
       <label>Section</label>
</user_extextender_option_list_1> 

edit

link the value to the first object in tab edit

<icon_edit>
       <label>Edit</label>
       <value><![CDATA[<img src='http://t3admin.com/typo3/sysext/t3skin/icons/gfx/edit2.gif' border=0>]]></value>
       <edit>1</edit>
       <usergroup>233</usergroup>
</icon_edit>

eval

Use a php function to threat the value

<issue_date>
      <eval>date("d/m/Y",|)</eval>
      <label>Date</label>
      <width>50</width>
      <wrap><![CDATA[| - ]]></wrap>
      <usergroup>321</usergroup>
</issue_date>

external_data

get the data from another table

<country_iso3>
       <label>Countries</label>
       <external_data>
                <sql>SELECT cn_iso_3,cn_short_en FROM static_countries</sql>
                <key>cn_iso_3</key>
                <label>cn_short_en</label>
                <separator>,| - </separator>
                <memcache>1</memcache>
       </external_data>
</country_iso3>

hideonempty

Hide the object if the value is empty

<title>
     <hideonempty>1</hideonempty>
     <label>Title</label>
     <width>50</width>      
     <wrap><![CDATA[<b>|</b>]]></wrap>      
     <link>16676,dyna_fef[uid]={uid}</link>
</title>

hideonzero

Hide the object if the value is zero

<datetime>
       <eval>date('Y',|)</eval>
       <label>Date</label>
       <width>50</width>
       <hideonzero>1</hideonzero>
</datetime>

image_wrap

wrap the image

<image>
       <label>Image</label>
       <path>fileadmin/user_upload/test/small_</path>
      <image_wrap><![CDATA[<img src='|' style='border:1px solid black;margin-top:5px;margin-right:10px;float:left;'>]]></image_wrap>
</image>

label

It is the label of the field

Usage:

<grade>
       <label>Grade</label>
</grade>

link

it creates a link using pid

<title>      
     <label>Title</label>      
     <wrap><![CDATA[<b>|</b>]]></wrap>      
     <link>60916,dyna_fef[duid]={uid}+dyna_fef[backuri]=60911</link>
     <onclick>return confirm('Are you sure you want to delete?')</onclick>
     <target>blank</target>
</title>

linkurlfield

Get the field link and create a link

<title>
       <label>Title</label>
       <width>5</width>
       <wrap><![CDATA[<b>|</b>]]></wrap>
       <linkurlfield>va_file,fileadmin/user_upload/VA/pdf/|</linkurlfield>
       <target>blank</target>
</title>

 

onclick

run the event onclick on the object

<icon_delete>
       <label>Delete</label>
       <value><![CDATA[<img src='http://typo3.fao.org/typo3/sysext/t3skin/icons/gfx/garbage.gif' border=0>]]></value>
       <link>10645,dyna_fef[duid]={uid}</link>
       <onclick>return confirm('Are you sure you want to delete?')</onclick>
       <usergroup>233</usergroup>
</icon_delete>

pagelink

link to page

<title>
       <label>Title</label>
       <width>50</width>
       <wrap><![CDATA[<b>|</b>]]></wrap>
       <pagelink>14778,dyna_fef[uid]={uid}</pagelink>
</title>

path

is the location of the file

<image>
       <label>Image</label>
       <path>fileadmin/user_upload/esa/images/small_</path>
       <image_wrap><![CDATA[<img src='|'>]]></image_wrap>
</image>

source

include external file setting and get "file" field

<file>
      <source>fileadmin/templates/dynaform/dynalist.xmlc</source>
</file>

striptags

remove all html tags from value

<bodytext>
     <striptags>1</striptags>       
     <label>Description</label>
     <words>50| [...]</words>
     <width>20</width>
</bodytext>

switch

list of conditions

<my_status>
       <label>Status</label>
       <switch>
            <case-1>{0}<![CDATA[<p style='text-align:center;width:70px;padding-left:2px;padding-right:2px;font-weight:bold;background-color:orange;color:white;'>Draft</p>]]></case-1>
            <case-2>{1}<![CDATA[<p style='text-align:center;width:70px;padding-left:2px;padding-right:2px;font-weight:bold;background-color:green;color:white;'>Published</p>]]></case-2>
            <case-3>{2}<![CDATA[<p style='text-align:center;width:70px;padding-left:2px;padding-right:2px;font-weight:bold;background-color:red;color:white;'>Rejected</p>]]></case-3>
</switch>
<multiple>,</multiple>
<separator> - </separator>
</my_status>

usergroup

 If you want to limit the access a specific group

<icon_delete>
       <label>Delete</label>
       <value><![CDATA[<img src='http://typo3.fao.org/typo3/sysext/t3skin/icons/gfx/deletedok.gif' border=0>]]></value>
       <link>16676,dyna_fef[duid]={uid}</link>
       <onclick>return confirm('Are you sure you want to delete?')</onclick>
       <usergroup>321</usergroup>
</icon_delete>

value

if you want to force a value

<icon_edit>
       <label>Edit</label>
       <value><![CDATA[<img src='http://typo3.fao.org/typo3/sysext/t3skin/icons/gfx/edit2.gif' border=0>]]></value>
</icon_edit>
 

width

is used for the table creation

<status>
       <label>Status</label>
       <width>20</width>
</status>

words

Parameters:

  1. limit the number of words
  2. last symbol or word
  3. pid to link last symbol
  4. parameters of the link

<bodytext>     <striptags>1</striptags>     <label>Description</label>     <words>50| [...]|3465,dyna_fef[uid]={uid}</words>     <width>20</width></bodytext>

 

wrap

Field wrapper

<wrap><![CDATA[<b>|</b>]]></wrap>

wrapif

conditional wrapper
first param is true
second if the value is empty


<tx_mblnewsevent_where>
       <label>Location</label>
       <width>50</width>
       <wrapif><![CDATA[ <b>|</b> ]]>,</wrapif>
</tx_mblnewsevent_where>
<tx_mblnewsevent_organizer>
       <label>Location</label>
       <width>50</width>
       <wrapif><![CDATA[ ( | ) ]]>,</wrapif>
</tx_mblnewsevent_organizer>

------ EXAMPLE 1 ------

<xml>
<fields>

   <bodytext>
       <label>Description</label>
      <words>50| [...]</words>
       <width>20</width>
   </bodytext>

   <my_status>
       <label>Status</label>
       <switch>
            <case-1>{0}<![CDATA[<p style='text-align:center;width:70px;padding-left:2px;padding-right:2px;font-weight:bold;background-color:orange;color:white;'>Draft</p>]]></case-1>
            <case-2>{1}<![CDATA[<p style='text-align:center;width:70px;padding-left:2px;padding-right:2px;font-weight:bold;background-color:green;color:white;'>Published</p>]]></case-2>
            <case-3>{2}<![CDATA[<p style='text-align:center;width:70px;padding-left:2px;padding-right:2px;font-weight:bold;background-color:red;color:white;'>Rejected</p>]]></case-3>
</switch>
   </my_status>

   <icon_edit>
       <label>Edit</label>
       <value><![CDATA[<img src='http://typo3.fao.org/typo3/sysext/t3skin/icons/gfx/edit2.gif' border=0>]]></value>
       <link>15251,dyna_fef[uid]={uid}</link>
   </icon_edit>

   <icon_delete>
       <label>Delete</label>
       <value><![CDATA[<img src='typo3/sysext/t3skin/icons/gfx/deletedok.gif' border=0>]]></value>
       <onclick>return confirm('Are you sure you want to delete?')</onclick>
       <value><![CDATA[<img src='typo3/sysext/t3skin/icons/gfx/garbage.gif' border=0>]]></value>
       <link>15251,dyna_fef[duid]={uid}</link>
   </icon_delete>

   <file>
      <source>fileadmin/templates/dynaform/dynalist.xmlc</source>
   </file>

   <image>
       <label>Image</label>
       <path>fileadmin/user_upload/CIOK/images/small_</path>
      <image_wrap><![CDATA[<img src='|' style='border:1px solid black;margin-top:5px;margin-right:10px;float:left;'>]]></image_wrap>
   </image>

   <tx_documentum_theme>
      <dynafef>
         <field_value>uid</field_value>
         <field_label>title</field_label>
      </dynafef>
   </tx_documentum_theme>

   <tstamp>
       <eval>date("j M Y - h:i A",|)</eval>
   </tstamp>

</fields>
</xml>

------ EXAMPLE 2 ------

<fields>
   <tx_mblnewsevent_from>
       <eval>date("j M Y",|)</eval>
       <label>Date from</label>
       <width>50</width>
   </tx_mblnewsevent_from>
   <tx_mblnewsevent_to>
       <eval>date("j M Y",|)</eval>
       <label>Date to</label>
       <width>50</width>
   </tx_mblnewsevent_to>
   <title>
       <label>Title</label>
       <width></width>
       <pagelinkurlfield>links,|</pagelinkurlfield>
       <target>_blank</target>
   </title>
   <countryName>
       <label>Country</label>
       <width>50</width>
       <nowrap>1</nowrap>
       <wrap><![CDATA[<b>|</b>]]></wrap>
   </countryName>
   <user_extextender_order>
       <label><![CDATA[Type: <br>Public:0,Planning:1,Private:2]]></label>
       <width>50</width>
       <nowrap>1</nowrap>
       <wrap><![CDATA[<b>|</b>]]></wrap>
       <usergroup>276</usergroup>
   </user_extextender_order>
   <tx_mblnewsevent_organizer>
       <label>Organizer</label>
       <width>50</width>
       <nowrap>1</nowrap>
       <wrap><![CDATA[<b>|</b>]]></wrap>
   </tx_mblnewsevent_organizer>
   <tx_documentum_theme>
       <label>Theme</label>
       <wrap><![CDATA[|]]></wrap>
   </tx_documentum_theme>
   <icon_edit>
       <label>Edit</label>
       <value><![CDATA[<img src='http://t3admin.com/typo3/sysext/t3skin/icons/gfx/edit2.gif' border=0>]]></value>
       <link>14699,dyna_fef[uid]={uid}</link>
       <usergroup>276</usergroup>
   </icon_edit>
   <icon_delete>
       <label>Delete</label>
       <value><![CDATA[<img src='http://t3admin.com/typo3/sysext/t3skin/icons/gfx/garbage.gif' border=0>]]></value>
       <link>14699,dyna_fef[duid]={uid}</link>
       <onclick>return confirm('Are you sure you want to delete?')</onclick>
       <usergroup>276</usergroup>
   </icon_delete>
</fields>

vkpornodepfile.com