Ionize User Guide Version 0.9.6


Special Tags

partial

Returns the result of a view used as partial.

The called view can contains other tags, but can also be a pure PHP view.

<!-- Returns the content of the view located in the folder : /themes/your_theme/views/default/header.php -->
<ion:partial view="default/header" [ php="true" ] />
Attribute Optional Values
view no The path to the view, relative to the themes/your_theme/views folder.
php yes true / false
Default value : false.
If set to true, force the load of the view as pure PHP view.
If not set, it will return the view parsed as it doesn't contains PHP but tags.

The "path" attribute used until Ionize 0.9.6 is deprecated. It can also be used, but will be removed in the next version.

field

Gets and returns a value from :

<ion:field name="title" from="table_name" core="true" />
Attribute Optional Values
name no The field name
from no The content object. Can be "page", "article" or "media".
Needs to be set, even the tag is used in a parent loop tag.
core true / false Default value : false.
If set to true, returns the value from the Ionize core object.
Useful when an extended field has the same name than an existing object field.
Example : If you created an extended field called "title" and you want to get the title of a page, you will need to set "core" to true, so the tag knows it had to returns the article title and not the extended field with the same name.