Hi Alex,
This is something I would only want on the backend. I added a new field to XLite/View/Model/Category.php
HTML Code:
'nav_icon' => array(
self::SCHEMA_CLASS => 'XLite\View\FormField\Textarea\Simple',
self::SCHEMA_LABEL => '',
\XLite\View\FormField\AFormField::PARAM_USE_COLON => false,
self::SCHEMA_REQUIRED => true,
self::SCHEMA_DEPENDENCY => array(
self::DEPENDENCY_SHOW => array (
'nav_icon' => array('C'),
)
),
Still a bit confused on all the files/etc I'd need to edit.
To summarize what I really want to do:
- Admin navigates to 'Catalog -> Our Products'
- Admin clicks on a category to edit.
- Where the field 'Category name' is, I'd like to add my own custom field -- for example 'Navigation Icon'.
Then the field becomes usable to call, ie: how {{ this._category.name }} is used in the sidebar menu. So then I'd have a {{ this._category.nav_icon }} or something similar.