2016-04-17, 02:53:56
Ok, thanks for the tip.
Can you, please, help me with one more thing...
I'm new to the GetSimple CMS itself and trying to understand the general picture.
So, I've made a list on items as you showed me
Now I can reach a page with url like this: sitename.com/catalogue/phones/?item=product-1
How should I proceed with creating a template for my product page?
Should I create a Page in admin panel first and assign my product.php (my template) to it and inside this template file call all the content of my item?
Can you, please, help me with one more thing...
I'm new to the GetSimple CMS itself and trying to understand the general picture.
So, I've made a list on items as you showed me
Code:
foreach($itemClass->items as $item) {
echo '<p><a href="'.$categoryClass->categories[1]->slug.'/?item='.$item->fields->slug->value.'" >'.$item->fields->name->value.'</a></p>';
}
Now I can reach a page with url like this: sitename.com/catalogue/phones/?item=product-1
How should I proceed with creating a template for my product page?
Should I create a Page in admin panel first and assign my product.php (my template) to it and inside this template file call all the content of my item?