Jump to content


Photo
- - - - -

Sidebar sections + widgets + qtranslate


  • Please log in to reply
6 replies to this topic

#1 smv_usdam

smv_usdam

    Member

  • Members
  • 21 posts
  • Country: Country Flag

Posted 28 January 2013 - 09:26 AM

Hi,

 

using pro version 2.4 and qtranslate with 3 languages (german, french and english). Language switching works normally with posts and pages.

 

When I'm using the Universal Sidebar section, widgets are displayed normally in all languages.

 

When using Primary Sidebar, Secondary Sidebar, Tertiary Sidebar, Content Sidebar sections, widgets are only displayed in German and English settings, in French setting I only get the default widgets in Primary Sidebar, otherwise nothing. This applies as well to standard widgets like archive, calendar etc. on single instances without widget logic as to language specific widgets using widget logic (i.e. function_exists('qtrans_getLanguage') && qtrans_getLanguage()=="fr" will not show widget, while function_exists('qtrans_getLanguage') && qtrans_getLanguage()=="en" is working normally).

 

It seems to me that this problem didn't exist before pagelines 2.4.

 


If I create a custom section following the custom sidebars guide in the wiki

Please Login or Register to see this Hidden Content

 and create the new folder in /plugins/pagelines-sections/  and use the code provided in the wiki for sections.php:


 


 


 

 

Please Login or Register to see this Hidden Content

 

 


 

the new custom sidebar section works perfectly.

 

However, I noticed that the part "pagelines_register_sidebar" etc. is not present in the current core pagelines sidebar section.php files which might be a reason for the above mentioned problem wioth most sidebar sections, but doesn't explain why the Universal Sidebar section works normally.

 

Any ideas?



#2 greenfly

greenfly

    Advocate

  • Members

  • 3268 posts
  • LocationManchester, England
  • Framework Version:latest
  • Country: Country Flag

Posted 28 January 2013 - 01:35 PM

Could you please provide us with a link to your site? 



#3 smv_usdam

smv_usdam

    Member

  • Members
  • 21 posts
  • Country: Country Flag

Posted 28 January 2013 - 02:20 PM

Please Login or Register to see this Hidden Content



#4 catrina

catrina

    Advocate

  • Members
  • 12345 posts
  • LocationCalifornia
  • Country: Country Flag

Posted 29 January 2013 - 05:40 PM

Can you please try deactivating all active non-PageLines plugins to see if the problem persists?



#5 Simon_P

Simon_P

    Messer

  • Administrators



  • 8388607 posts
  • LocationDevon
  • Framework Version:2.1.1
  • Country: Country Flag

Posted 29 January 2013 - 05:42 PM

Can you not use widget logic? and then detect the language?



#6 smv_usdam

smv_usdam

    Member

  • Members
  • 21 posts
  • Country: Country Flag

Posted 29 January 2013 - 07:26 PM

I have tried with deactivating plugins and yes, of course, I'm using widget logic as well, but even if I use widget logic and a widget is supposed to only be displayed in french, it's not displayed.



#7 Rob

Rob

    One Smart Egg

  • Members
  • 13575 posts
  • LocationEast Coast, USA
  • Framework Version:The Latest, of course
  • Country: Country Flag

Posted 29 January 2013 - 09:36 PM

Hi,

 

According to our developers, we did not change anything about registering sidebars in 2.4.  Could you be looking in the wrong place?