How to set template parameters in menu items like "Multiple Categories", "My items" etc
You cannot set template parameter in category-like MENU items.
-- Some templates have almost no parameters and use only template positions, but blog template (it's category layout) relies heavily on template parameters in this case you have the following alternatives:
A.
If it is a category menu item then parameters defined in category configuration (category edit form) are inherited, but for menu items "My-Items" or "Multi-Categories" MENU items they just used default values. But there is a workaround though (see B below)
B.
- Duplicate template 'blog' and create template 'blog-myitems' or 'blog-mcats' or 'blog-author' or 'blog-myitems2', etc , then edit files:
components/com_flexicontent/templates/myblog1/category_items.php
components/com_flexicontent/templates/myblog1/category_items_html5.php - And at the top of the file (just after first
-- e.g. to define image use:
$this->params->set('lead_use_image', 1); $this->params->set('lead_image', 'field15'); $this->params->set('lead_width', 200); $this->params->set('lead_height', 150); $this->params->set('intro_use_image', 1); $this->params->set('intro_image', 'field15'); $this->params->set('intro_width', 150); $this->params->set('intro_height', 120);
-- e.g. to define leading number of items use:
$this->params->set('lead_num', 4);
