2020-05-03, 19:34:44
Hello Bigin,
The ItemManager plugin is working perfectly when I use it only
from the GS backend under the tab Manager.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
However I seem to have a problem using ItemManager from the pages
in the GS backend.
When I select a page in the GS backend and then go to options
there is an option to select a Category. When I select a Category
I can see the fields of that Category.
Then I enter, for example, in the Text field some text
and click on Save.
Then when I go back to the Tab Manager I can see that a new item
has been added to the Catecory. The new item has been given a name
like: 3052675811
However when I try to output the text from this item
there is no output.
$itemMapper->init(6); // Category 6 holds the item 3052675811
$items = $itemMapper->items;
$this_item = $itemMapper->getItem('name=3052675811');
<?php echo ($this_item->fields->text->value); ?>
Also when I try to delete this item there is an error message
that says: "Item does not exist"
What am I doing wrong ?
The ItemManager plugin is working perfectly when I use it only
from the GS backend under the tab Manager.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
However I seem to have a problem using ItemManager from the pages
in the GS backend.
When I select a page in the GS backend and then go to options
there is an option to select a Category. When I select a Category
I can see the fields of that Category.
Then I enter, for example, in the Text field some text
and click on Save.
Then when I go back to the Tab Manager I can see that a new item
has been added to the Catecory. The new item has been given a name
like: 3052675811
However when I try to output the text from this item
there is no output.
$itemMapper->init(6); // Category 6 holds the item 3052675811
$items = $itemMapper->items;
$this_item = $itemMapper->getItem('name=3052675811');
<?php echo ($this_item->fields->text->value); ?>
Also when I try to delete this item there is an error message
that says: "Item does not exist"
What am I doing wrong ?