Editables

Skip to end of metadata
Go to start of metadata

 The editables are placeholders in the templates, which are input widgets in the admin (editmode) and output the content in frontend mode.

General

Most of the editables use ExtJS widgets, these editables can be also configured with options of the underlying ExtJS widget.

For example: 

<?php echo $this->input('iframe_src', array(
    'grow' => true,
    'cls' => 'my-css-class' 
)); ?>

You can also use Zend_Json_Expr to add "native" Javascript to an editable: 

<?php echo $this->input('iframe_src', array(
 'validator' => new Zend_Json_Expr('
    function(value){
        if(value.match(/http:.*/)){
            return true;
        }else{
            return "invalid";
        }
    }')
)); ?>
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.
  1. Oct 28, 2010

    Tim Glabisch says:

    have a look at the pimcore\models\Document\Tag folder, all classes are here...

    have a look at the pimcore\models\Document\Tag folder, all classes are here. if you use in the template the $this->[some tag] function, pimcore looks for a Document_Tag_[some tag] class and create an instance. you can create new tags (or extend, ...) using the same folder structure in plugins. have a look at Zend_Autoloading.