Main ConceptsTop of Page
Ionize organizes content by :
- Pages and articles.
The entry point is the language, which will be detected when the user enter the website.
If no language was found, the default one will be loaded (the one defined during the install process).
WebsiteTop of Page
A website made with Ionize is composed of :
- One or more languages
- Content, stored in database (pages, articles)
- One theme, containing display items
- Media files : pictures, videos, music, etc.
Ionize allow the management of one website by installation (one folder).
Several themes can be used, but only one will be displayed.
ThemeTop of Page
A theme defines how the content of the website will be displayed.
Themes are located in subfolders of the folder /themes.
The website has one theme.
ViewTop of Page
A view is simply a web page, or a page fragment, like a header, footer, sidebar, etc.
A view is used to display data. This could also be called a “template”, but Ionize uses the CodeIgniter “view” terminology.
Common views are articles and page views.
One view can be used to display a page but can also be called by another view, as partial content.
Views are located in the folder /themes/your_theme_name/views.
Views extension is .php.
TagsTop of Page
One tag is a template language element used to display data easily.
Tags are used in views.
All tags start with the ion prefix and is written like one XML element : <ion:my_tag />
Example of tag usage:
<ion:articles limit="3" > <ion:article:title tag="h2" /> <ion:article:content paragraph="1" /> <ion:articles />
This tag will display 3 articles, with content limited to the first paragraph.
Each article's title will be enclosed by a H2 HTML tag.