Sidebar Question

GK User
Fri Mar 06, 2015 12:42 pm
Hello,

we will get the sidebar in a one of the pages.
We will use two modulposition on filled up with:

Sidebar => GKNEWS OR GKTABS with Pictures
Mainbody with Article come from K2 or Joomla

But if we do this and we go over the menu to the subpage Restaurant --> Position2 the sidebar is not visible. We see only the Article.

Best Regards

Michael

Datenbankversion 5.5.42-cll-lve
Datenbankzeichensatz utf8_general_ci
PHP-Version 5.4.38
Webserver Apache
PHP-Interface für den Webserver cgi-fcgi
Joomla!-Version Joomla! 3.4.0 Stable [ Ember ] 24-February-2015 23:00 GMT
User avatar
Gold Boarder

teitbite
Sat Mar 07, 2015 11:34 am
Could you please provide me with a URL to your website, either here or via PM (click the “Private Message” text underneath my avatar) so that I may analyze it? It is a lot easier for us to diagnose issues when we have a live site to examine.
User avatar
Moderator

teitbite
Tue Mar 10, 2015 9:14 pm
Hi

I thought looking at website will give me some hint, but unfortunately I see nothing. I can guess that an article lacks an Itemid which can be added by making a menu item with article type or category type (which will work for all articles from this category). Doin't that will create a page where You will be able to attach a module to.

My second guess is a wrong module position name. Please check with this scheme: https://demo.gavick.com/joomla25/photo/ ... -positions
User avatar
Moderator

GK User
Wed Mar 11, 2015 9:40 am
Hi and good morning,

you wrote you can see nothing. you see only a simple text. yes this is correct. you must see on the sidebar left the GK-TABS Modul. In the attchment i put 3 files you can see the configuration. the Paege ID is 1381.

I look at self an see that is not possible to have both (Sidebar and Article) on one Page.

I test it and see the sidebar modul position is working if we integrade two modules on the page (GKTAB and any other) or Modul and Article category

Best
Michael

Bildschirmfoto 2015-03-11 um 09.25.07.png
Bildschirmfoto 2015-03-11 um 09.25.39.png
Bildschirmfoto 2015-03-11 um 09.28.30.png
User avatar
Gold Boarder

teitbite
Fri Mar 13, 2015 1:29 pm
Hi

Please send me an access to joomla panel so I'll be able to check it myself.
User avatar
Moderator

teitbite
Tue Mar 17, 2015 3:04 pm
Hi

Ok. I've checked the settings and compared them to the code in /layout/default.php

Code: Select all
$content_layout = (($option == 'com_k2' || $option == 'com_content') && !($option == 'com_content' && $view == 'archive')) || ($option == 'com_contact' && $view == 'contact');
$single_item_layout = ($option == 'com_k2' && $view == 'item') || ($option == 'com_content' && $view == 'article');
$full_width_layout = (in_array('full-width', $page_suffix_table) || $content_layout) && !((in_array('no-full-width', $page_suffix_table) && !$single_item_layout));


which means that sidebar is disabled in so called "single item layout" which can be joomla artile or K2 article. I do not know the reasons, but if You go to line 160 of this file and changed this line:

Code: Select all
            <?php if($this->API->modules('sidebar') && !$full_width_layout) : ?>


to

Code: Select all
            <?php if($this->API->modules('sidebar')) : ?>


than the only one telling sidebar to appear will be You. Just try it and let see what happens.
User avatar
Moderator

GK User
Thu Mar 19, 2015 6:32 am
Hi

thanks for the code snipes. I will put in in and come back to you.

Best

Michael
User avatar
Gold Boarder


cron