Skip to content
Snippets Groups Projects
Commit 5641d22b authored by Tibor Katelbach's avatar Tibor Katelbach
Browse files

doc costumBuilder

parent 9a6f9110
No related branches found
No related tags found
No related merge requests found
* costumBuilder.org
** preview a costum for an element
just add test/costumId to slug
ex :
element slug : administration-opal
costum template to preview : campagne
{{http://127.0.0.1/ph/costum/co/index/slug/administration-opal/test/campagne}}
this forces the costum slug == campagne
** save choice
[ ] sets on data of the element.costum.slug.campagne
** costumize the template
[ ] template have the particularity of carrying a "dynForm" attribute
contains all the fields and their form input types
that can be edited and modified inside the template
ex : campagne [[/var/www/dev/modules/costum/data/campagne.json]]
[ ] use cms for editable element + path2value
defined inside a template page
[ ] dyFObj.openForm(costum,null,DFdata )
var DFdata = {
'tpl' : '<?php echo $tpl ?>',
"id" : "<?php echo Yii::app()->session["costum"]["contextId"] ?>"
};
costum.col = "<?php echo Yii::app()->session["costum"]["contextType"] ?>";
costum.ctrl = "<?php echo Element::getControlerByCollection(Yii::app()->session["costum"]["contextType"]) ?>";
[ ] save to to elements costum attribute element.costum.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment