Custom inner inset width

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed May 21, 2014 12:21 pm
Reply with quote
Report this post
Hello,

how is the Custom inner inset width handled in the template configuration (layouts section) ?

I tried use the menu item id or the k2 category item id and it doesnt change.

How is the itemID / Option used ?

Best,
Pablo.
User avatar
Junior Boarder

GK User
Fri May 23, 2014 9:00 am
Reply with quote
Report this post
I have not found a solution in the documentation. Any help will be appreciated.

Best,
Pablo.
User avatar
Junior Boarder

GK User
Fri May 23, 2014 10:05 am
Reply with quote
Report this post
Oh, there is a hint here : http://www.gavick.com/documentation/joo ... 0-layouts/

However, I only can change the sidebar %, for example :

Code: Select all
Custom sidebar width   :
Option com_k2 - 40%


makes the sidebar more width. However, the same for the custom inset width is not working.

The content of the inset position is a custon HTML with an image of 90 pixels width (half the side of the default inset width).

Best,
Pablo.
User avatar
Junior Boarder

GK User
Fri May 30, 2014 1:05 pm
Reply with quote
Report this post
Please open file root/templates/gk_news/lib/gk.framework.php and find this line :

Code: Select all
$this->config->set('sidebar_width_override', $this->utilities->overrideArrayParse($this->API->get('sidebar_width_for_pages', '')));


then right below please add this code :

Code: Select all
$this->config->set('inner_inset_width_override', $this->utilities->overrideArrayParse($this->API->get('inner_inset_width_for_pages', '')));
User avatar
Platinum Boarder


cron