"entities" Snippets


Basket #7238

[Documentation](http://www.miva.com/template-language/miva_template_language/entities_&_encoding.html) [Tutorial](http://www.miva.com/videos/web_developers/entities)
Created: 1446583974
View "Basket #7238"
sassign <br/> <mvt:assign name="g.var" value=" 'hello world' " /> This is my &mvt:global:var; opening. <br/><br/> concat<br /> <mvt:assign name="g.new" value=" 'in the begining there was ' $ g.var $ ' and then we added to it.' "/> &mvt:global:new; <br/><br/> <!-- Custom Field Write<br /> <mvt:item name="customfields" param="Write_Product_Code( 'product_code', 'custom_field_code', 'value' )" /> Custom Field Read<br /> <mvt:item name="customfields" param="Read_Product_Code( 'product_code', 'custom_field_code', l.settings:customfields )" /> --> Custom Field Write<br /> <mvt:item name="customfields" param="Write_Product_Code( 'MyProduct', 'Mycode', 'INDEED' )" /> Custom Field Read<br /> <mvt:item name="customfields" param="Read_Product_Code( 'MyProduct', 'Mycode', l.settings:customfields )" />
 

Entities

[Documentation](http://www.miva.com/template-language/miva_template_language/entities_&_encoding.html) [Tutorial](http://www.miva.com/videos/web_developers/entities)
Created: 1427238072
View "Entities"
<h3>Entity</h3> <p>Outputs variables to the page.</p> Example: &mvt:store:name; <h3>Variable</h3> <p>Is used to store and retreive information. Also, allows you to program logic</p> Example: l.settings:store:name <h3>This condition will not work</h3> <mvt:comment> <mvt:if expr="&mvt:store:name; EQ 'test' "> This does not work. Compile Error </mvt:if> </mvt:comment> <h3>This condition will work</h3> <mvt:if expr="l.settings:store:name EQ 'MVT Fiddle' "> <p>This does work!</p> </mvt:if> <h3>This will output to the page</h3> <p>Welcome to &mvt:store:name;!</p> <h3>This will not output to the page</h3> </p>Welcome to l.settings:store:name;</p>