heading
stringlengths
2
103
url
stringlengths
50
196
text
stringlengths
3
17.2k
embeddings
list
Areablock Editable
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Areablock#areablock-editable
Areablock Editable
[ -0.12883220613002777, 0.022168172523379326, -0.5900387763977051, -0.06298679113388062, -0.10793305933475494, -0.05610033869743347, 0.23278945684432983, -0.4525975286960602, 0.5927885174751282, 0.3656451106071472, 0.30474144220352173, -0.27408191561698914, -0.7033906579017639, -0.1696195006...
General
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Areablock#general
General The areablock is the content construction kit for documents offered by Pimcore.
[ 0.25027036666870117, 0.16234639286994934, 0.028644157573580742, -0.2690388262271881, -0.4204202890396118, -0.11366929113864899, 0.26538780331611633, -1.1058108806610107, 1.007189154624939, 0.47147560119628906, 0.18675142526626587, -0.39129480719566345, -0.02421145886182785, 0.0249365661293...
Integrate an Areablock in a Template
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Areablock#integrate-an-areablock-in-a-template
Integrate an Areablock in a Template Similar to the other document editables, an areablock can be integrated in any document view template as follows: {{ pimcore_areablock("myAreablock") }} Advanced usage with allowed areas, below: {{ pimcore_areablock("myAreablock", { "allowed&quo...
[ 0.3036215305328369, -0.18164661526679993, -0.1803901195526123, 0.10649091005325317, -0.32855406403541565, 0.06390389055013657, 0.049471840262413025, -0.6098616719245911, 0.5376194715499878, 0.8335840702056885, 0.24511241912841797, 0.2696549594402313, 0.11704519391059875, 0.2488308399915695...
Accessing Parameters from the Brick File
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Areablock#accessing-parameters-from-the-brick-file
Accessing Parameters from the Brick File Use the value of parameter named "param1" for this brick: {{ param1 }}
[ 0.6288503408432007, -0.024346664547920227, -0.04849288612604141, 0.08381635695695877, -0.8502042293548584, -0.2654068171977997, 0.2897703945636749, 0.3458814322948456, 0.659858226776123, 0.3864787817001343, 1.076480746269226, 0.23138296604156494, 0.18082474172115326, -0.7780959606170654, ...
Sorting Items in the menu
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Areablock#sorting-items-in-the-menu
Sorting Items in the menu {{ pimcore_areablock("content", { "allowed": ["image","video","wysiwyg"], "sorting": ["wysiwyg","video","image"], }) }} And you can see the effect, below:
[ -0.21174095571041107, -0.2025250941514969, -0.033491093665361404, 0.3077259659767151, -0.3551025092601776, -0.12021953612565994, 0.1626424789428711, 0.3731106221675873, 0.6428303122520447, 1.279261827468872, -0.15289069712162018, 0.02285381592810154, 0.6096111536026001, -0.3440935015678406...
Configuration
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Areablock#configuration
Configuration Name Type Description allowed array An array of area-ID's which are allowed for this tag. The order of items in the array is also used as the default sorting, but of course you can combine this configuration with sorting sorting array An array of area-ID's in the order you want to display them in...
[ 0.18643920123577118, -0.40641477704048157, -0.3191353976726532, 0.19585134088993073, -1.0157737731933594, -0.15062642097473145, 0.2299969643354416, 0.4902339279651642, 0.38517919182777405, 0.9850357174873352, 0.5387493371963501, 0.1575162410736084, -0.011711036786437035, -0.456096172332763...
Example
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Areablock#example
Example {{ pimcore_areablock("myArea") }}
[ -0.030309397727251053, 0.04977497085928917, -0.3935726284980774, -0.6047618389129639, -0.6317281126976013, -0.6212127208709717, 0.2777767777442932, -0.10197325795888901, 0.7300326824188232, 0.7660477757453918, 0.3758372664451599, 0.07293008267879486, 0.1650213897228241, 0.09794632345438004...
Methods
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Areablock#methods
Methods Name Return Description getCount() int Total count of blocks getCurrent() int Current number of block (useful with area bricks) getCurrentIndex() int Get the current index (index is different from position, as you can move block around) getElement() array Get an element out of an areabrick render...
[ -0.0850953608751297, 0.09738145768642426, -0.8748970627784729, -0.14592544734477997, -0.4540577828884125, -0.48507049679756165, 0.4270685315132141, 0.3592272698879242, 1.0257233381271362, 0.9485260844230652, 0.5715518593788147, 0.16592161357402802, -0.024539178237318993, -0.389357388019561...
How to Create Bricks for the Areablock
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Areablock#how-to-create-bricks-for-the-areablock
How to Create Bricks for the Areablock You can read about bricks in the Bricks section.
[ 0.032050665467977524, 0.04826752096414566, -0.2569767236709595, -0.5530466437339783, 0.05407733470201492, -0.7008392214775085, 0.6018463373184204, -0.031901247799396515, 1.262140154838562, 0.4960097670555115, 0.4562622010707855, -0.047775447368621826, 0.15198266506195068, -0.53359287977218...
Limit certain Bricks for the Areablock
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Areablock#limit-certain-bricks-for-the-areablock
Limit certain Bricks for the Areablock You can limit certain bricks for the Areablock by using limits configurations.
[ 0.21237483620643616, 0.34528058767318726, -0.02699536457657814, 0.14715148508548737, -0.5464881658554077, -0.1107056587934494, 0.16840516030788422, 0.41436585783958435, 0.322573721408844, 0.8051691055297852, 0.3594469428062439, 0.11908265948295593, -0.19875815510749817, -0.2909574508666992...
Example
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Areablock#example
Example {{ pimcore_areablock("myAreablock", { "allowed": ["iframe","teasers","wysiwyg"], "limits": { "iframe": 1, "teasers": 2 }, "limit": 5 }) }}
[ -0.015968378633260727, 0.00871821865439415, -0.2517099976539612, -0.13984161615371704, -0.7249382734298706, -0.5596742033958435, 0.021526029333472252, -0.2085706740617752, 0.5077708959579468, 0.9222038388252258, 0.26531746983528137, 0.22530387341976166, 0.24386876821517944, -0.287421435117...
Using Manual Mode
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Areablock#using-manual-mode
Using Manual Mode The manual mode offers you the possibility to use areablocks with custom HTML, this is for example useful when using tables: {% set areaBlock = pimcore_areablock("myArea", {"manual":true}) %} {% do areaBlock.start() %} <table> {% for i in areaBlock.iterator %} {%...
[ 0.12577253580093384, -0.41318902373313904, -0.32612720131874084, 0.15949033200740814, -0.586872935295105, 0.4085865616798401, 0.41427791118621826, 0.3174707889556885, 0.5130221843719482, 0.9368760585784912, 0.1307290941476822, 0.18004512786865234, -0.23678267002105713, 0.06782127171754837,...
Accessing Data Within an Areablock Element
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Areablock#accessing-data-within-an-areablock-element
Accessing Data Within an Areablock Element See Block for an example how to get elements from block and areablock editables.
[ 0.006107971537858248, 0.019626785069704056, -0.3990589380264282, 0.24176351726055145, -0.13872934877872467, 0.27512943744659424, 0.16664566099643707, 0.04752184450626373, 0.8885830044746399, 0.7834882140159607, 0.10750394314527512, 0.21900615096092224, -0.1693178415298462, -0.2381295263767...
Area Editable
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Area#area-editable
Area Editable
[ -0.36677807569503784, -0.08488696068525314, -0.35230064392089844, -0.21086326241493225, 0.030539609491825104, -0.20002059638500214, 0.19032469391822815, -0.07867373526096344, 0.40712565183639526, 0.5660228729248047, 0.41702917218208313, -0.04744458198547363, -0.3715243637561798, -0.0654215...
General
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Area#general
General The area editable is similar to the areablock editable, the only difference is that the area bricks are not wrapped into a block element, and the editor cannot choose which area is used, this has to be done in the editable configuration in the template.
[ -0.20806564390659332, -0.050299160182476044, -0.6514303088188171, 0.09066469967365265, -0.18443340063095093, -0.0882064625620842, 0.17116369307041168, -0.23602110147476196, 0.1424061357975006, 0.7169634103775024, 0.5067338347434998, 0.40347597002983093, 0.13978765904903412, -0.594482719898...
Configuration
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Area#configuration
Configuration Name Type Description type string ID of the brick which should be used in this area params array Optional Parameter see areablock for details class string A CSS class that is added to the surrounding container of this element in editmode
[ 0.059216033667325974, -0.45454904437065125, -0.30337581038475037, 0.03280791640281677, -0.6970778107643127, -0.12181051075458527, 0.4625822603702545, 0.3712518513202667, 0.7276527285575867, 0.528834342956543, 0.8839880228042603, 0.11899586766958237, 0.405987948179245, -0.31393924355506897,...
Methods
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Area#methods
Methods Name Return Description getElement($name) Document\Editable Retrieves an editable from within the actual area
[ -0.04595371335744858, -0.5017474293708801, 0.01575137861073017, 0.09659363329410553, -0.431657999753952, 0.17062054574489594, -0.4587186872959137, -0.051426488906145096, 0.8056775331497192, 0.5949313640594482, 1.0844935178756714, 0.2492351531982422, -0.24890680611133575, 0.5756554007530212...
Example
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Area#example
Example <div> {{ pimcore_area('myArea', { 'type' : 'gallery-single-images' }) }} </div>
[ -0.22271451354026794, -0.02151200734078884, -0.27602729201316833, -0.4431501626968384, -0.20400230586528778, -0.48137322068214417, -0.06959348917007446, 0.14154405891895294, 0.8244439959526062, 0.980746328830719, 0.3721650540828705, 0.045070428401231766, 0.5256738662719727, 0.0216517709195...
Example with Parameters
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Area#example-with-parameters
Example with Parameters <div> {{ pimcore_area('myArea', { type: 'gallery-single-images', params: { 'gallery-single-images': { 'param1': 123, } } }) }} </div> Get the params in your brick: <div> {{ param1 }} </div>
[ 0.6264916658401489, -0.41488710045814514, -0.38271063566207886, -0.5583661794662476, -0.5341829061508179, -0.4260304570198059, 0.22313034534454346, 0.435427725315094, 0.7989261746406555, 0.8083921074867249, 0.973865270614624, 0.08784382045269012, 0.30526962876319885, -0.23902419209480286, ...
Accessing Data Within an Area Element
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Area#accessing-data-within-an-area-element
Accessing Data Within an Area Element Assuming your area uses a brick gallery-single-images which contains a gallery block (see CMS demo): <?php // load document $document = \Pimcore\Model\Document\Page::getByPath('/en/basic-examples/galleries'); /** @var \Pimcore\Model\Document\Editable\Area $area */ $area = $docu...
[ -0.05024585872888565, 0.13478946685791016, -0.3843408524990082, -0.1807211935520172, -0.13010276854038239, 0.051553040742874146, 0.29811516404151917, -0.024489201605319977, 0.9868762493133545, 0.9169669151306152, 0.7917070984840393, 0.6145757436752319, 0.2625350058078766, 0.027536332607269...
Block Editable
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Block#block-editable
Block Editable
[ -0.6850845217704773, -0.30365630984306335, -0.23433451354503632, 0.6211798787117004, 0.009752701967954636, -0.16822567582130432, 0.14243842661380768, -0.25186192989349365, 0.24341531097888947, 0.7186437249183655, 0.44459548592567444, 0.2812674045562744, 0.2776339650154114, -0.1655935496091...
General
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Block#general
General The block element is an iterating component which is really powerful. Basically a block is only a loop, but you can use other editables within this loop, so it's possible to repeat a set of editables to create structured content (eg. a link list, or a image gallery). The items in the loop as well as their order...
[ -0.10846760123968124, -0.15912483632564545, -0.34686800837516785, 0.2686288356781006, 0.2664390802383423, 0.28028079867362976, -0.2568424940109253, -0.16565963625907898, 1.0162146091461182, 0.9256870150566101, 0.24951358139514923, 0.5629711747169495, 0.5862964987754822, -0.7013389468193054...
Configuration
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Block#configuration
Configuration Name Type Description limit integer Max. amount of iterations. reload bool Reload editmode on add, move or remove (default=false) default integer If block is empty, this specifies the iterations at startup. manual bool Forces the manual mode, which enables a complete custom HTML implementatio...
[ -0.2712216377258301, -0.5894497632980347, -0.0675051137804985, 0.7895539402961731, -0.543091356754303, 0.4917880594730377, -0.09572792053222656, 0.08782781660556793, -0.20291337370872498, 1.1219029426574707, 0.31730780005455017, 0.05865214392542839, 0.2204773873090744, -0.29533204436302185...
Methods
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Block#methods
Methods Name Return Description isEmpty() bool Whether the editable is empty or not. getCount() int Get the total amount of iterations. getCurrent() int Get the current index while looping. getElements() array Return a array for every loop to access the defined children.
[ -0.48709192872047424, -0.12170378863811493, -0.5302504897117615, 0.1820136308670044, -0.07434910535812378, -0.23733806610107422, -0.49517622590065, -0.17994755506515503, 0.75274258852005, 0.9123638868331909, 0.6200045943260193, 0.2751525342464447, -0.3155791759490967, -0.391295850276947, ...
The Block Controls
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Block#the-block-controls
The Block Controls Control Operation Add a new block at the current position. Remove the current block. Move Block up and down.
[ -0.08180058747529984, 0.18466484546661377, -0.1332155466079712, -0.09548543393611908, -0.30628833174705505, -0.2711755037307739, -0.22117286920547485, 0.6474750638008118, 0.752921998500824, 1.202086329460144, 0.40321674942970276, 0.9849446415901184, -0.264945387840271, -0.4716567099094391,...
Basic Usage
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Block#basic-usage
Basic Usage {% for i in pimcore_block('contentblock').iterator %} <h2>{{ pimcore_input('subline') }}</h2> {{ pimcore_wysiwyg('content') }} {% endfor %} The result in editmode should looks like to following: And in the frontend of the application:
[ 0.034986332058906555, -0.3587234616279602, -0.41776108741760254, 0.2974098324775696, -0.5930079221725464, 0.1506081074476242, 0.09717163443565369, -0.5863928198814392, 1.1286166906356812, 1.0921646356582642, -0.35650748014450073, 0.28556933999061584, 0.16838468611240387, -0.098894089460372...
Advanced Usage
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Block#advanced-usage
Advanced Usage
[ 0.5516717433929443, 0.04465017467737198, -0.022862128913402557, 0.9512038826942444, -0.5633201003074646, -0.37819939851760864, 0.40825700759887695, -0.47480493783950806, 0.9787615537643433, 0.3454228639602661, 0.8515026569366455, -0.08354946225881577, 0.18899834156036377, -0.19298212230205...
Example for getCurrent()
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Block#example-for-getcurrent()
Example for getCurrent() {% set myBlock = pimcore_block('contentblock', {'reload': true}) %} {% for i in myBlock.iterator %} {% if myBlock.current > 0 %} Insert this line only after the first iteration<br /> <br /> {% endif %} <h2>{{ pimcore_input('subline') }}</h2&gt...
[ 0.08726522326469421, -0.29415950179100037, -0.6512967944145203, 0.29470258951187134, -0.4039563536643982, 0.12241461127996445, -0.4873257577419281, -0.4798198938369751, 0.9014407992362976, 0.9065532088279724, 0.4540441930294037, 0.09125559777021408, 0.27421241998672485, -0.3882739841938019...
Using Manual Mode
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Block#using-manual-mode
Using Manual Mode The manual mode offers you the possibility to deal with block the way you like, this is for example useful with tables: {% set block = pimcore_block('gridblock', {'manual' : true, 'limit' : 6}).start() %} <table> <tr> {% for b in block.iterator %} {% do block.blockC...
[ -0.058175671845674515, -0.45925667881965637, 0.0060839042998850346, 0.08228765428066254, -0.6998614072799683, 0.3871113359928131, 0.5076045393943787, 0.3934154510498047, 0.39939063787460327, 0.9860236048698425, 0.27489086985588074, 0.3741161525249481, 0.14444682002067566, -0.18598136305809...
Using Manual Mode with custom button position
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Block#using-manual-mode-with-custom-button-position
Using Manual Mode with custom button position If you want to wrap buttons in a div or change the Position. {% set block = pimcore_block("gridblock", {"manual": true}).start() %} <table> <tr> {% for b in block.iterator %} {% do block.blockConstruct() %} ...
[ 0.1466822773218155, -0.6690133810043335, -0.07729939371347427, 0.020905468612909317, -0.6114526987075806, 0.13199947774410248, 0.29802802205085754, 0.28210049867630005, 0.5008928179740906, 0.9211593866348267, 0.23845714330673218, 0.20599834620952606, 0.22622165083885193, -0.040740586817264...
Using Manual Mode with additional css class for element in editmode
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Block#using-manual-mode-with-additional-css-class-for-element-in-editmode
Using Manual Mode with additional css class for element in editmode {% set block = pimcore_block("gridblock", {"manual": true}).start() %} <div> {% for b in block.iterator %} {% do block.blockConstruct() %} {% do block.blockStart(true, false, 'my-additional-class') %} ...
[ -0.07973073422908783, -0.1910886913537979, -0.22953425347805023, 0.5078555345535278, -0.3134092688560486, 0.5146389603614807, 0.3823539912700653, 0.1013069823384285, 0.40561792254447937, 1.3375529050827026, -0.044094037264585495, 0.1750604510307312, 0.3747197091579437, -0.2623845338821411,...
Accessing Data Within a Block Element
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Block#accessing-data-within-a-block-element
Accessing Data Within a Block Element Bricks and structure refer to the CMS demo (content/default template). {# load document #} {% set document = pimcore_document_by_path('/en/More-Stuff/Developers-Corner/Galleries') %} {# get the first picture from the first "gallery-carousel" brick #} {% set image = docu...
[ 0.037304967641830444, -0.39844629168510437, 0.15022949874401093, -0.4230440855026245, 0.10359375178813934, 0.2820175290107727, 0.10047916322946548, -0.015462749637663364, 0.6753105521202087, 0.5410832762718201, 0.5338192582130432, 0.5962967872619629, 0.5556573867797852, -0.2616001069545746...
Checkbox Editable
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Checkbox#checkbox-editable
Checkbox Editable
[ -0.7737581729888916, -1.0059949159622192, -0.18795736134052277, -0.03260146453976631, -0.5254245400428772, 0.0026969623286277056, 0.1713045835494995, -0.4558112323284149, 0.7627819776535034, 0.5846659541130066, 0.8627601265907288, -0.17738933861255646, -0.16419951617717743, -0.201088935136...
Configuration
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Checkbox#configuration
Configuration Name Type Description reload boolean Set to true to reload the page in editmode after changing the state. label string a <label> which is added in the editmode class string A CSS class that is added to the surrounding container of this element in editmode
[ -0.6573214530944824, -0.9079073071479797, -0.16911526024341583, 0.676527202129364, -0.24980145692825317, -0.024830589070916176, 0.05168227478861809, -0.5094574093818665, 0.3193948566913605, 0.8414300084114075, 0.45677974820137024, 0.22298432886600494, 0.7692647576332092, -0.328010827302932...
Methods
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Checkbox#methods
Methods Name Return Description isChecked() boolean Get status of the checkbox. isEmpty() boolean Whether the editable is empty or not (alias of isChecked())
[ -0.7131556272506714, -0.998216986656189, 0.13055650889873505, 0.2221367508172989, -0.49591735005378723, -0.4198342561721802, 0.2633422017097473, -0.1366582214832306, 0.3644300699234009, 0.8744192719459534, 0.7231065034866333, -0.06094065308570862, 0.04666579142212868, -0.5910375118255615, ...
Simple Example
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Checkbox#simple-example
Simple Example {{ pimcore_checkbox('myCheckbox') }}
[ -0.544288158416748, -0.6034722328186035, 0.38798612356185913, -0.7550451159477234, -0.6902340650558472, -0.6328118443489075, 0.22310732305049896, -0.4247000217437744, 0.9700350165367126, 0.9177626967430115, 0.9411654472351074, -0.22930040955543518, 0.3832426071166992, 0.18556241691112518, ...
Advanced Example
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Checkbox#advanced-example
Advanced Example Setting XYZ: {{ pimcore_checkbox('myCheckbox') }} {% if pimcore_checkbox('myCheckbox').isChecked() %} <div> {{ dump('do something') }} </div> {% endif %}
[ -0.04756169021129608, -0.6799808740615845, 0.4741371273994446, -0.464995414018631, -0.5502095222473145, -0.8177160620689392, 0.36352506279945374, -0.6784361004829407, 0.6503946185112, 1.2223474979400635, 0.6273643374443054, 0.16963748633861542, 0.7674527168273926, -0.04459165036678314, -...
Date Editable
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Date#date-editable
Date Editable
[ -0.18146823346614838, -0.18380509316921234, -0.5340158343315125, 0.00888181384652853, -0.6336830854415894, 0.1189759373664856, 0.41660115122795105, -0.17739549279212952, 0.7909335494041443, 0.6835930943489075, 0.47311481833457947, -0.2892869710922241, 0.041065510362386703, -0.1112966090440...
Configuration
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Date#configuration
Configuration Name Type Description format string A string which describes how to format the date in editmode outputFormat string A string which describes how to format the date in frontend, see possible formats class string A CSS class that is added to the surrounding container of this element in editmode ...
[ -0.18905009329319, -0.6874687075614929, -0.23938246071338654, -0.18321259319782257, -0.3745356798171997, -0.3614833354949951, 0.1922081857919693, -0.031373053789138794, 0.5332821607589722, 1.0759799480438232, 0.2400841861963272, 0.15331622958183289, 0.6487880349159241, -0.30962738394737244...
Methods
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Date#methods
Methods Name Return Description isEmpty() boolean Whether the editable is empty or not
[ -0.6269223690032959, -0.4531998038291931, -0.14532864093780518, 0.40546730160713196, -0.5194151401519775, -0.6123292446136475, -0.022582072764635086, -0.01040396373718977, 0.4624643921852112, 0.8812022805213928, 0.7523664236068726, -0.0647101104259491, -0.3934609889984131, -0.4901995062828...
Simple Example
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Date#simple-example
Simple Example The following code will create a simple date widget in editmode. In frontend it will format the date as defined in format. Localization (output-format, ...) is automatically used from the globally registered locale. Please read the topic Localization. {{ pimcore_date('myDate', { 'format': 'd.m.Y', ...
[ -0.005745254922658205, -0.47160837054252625, -0.39512524008750916, -0.5133206248283386, -0.4685710668563843, 0.16165152192115784, 0.6070021986961365, -0.5410398244857788, 0.7194259166717529, 0.9397127628326416, -0.24686232209205627, -0.11230882257223129, 0.11664372682571411, 0.000074085000...
Relation (Many-To-One) Editable
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Relation_Many-To-One#relation-(many-to-one)-editable
Relation (Many-To-One) Editable
[ -0.36907657980918884, -0.29312071204185486, -0.617921769618988, 0.2224167138338089, -0.024399619549512863, 0.24550321698188782, 0.04743204265832901, -0.19911658763885498, 0.9295892119407654, 0.29128390550613403, 0.3586285412311554, -0.5437048077583313, -0.294264554977417, -0.28498503565788...
General
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Relation_Many-To-One#general
General The relation editable provides the functionality to create a reference to an other element in Pimcore (document, asset, object). In frontend-mode this editable returns the path of the linked element.
[ -0.3433663249015808, -0.14795388281345367, -0.5948656797409058, 0.18092738091945648, -0.11702229082584381, 0.35497573018074036, -0.20361024141311646, -0.819057285785675, 0.8537452816963196, 0.3590703308582306, 0.05560094118118286, -0.2930968701839447, 0.3657509982585907, -0.311872124671936...
Configuration
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Relation_Many-To-One#configuration
Configuration Name Type Description types array Allowed types (document, asset, object), if empty all types are allowed subtypes array Allowed subtypes grouped by type (folder, page, snippet, image, video, object, ...), if empty all subtypes are allowed (see example below) classes array Allowed object class ...
[ -0.363564133644104, -0.19558238983154297, -0.08940749615430832, -0.019909033551812172, -0.8093416690826416, -0.14569775760173798, -0.003845267929136753, -0.19420315325260162, 0.23840685188770294, 1.3838014602661133, 0.9409338235855103, 0.6177445650100708, 0.7069519758224487, -0.28735715150...
Methods
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Relation_Many-To-One#methods
Methods Name Return Description getElement() Element Get the assigned element getFullPath() string Get the full path of the assigned element. isEmpty() boolean Whether the editable is empty or not
[ -0.48583275079727173, -0.4166845977306366, -0.08788319677114487, 0.006159154698252678, -0.8746833205223083, -0.07823632657527924, 0.1774459332227707, -0.1749158799648285, 0.45270660519599915, 0.9788804650306702, 0.8905981779098511, 0.07737074792385101, -0.0001352929975837469, -0.3405171930...
Examples
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Relation_Many-To-One#examples
Examples
[ 0.3837350010871887, 0.14691977202892303, 0.5331786274909973, -0.2069624811410904, -0.6330183744430542, -0.9425056576728821, 0.14783568680286407, 0.04567689448595047, 0.40456539392471313, 0.9562780857086182, 0.9288752675056458, 0.8574786186218262, 0.509227991104126, -0.30105534195899963, ...
Basic usage
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Relation_Many-To-One#basic-usage
Basic usage You can just create the code line like, below: {{ pimcore_relation("myRelation") }} After, the view in the administration panel changes like in the picture:
[ -0.3931433856487274, -0.45540547370910645, -0.5695714354515076, -0.304375022649765, -0.40682461857795715, 0.1939794272184372, -0.06493614614009857, -0.43863144516944885, 0.5159668922424316, 0.4254467189311981, 0.35567131638526917, -0.3482331931591034, 0.06288720667362213, -0.15413847565650...
Using Restriction
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Relation_Many-To-One#using-restriction
Using Restriction If you want specify elements which could be assigned to the relation editable, use types, subtypes and classes options in the editable configuration.
[ -0.44608110189437866, -0.16047745943069458, -0.20543207228183746, 0.060288798063993454, -0.593650758266449, 0.5369201302528381, -0.09410583972930908, -0.05938129872083664, 0.40009140968322754, 0.3806799650192261, 0.12235606461763382, -0.4200260043144226, 0.4515267312526703, -0.372381091117...
Example
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Relation_Many-To-One#example
Example {{ pimcore_relation("myRelation",{ "types": ["asset","object"], "subtypes": { "asset": ["video", "image"], "object": ["object"], }, "classes": ["person"] }) }} ...
[ -0.06687083095312119, -0.031204620376229286, -0.37184855341911316, 0.0019618456717580557, -0.29747140407562256, -0.09553423523902893, 0.08502146601676941, -0.2483704388141632, 0.7640705704689026, 0.3446695804595947, 0.26200079917907715, -0.2615688443183899, 0.6740046143531799, -0.490828752...
Download Example
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Relation_Many-To-One#download-example
Download Example Another useful use-case for the relation editable is a download link. {% if editmode %} {{ pimcore_relation("myRelation") }} {% else %} {% if pimcore_relation("myRelation").getElement() is instanceof('\\Pimcore\\Model\\Asset') %} <a href="{{ pimcore_relation...
[ -0.40421968698501587, -0.11614653468132019, -0.3643868565559387, 0.2149052619934082, -0.5538430213928223, -0.052820198237895966, -0.058446500450372696, -0.6553242802619934, 0.804105281829834, 0.3351263701915741, 0.4932021200656891, -0.398418128490448, 0.8189264535903931, 0.0122184418141841...
Relations (Many-To-Many) Editable
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Relations_Many-To-Many#relations-(many-to-many)-editable
Relations (Many-To-Many) Editable
[ -0.23091739416122437, -0.3920864164829254, -0.5368411540985107, 0.29841309785842896, 0.04002072662115097, -0.023319238796830177, -0.0799853727221489, -0.21606677770614624, 0.8453150987625122, 0.2905683219432831, 0.2552391588687897, -0.32384422421455383, -0.21973088383674622, -0.25147524476...
General
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Relations_Many-To-Many#general
General The relations editable provides many to many relation to other Pimcore elements (document, asset, object).
[ -0.4625294506549835, -0.14009997248649597, -0.2315003126859665, 0.09717122465372086, -0.06729191541671753, 0.06537514179944992, 0.24672351777553558, -0.9123373031616211, 1.446216344833374, 0.301032692193985, 0.1501292884349823, -0.24691788852214813, 0.23031722009181976, -0.466747522354126,...
Configuration
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Relations_Many-To-Many#configuration
Configuration Name Type Description width integer Width for the widget in pixels (optional) height integer Height for the widget in pixels (optional) title string Title for the input-widget uploadPath string Target path for (inline) uploaded assets disableInlineUpload boolean Disable the inline upload f...
[ -0.26226288080215454, -0.07855946570634842, 0.07085850089788437, 0.001390600809827447, -0.7386984825134277, 0.1169782280921936, 0.2362857162952423, -0.11941862851381302, 0.3602723479270935, 0.995756208896637, 0.714750349521637, 0.49785253405570984, 0.479637086391449, -0.23851989209651947, ...
Methods
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Relations_Many-To-Many#methods
Methods Name Return Description getElements() array Array of the assigned elements current() int Get the current index while looping isEmpty() boolean Whether the editable is empty or not
[ -0.6649382710456848, -0.4406818747520447, -0.6035816073417664, 0.057033512741327286, -0.5974974036216736, -0.4514600336551666, -0.05908579379320145, -0.1306520402431488, 0.7518550157546997, 1.1948678493499756, 0.8963662385940552, 0.18002060055732727, -0.24749623239040375, -0.60945814847946...
Example
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Relations_Many-To-Many#example
Example
[ 0.12308672815561295, 0.19909104704856873, 0.552802562713623, -0.2330138087272644, -0.6007477641105652, -0.9912458062171936, -0.033583417534828186, 0.01040073111653328, 0.29117095470428467, 0.9278097748756409, 0.8618176579475403, 0.35090669989585876, 0.266749769449234, -0.12894025444984436,...
Basic Usage
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Relations_Many-To-Many#basic-usage
Basic Usage The code below is responsible for showing a list of elements types related to the relations editable. <p>{{ "Types of elements" | trans }}:</p> {% if editmode %} {{ pimcore_relations("objectPaths") }} {% else %} <ul> {% for element in pimcore_relations("obj...
[ -0.4492943584918976, -0.36559003591537476, 0.035421013832092285, 0.1441822350025177, -0.3916664123535156, 0.10000695288181305, 0.23604148626327515, -0.4970017671585083, 0.5166665315628052, 0.6039634346961975, 0.3356269896030426, 0.21514880657196045, 0.5854448676109314, -0.1863224059343338,...
Example with allowed types and subtypes
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Relations_Many-To-Many#example-with-allowed-types-and-subtypes
Example with allowed types and subtypes Similar to the single relation editable, this editable also could specify allowed types, subtypes and classes. For example: {{ pimcore_relations("objectPaths", { "types": ["asset","object"], "subtypes": { "ass...
[ 0.03690413385629654, 0.0026256851851940155, -0.36046579480171204, -0.2783132791519165, -0.6883000731468201, 0.0039040283299982548, -0.19531434774398804, -0.20759858191013336, 0.5842822790145874, 0.835544228553772, 0.6171663403511047, -0.16020578145980835, 0.6236073970794678, -0.39836823940...
Image Editable
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Image#image-editable
Image Editable
[ -0.29983198642730713, -0.3393358588218689, -0.04900316894054413, -0.2884574234485626, 0.49285727739334106, -0.5699018239974976, 0.022557154297828674, -0.2219206839799881, 0.6454095840454102, 0.5622743368148804, 0.7894453406333923, -0.0463474877178669, 0.31765785813331604, -0.41496759653091...
Description
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Image#description
Description The image editable adds a placeholder for images out of the assets module. The biggest advantages of using that instead of (for example) the relation editable: You are able to specify generated thumbnail properties (including high-res) There is an image preview rendered in the administration panel You can ...
[ 0.020466886460781097, 0.13045740127563477, -0.32916712760925293, 0.005019700154662132, -0.029868129640817642, -0.27859634160995483, 0.044473450630903244, -0.27090921998023987, 0.4478256404399872, 0.30562129616737366, 0.7092103362083435, -0.8417506814002991, 0.9728643298149109, -0.366761744...
Configuration
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Image#configuration
Configuration Name Type Description title string You can give the image widget in editmode a title. Using the new style this title is displayed as a tooltip. width integer Width of the image in pixel height integer Height of the image in pixel thumbnail string|array Name of the configured thumbnail as stri...
[ 0.1839742511510849, -0.6059037446975708, 0.1650913655757904, -0.0440678671002388, -0.23199281096458435, 0.12428773194551468, 0.23310920596122742, -0.13907429575920105, 0.23446416854858398, 0.6207594871520996, 0.3684649169445038, -0.26462557911872864, 0.46276992559432983, -0.066929213702678...
Methods
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Image#methods
Methods Name Arguments Return Description getThumbnail($name) (string/array) $name Pimcore\Model\Asset\Image\Thumbnail Get a specific thumbnail of the image getText() / getAlt() - string, alt/title text from the image The entered alternative text in the widget getSrc() - string, absolute path to the image Th...
[ 0.0600433349609375, -0.5082135796546936, 0.1573440283536911, -0.34000006318092346, -0.3293648958206177, -0.05716852843761444, -0.2797624468803406, -0.3622666001319885, 0.9623154997825623, 0.5190605521202087, 0.9579509496688843, -0.17926231026649475, 0.4857485592365265, -0.44300830364227295...
Examples
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Image#examples
Examples
[ 0.3837350010871887, 0.14691977202892303, 0.5331786274909973, -0.2069624811410904, -0.6330183744430542, -0.9425056576728821, 0.14783568680286407, 0.04567689448595047, 0.40456539392471313, 0.9562780857086182, 0.9288752675056458, 0.8574786186218262, 0.509227991104126, -0.30105534195899963, ...
Basic usage
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Image#basic-usage
Basic usage {{ pimcore_image("myImage") }} The code above generates an image area in the backend and displays the image at the frontend. The empty backend area: The filled backend area:
[ -0.17119614779949188, -0.5962263345718384, -0.09484711289405823, -0.46989402174949646, -0.1745729148387909, -1.1984370946884155, 0.10282459110021591, -0.2923547923564911, 0.5016269087791443, 0.915561318397522, 0.4852658808231354, -0.04400962218642235, 0.33654505014419556, 0.030136933550238...
Advanced Usage
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Image#advanced-usage
Advanced Usage In the example below you can see how to add a title and specify size of the image area. Note that if you use the thumbnail argument, the rendered image on the frontend will use the specified thumbnail. Learn more about thumbnails here: Image Thumbnails. {{ pimcore_image("myImage", { "t...
[ 0.6407709121704102, -0.7866696715354919, 0.26129794120788574, -0.6192772388458252, -0.0709763765335083, 0.05548703297972679, -0.022227197885513306, -0.08177565783262253, 0.596063494682312, 0.31130215525627136, 0.6430214643478394, -0.4729766547679901, 0.4136884808540344, 0.40161940455436707...
Backend Preview
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Image#backend-preview
Backend Preview
[ -0.29369133710861206, -0.5056841373443604, -0.27870437502861023, -0.44742122292518616, -0.775606632232666, -0.06846566498279572, -0.7206321954727173, -0.045659877359867096, 0.6543512344360352, 0.9681252241134644, 0.46213746070861816, -0.0744117721915245, 0.560421884059906, 0.50389891862869...
An Example with a Direct Thumbnail Configuration
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Image#an-example-with-a-direct-thumbnail-configuration
An Example with a Direct Thumbnail Configuration You can also change the thumbnail configuration: {{ pimcore_image("myImage", { "title": "Drag your image here", "width": 200, "height": 200, "thumbnail": { "width": 200, ...
[ 0.2199992537498474, -0.5883228182792664, 0.27389857172966003, -0.5783504843711853, -0.028293069452047348, 0.02883036620914936, -0.23292119801044464, -0.11678306758403778, 0.46523094177246094, 0.7370257377624512, 0.7729373574256897, -0.26667553186416626, 0.7980754971504211, 0.07268480956554...
Other Advanced Examples
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Image#other-advanced-examples
Other Advanced Examples {# Get retina image #} {{ pimcore_image("myImage", { "thumbnail": { "width": 200, "height": 200 }, "highResolution": 2 }) }} {# Will output<img src="/var/thumb_9999__auto_xxxxxxxx@2x.png" width="200&...
[ 0.6998960971832275, -0.6615627408027649, 0.8022633790969849, -0.38719144463539124, -0.16982407867908478, -0.5108284950256348, 0.2716512084007263, 0.02992246113717556, 0.15770497918128967, 0.8494109511375427, 1.0440062284469604, -0.13404323160648346, 0.5219707489013672, 0.05840792506933212,...
Field-specific Image Cropping for Documents
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Image#field-specific-image-cropping-for-documents
Field-specific Image Cropping for Documents
[ 0.5088415145874023, -0.10776974260807037, 0.46708592772483826, -0.7481899261474609, 0.12013598531484604, -0.041261475533246994, 0.18951372802257538, -0.21310509741306305, 0.3382618725299835, 0.48518070578575134, 0.26340600848197937, -0.08580712229013443, 0.5941835641860962, 0.1585651040077...
Backend Usage
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Image#backend-usage
Backend Usage Right-click on the image editable in editmode and press Select specific area of image Now you're able to select the desired area on the image: Therefore, there is no need any more to define specific images or thumbnails if a specific region of an image should be displayed. Just assign the original image...
[ 0.3115946054458618, -0.22480100393295288, -0.0006358063546940684, -0.3292818069458008, -0.13958674669265747, -0.1850803643465042, 0.3675098717212677, -0.07817691564559937, 0.39631617069244385, 0.6758614778518677, 0.4749426543712616, -0.15020889043807983, 0.5459684729576111, 0.2870987951755...
Markers & Hotspots
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Image#markers-&-hotspots
Markers & Hotspots This functionality is available on every image editable (no configuration necessary). Setting a marker or a hotspot on an image has no direct effect on the output, the assigned image is displayed as usual. You as a developer have to get the data out of the image editable to build amazing fronten...
[ -0.39147257804870605, -0.11661642789840698, -0.5008032321929932, 0.17997469007968903, 0.0024849548935890198, -0.48442286252975464, -0.08209872990846634, 0.19947446882724762, 0.35091301798820496, 0.6983838081359863, 0.3624632954597473, 0.5293904542922974, 0.48768603801727295, -0.19819994270...
Code Usage Example
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Image#code-usage-example
Code Usage Example <div> <p> {{ pimcore_image("myImage",{ "title": "Drag your image here", "width": 400, "height": 400, "thumbnail": "content" }) }} {% if not ed...
[ -0.08960414677858353, -0.6839413642883301, 0.1673632562160492, -0.09541764110326767, -0.25507837533950806, -0.42333951592445374, -0.20173639059066772, -0.00040264063864015043, 0.6698800921440125, 0.7114255428314209, 0.2855842113494873, 0.11219532787799835, 1.1782057285308838, -0.1374315917...
Input Editable
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Input#input-editable
Input Editable
[ -0.316098153591156, -0.0668959990143776, -0.29240626096725464, 0.14294086396694183, -0.5152086019515991, -0.024655191227793694, 0.055749550461769104, -0.1385248750448227, 0.2661469578742981, 0.8154378533363342, 0.5464292764663696, 0.41712382435798645, -0.3845236003398895, -0.84029972553253...
General
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Input#general
General The input editable is a single line unformatted text placeholder (just as HTMLs <input> is), which is useful for text headlines, paragraphs and other values. For a multi-line alternative have a look at the textarea editable.
[ -0.1902800053358078, -0.31448641419410706, -0.24698130786418915, 0.4526127874851227, -0.9759745597839355, -0.20552067458629608, 0.12949597835540771, -0.24995385110378265, 0.5948489308357239, 1.0111548900604248, 0.5344390869140625, 0.10307375341653824, -0.43548721075057983, -0.3082540929317...
Configuration
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Input#configuration
Configuration Name Type Configuration width integer Width of the input in editmode (in pixels) htmlspecialchars boolean Set to false to get the raw value without HTML special chars like & (default to true) nowrap boolean set to false to disable the automatic line break class string A CSS class that is ...
[ -0.33834215998649597, -0.1837455779314041, 0.19417735934257507, 0.4796622693538666, -0.5592893362045288, -0.14730927348136902, 0.6112557053565979, -0.42765966057777405, -0.34004485607147217, 1.0517226457595825, 0.6549685597419739, 0.20422224700450897, 0.4568580389022827, -0.399605184793472...
Methods
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Input#methods
Methods Name Return Description getData() string Value of the input, this is useful to get the value even in editmode. isEmpty() boolean Whether the editable is empty or not
[ -0.7153484225273132, -0.4072578251361847, -0.16305643320083618, 0.34709304571151733, -1.0219569206237793, -0.3067867159843445, 0.3397025465965271, 0.11744391918182373, 0.35808393359184265, 1.0046488046646118, 0.39398831129074097, 0.14295539259910583, -0.062080755829811096, -0.4057919979095...
Example
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Input#example
Example
[ 0.12308672815561295, 0.19909104704856873, 0.552802562713623, -0.2330138087272644, -0.6007477641105652, -0.9912458062171936, -0.033583417534828186, 0.01040073111653328, 0.29117095470428467, 0.9278097748756409, 0.8618176579475403, 0.35090669989585876, 0.266749769449234, -0.12894025444984436,...
Basic usage
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Input#basic-usage
Basic usage <h2> {{ pimcore_input("myHeadline") }} </h2> The above code generates an editable area which you can fill with the text, see:
[ -0.26056310534477234, -0.2160031497478485, 0.11552917212247849, -0.23002159595489502, -0.3924013376235962, -0.43305572867393494, 0.197295144200325, -0.2512677013874054, 0.981101393699646, 0.5609056949615479, 0.4870913028717041, -0.030724089592695236, 0.3472311198711395, -0.1925747841596603...
Advanced usage
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Input#advanced-usage
Advanced usage You could also specify other parameters, like the size: <h2> {{ pimcore_input("headerLine", {'width': 540}) }} </h2>
[ 0.4136332869529724, -0.17892539501190186, 0.4184737801551819, -0.14187796413898468, -0.8473891019821167, 0.13819661736488342, 0.3513078987598419, -0.12552471458911896, 0.7141474485397339, 0.7547339200973511, 1.0972734689712524, -0.3165860176086426, 0.01240461878478527, 0.10263214260339737,...
Link Editable
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Link#link-editable
Link Editable
[ -0.75815349817276, -0.03224095329642296, -0.510033130645752, 0.3669946491718292, 0.015608187764883041, 0.35593846440315247, -0.5009679198265076, -0.3964179754257202, 0.4667028486728668, 0.28327810764312744, 0.5735911726951599, 0.05257734656333923, 0.13545267283916473, -0.2774169445037842, ...
General
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Link#general
General The link editable is used for dynamic link creation in documents.
[ -0.4905273914337158, -0.01532768364995718, -0.1318882256746292, 0.5145571231842041, -0.14902445673942566, 0.24262310564517975, -0.45046597719192505, -0.5996831655502319, 0.8811998963356018, 0.5820596218109131, 0.22822481393814087, -0.30190977454185486, 0.26199668645858765, -0.2200771868228...
Configuration
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Link#configuration
Configuration You can pass nearly every valid attribute an <a>-tag can have (w3.org - Link), such as: class, target, id, style, accesskey, name, title, data-*, aria-* and additionally the following: Name Type Description reload boolean Set to true to reload the page in editmode after changing the state. ...
[ -0.3487781286239624, -0.3894694149494171, 0.24360869824886322, 0.5132560133934021, 0.07342377305030823, 0.16540051996707916, 0.4203133285045624, -0.2570318579673767, 0.5491266250610352, 0.17367404699325562, -0.14042000472545624, -0.04052024707198143, 0.9173214435577393, -0.1675368547439575...
Methods
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Link#methods
Methods Name Return Description getHref() string Get the path of this link getText() string Get the text of the link getTarget() string Get the target of the link getParameters() string Get the query params of the link getAnchor() string Get the anchor text of the link getTitle() string Get the title o...
[ -0.6637893915176392, -0.5225587487220764, -0.12173357605934143, -0.1702318638563156, -0.7787942886352539, 0.27568042278289795, -0.25179949402809143, -0.12127560377120972, 0.5194839835166931, 0.23170606791973114, 0.22613243758678436, 0.06668179482221603, -0.12541763484477997, -0.04538561403...
Examples
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Link#examples
Examples
[ 0.3837350010871887, 0.14691977202892303, 0.5331786274909973, -0.2069624811410904, -0.6330183744430542, -0.9425056576728821, 0.14783568680286407, 0.04567689448595047, 0.40456539392471313, 0.9562780857086182, 0.9288752675056458, 0.8574786186218262, 0.509227991104126, -0.30105534195899963, ...
Basic Usage
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Link#basic-usage
Basic Usage <p> {{ "Visit our" | trans }} {{ pimcore_link('blogLink') }} </p> You could see the backend preview in the picture, below. And the frontend:
[ -0.391070157289505, -0.37281838059425354, -0.1385773867368698, 0.011739758774638176, -0.5648000240325928, -0.11590505391359329, 0.04304175451397896, -0.1597190499305725, 0.5103433132171631, 0.8226975202560425, 0.33150604367256165, 0.057121314108371735, 0.6774076819419861, 0.331943690776824...
Use Link in the Block Editable
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Link#use-link-in-the-block-editable
Use Link in the Block Editable Let's see how to make a list of links with Block. <h3>{{ "Useful links" | trans }}</h3> <ul> {% for i in pimcore_block('linkblock').iterator %} <li>{{ pimcore_link('myLink', {'class': "special-link-class"}) }}</li> {% endfo...
[ 0.005935215391218662, -0.1198069378733635, -0.20863650739192963, 0.25690212845802307, -0.47570621967315674, 0.539701521396637, -0.011831047013401985, -0.3958776593208313, 0.7366496920585632, 0.5282151699066162, 0.37443044781684875, 0.04578794166445732, 1.0059149265289307, 0.209948942065238...
Link Generators
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Link#link-generators
Link Generators Please also see the section about Link Generators
[ -0.25687262415885925, 0.2002173662185669, -0.21374277770519257, 0.25388073921203613, 0.37169522047042847, -0.4229406714439392, -0.2687609791755676, -0.01810060441493988, 1.0117907524108887, -0.029783496633172035, -0.2697719931602478, 0.01976652257144451, 0.6049366593360901, -0.521749794483...
Multiselect Editable
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Multiselect#multiselect-editable
Multiselect Editable
[ -0.5157997012138367, -0.4649398624897003, -0.20788529515266418, 0.40334585309028625, -0.5545557737350464, -0.09360867738723755, -0.10968413203954697, 0.32901108264923096, 0.4524923264980316, 0.7937303781509399, 0.4480421543121338, -0.054100342094898224, -0.0317729189991951, 0.0680155679583...
General
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Multiselect#general
General The Multiselect editable generates a multiselect box component in editmode.
[ -0.7362167239189148, -0.31600627303123474, -0.11134316027164459, 0.1838550567626953, -0.1327270120382309, -0.5989096760749817, -0.04239342734217644, 0.30739110708236694, 0.8997121453285217, 0.5530555248260498, -0.01876349002122879, 0.08836379647254944, 0.3894193470478058, -0.23680299520492...
Configuration
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Multiselect#configuration
Configuration Name Type Description store array Key/Value pairs for the available options. width integer Width of a generated block in editmode height integer Height of a generated block in editmode class string A CSS class that is added to the surrounding container of this element in editmode
[ -0.07333661615848541, -0.6805524826049805, -0.014856123365461826, 0.23318162560462952, -0.7600387930870056, -0.023222602903842926, 0.4421188533306122, 0.6221920847892761, -0.14131687581539154, 0.6980833411216736, 0.7941656112670898, 0.06177171692252159, 0.590001106262207, -0.06963176280260...
Methods
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Multiselect#methods
Methods Name Return Description getData() array Returns array of values chosen in the editmode. isEmpty() boolean Whether the editable is empty or not
[ -0.6974567174911499, -0.5851514339447021, -0.1214764341711998, 0.5757254362106323, -0.8059225678443909, -0.3473544716835022, -0.16157923638820648, 0.08750589191913605, 0.5901357531547546, 1.0785034894943237, 0.8162233829498291, 0.14917266368865967, -0.04097367078065872, -0.2943309843540191...
Example
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Multiselect#example
Example The code below renders a multiselectbox in the backend. Also, it shows the list of chosen elements in the frontend. {% if editmode %} {{ pimcore_multiselect('categories', { 'width': 200, 'height': 100, 'store': [ ['cars', 'Cars'], ['motorcycles', 'Motorcycles'...
[ -0.6034234166145325, -0.6853398680686951, -0.04116900637745857, -0.1901749223470688, -0.4507579803466797, -0.23596157133579254, 0.0100488793104887, 0.023734431713819504, 0.9626484513282776, 0.7333002090454102, 0.5729432702064514, 0.12290702760219574, 0.6507951617240906, 0.6340349912643433,...
Numeric Editable
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Numeric#numeric-editable
Numeric Editable
[ -0.14353211224079132, -0.4388396739959717, -0.044170405715703964, 0.017168644815683365, -0.1543387919664383, -0.17938092350959778, 0.2675778567790985, -0.4325832724571228, 0.05677470192313194, 0.6796565651893616, 0.6775236129760742, -0.3787797689437866, -0.25003519654273987, 0.007300059311...
General
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Numeric#general
General The numeric editable is very similar to the input editable, but with special configurations for the use with numbers.
[ -0.15456914901733398, 0.022232791408896446, 0.004788924939930439, -0.20760118961334229, -0.24386343359947205, 0.07104621827602386, -0.06539229303598404, -0.4885849952697754, -0.00780861172825098, 0.9089991450309753, 0.38274744153022766, 0.018983034417033195, -0.27337002754211426, -0.525669...
Configuration
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Numeric#configuration
Configuration Name Type Description maxValue float Define a maximum value minValue float Define a minimum value width integer Width of the field in pixel class string A CSS class that is added to the surrounding container of this element in editmode required boolean set to true to make field value requir...
[ -0.11724686622619629, -0.3509780168533325, 0.09703244268894196, 0.3266288638114929, -0.5208978652954102, -0.015615101903676987, 0.6864196062088013, -0.3102323114871979, -0.40351253747940063, 0.9067880511283875, 0.5758463144302368, 0.20193716883659363, 0.770416796207428, -0.0944598019123077...
Methods
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Numeric#methods
Methods Name Return Description getData() int,float Value of the numeric field, this is useful to get the value even in editmode isEmpty() boolean Whether the editable is empty or not
[ -0.6993914246559143, -0.45564764738082886, -0.45440831780433655, 0.35664522647857666, -0.8446781039237976, -0.11398950219154358, 0.7047401666641235, -0.08852323889732361, 0.1961468607187271, 1.0640302896499634, 0.5964133143424988, 0.044194161891937256, 0.0009196741157211363, 0.051978595554...
Examples
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Numeric#examples
Examples
[ 0.3837350010871887, 0.14691977202892303, 0.5331786274909973, -0.2069624811410904, -0.6330183744430542, -0.9425056576728821, 0.14783568680286407, 0.04567689448595047, 0.40456539392471313, 0.9562780857086182, 0.9288752675056458, 0.8574786186218262, 0.509227991104126, -0.30105534195899963, ...
Basic Usage
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Numeric#basic-usage
Basic Usage {{ pimcore_numeric('myNumber') }} Now you can see the numeric value in the editmode view
[ 0.07968171685934067, -0.4583621323108673, -0.1152544766664505, -0.010778595693409443, -0.7214946746826172, -0.35415923595428467, 0.7390596270561218, -0.5377069115638733, 0.728535532951355, 0.7257115840911865, 0.7616761326789856, 0.029785549268126488, 0.47617465257644653, 0.5470052361488342...
Advanced Usage
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Numeric#advanced-usage
Advanced Usage In the following example we're going to use a minimal and maximum value as well as a decimal precision. {{ pimcore_numeric('myNumber',{ "width" : 300, "minValue" : 0, "maxValue" : 100, "decimalPrecision" : 0 }) }} To display the number also in editmode, ...
[ 0.3913908302783966, -0.370001882314682, 0.05468791350722313, 0.0063604796305298805, -0.8173864483833313, -0.10297676920890808, 0.5623586177825928, -0.5748317837715149, 0.28730329871177673, 0.8602629899978638, 0.5888624787330627, -0.3446807265281677, 0.13054288923740387, 0.4460469186306, ...
Embed Editable
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Embed#embed-editable
Embed Editable
[ -0.6272585988044739, -0.39955008029937744, -0.45724961161613464, 0.11740158498287201, 0.4117808938026428, 0.01768839918076992, -0.3220026195049286, -0.29959559440612793, 0.7181352972984314, 0.44871848821640015, 0.29076072573661804, 0.16207265853881836, 0.3709864914417267, -0.24774350225925...
Configuration
https://pimcore.com/docs/platform//Pimcore/Documents/Editables/Embed#configuration
Configuration Name Type Description width string Width in the editmode height string Height in the editmode class string A CSS class that is added to the surrounding container of this element in editmode Additionally you can use any configuration option of Embera
[ -0.48170769214630127, -0.5711504220962524, -0.035794373601675034, -0.0486426018178463, -0.10135433077812195, 0.5386978983879089, 0.5742454528808594, 0.1599602997303009, -0.2006811499595642, 0.6682127118110657, 0.7155361771583557, 0.3057922124862671, 0.6268628239631653, -0.15886132419109344...