This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pimcore.registerNS('pimcore.object.tags.myspecialdatatype'); | |
pimcore.object.tags.myspecialdatatype = Class.create(pimcore.object.tags.abstract, { | |
type: "mySpecialDatatype", | |
initialize: function (data, fieldConfig) { | |
this.data = ""; | |
if (data) { | |
this.data = data; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pimcore.registerNS("pimcore.object.classes.data.myspecialdatatype"); | |
pimcore.object.classes.data.myspecialdatatype = Class.create(pimcore.object.classes.data.data, { | |
type: "mySpecialDatatype", | |
/** | |
* define where this datatype is allowed | |
*/ | |
allowIn: { | |
object: true, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace MyBundle; | |
use Pimcore\Extension\Bundle\AbstractPimcoreBundle; | |
class MyBundle extends AbstractPimcoreBundle | |
{ | |
public function getJsPaths() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace MyBundle\Model\MySpecialDatatype; | |
use Pimcore\Model\DataObject\ClassDefinition\Data; | |
use Pimcore\Model\DataObject\ClassDefinition\Data\ResourcePersistenceAwareInterface; | |
use Pimcore\Model\DataObject\ClassDefinition\Data\QueryResourcePersistenceAwareInterface; | |
use Pimcore\Model\DataObject\Traits\SimpleComparisonTrait; | |
use Pimcore\Model\DataObject\ClassDefinition\Data\Extension; |