2017-01-04, 17:39:17
Have you already created a category?
By default, ItemManager do not contain any categories and items, so you will need to create any that you want to use.
To do this, in GS admin go to "Manager tab" > "Categories" > Add new category.
Next, go to the "Fields" there select your category in drop down field and add some fields to your category.
Then create your items for that category.
Then you will be able to access of these items in your template using API
By default, ItemManager do not contain any categories and items, so you will need to create any that you want to use.
To do this, in GS admin go to "Manager tab" > "Categories" > Add new category.
Next, go to the "Fields" there select your category in drop down field and add some fields to your category.
Then create your items for that category.
Then you will be able to access of these items in your template using API
Code:
$imanager = imanager();
// to get a specific item by "category id" and "item id" use
$item = $imanager->getItem(1, 1);
// to get multiple items of your category do this
$items = $imanager->getItems(1, 'active=1');