String Mill

Developer

Laisvunas

3rd Party (Commercial)


EE Version Support

  • ExpressionEngine 1.x
  • ExpressionEngine 2

Compatibility

If an item is crossed out, it might be untested, not applicable or incompatible. Contact the developer to be sure.

  • Updater
  • Multi Site Manager
  • Stand Alone Entry Form
  • Low Variables
  • Content Elements
  • Better Workflow
  • Matrix
  • Grid
  • Webservice
  • Publisher

Requirements

  • jQuery for the Control Panel

Add-On Type(s)

Plugin

Tags

The aim of this plugin is to enable to use PHP string functions in templates.

PARAMETERS
 
  1) function - required. Allows you to specify PHP string function. Functions fprintf() and implode() cannot be used. .

2) param1, param2, param3, param4 and param5 - optional. Allows you to specify parameters
  needed by the PHP string function. These parameters must be in sequence,
  so that if there’s a param2 there must also be a param1.
 
  Parameters param1, param2, param3, param4 and param5 also can have as their values two special strings:
  “tagdata” and “areadata”, e.g. param3=“tagdata” or param3=“areadata”. “tagdata” means that PHP string
  function will be executed having tagdata of exp:string_mill tag as the value of relevant parameter;
  “areadata” means that PHP string function will be executed having the data of {string_mill_pro_area}{/string_mill_pro_area}
  variable pair as the value of relevant parameter. In case the tag exp:string_mill does not have any
  of the parameters param1, param2, param3, param4 and param5, PHP string
  function will be executed having tagdata of exp:string_mill tag as the value of the first parameter. In case
  the tag exp:string_mill has {string_mill_pro_area}{/string_mill_pro_area} variable pair, but neither this variable
  pair nor the tag himself has any of the parameters param1, param2, param3, param4 and param5, PHP string function
  will be executed having the data of {string_mill_pro_area}{/string_mill_pro_area}
  variable pair as the value of the first parameter.

To know how many parameters the function takes, see its PHP documentation.

For example,
 

{exp:string_mill_pro function="rtrim" param1="tagdata" param2="st"}test{/exp:string_mill_pro} 

 
  would return “te”.

  VARIABLE PAIR
 
  String Mill Pro plugin supports optional {string_mill_pro_area}{/string_mill_pro_area} variable pair.
  Variable pair is used to mark an area which shoul be processed by {exp:string_mill} tag
  Variable pair can be useful when you need more control over parse order.
  This variable pair can have the same parameters as {exp:string_mill} tag except “subject_order” and “parse”. In case
  variable pair does not have parameters, those of the tag are used.
  For example, you can code as here
 

{exp:string_mill_pro function="rtrim" param1="areadata" param2="st"}
  blah blah blah
  {string_mill_pro_area}test{/string_mill_pro_area}
  blah blah blah
  {/exp:string_mill_pro}

 
  or as here
 

{exp:string_mill_pro}
  blah blah blah
  {string_mill_pro_area function="rtrim" param1="areadata" param2="st"}test{/string_mill_pro_area}
  blah blah blah
  {/exp:string_mill_pro}

 
  In both cases the result will be
 

blah blah blah
  te
  blah blah blah

This entry was created April 12, 2010, 11:34 am.
This entry was last updated September 7, 2011, 2:36 am.

Disclaimer: Information about ExpressionEngine add-ons is provided as a service to you, the user, and every member of the ExpressionEngine community. devot:ee is not responsible if you hose, mangle, wreck, or otherwise destroy your EE website by installing an add-on that you found out about at this site, regardless of its rating, Favorites status, commercial or free status, or general popularity. Caveat EEmptor!

Returns: devot:ee has a 30-day return policy on all commercial add-ons sold through devot-ee.com. If you need to return an add-on, do not go to the developer or the developer's site, but rather visit our returns page at https://devot-ee.com/returns to initiate your return. If you have questions, email support@devot-ee.com.

There are no reviews for this add-on yet.

What are you waiting for? Rate it and review it!