Object

Skip to end of metadata
Go to start of metadata

The Object Placeholder is used to replace values that are stored in a Object.

key
The id of the object
config allowed
Yes
config required Yes

Valid config parameter:

Parameter Description
callMethod
The method of the object which sould be called (the call is localized)
locale The Locale to use (optional)

Example Usage:

    public function objectPlaceholderAction()
    {
        $this->disableViewAutoRender();

        $text = 'Thank you for the order of "%Object(object_id,{"method" : "getName"});"';
        $placeholder = new Pimcore_Placeholder();

        $params = array('object_id' => 73613,
                        'locale' => 'de_DE');

        $replaced = $placeholder->replacePlaceholders($text, $params);
        echo $replaced;
    }
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.