Multilingual site: Frontpage layout on all languages

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
Tue May 12, 2015 12:34 pm
Reply with quote
Report this post
Dear sirs,

I have the creativity template set on http://www.bfcgroup.gr

It works fine for the site's default language (greek) but when I translated the webpage I can't get the body class="onepage" to go through for the rest of the languages.

so http://www.bfcgroup.gr appears fine as onepage frontpage for greek
but http://www.bfcgroup.gr/en does not appear as the frontpage of english making the bottom1-1 module position messed up.

Accordingly http://www.bfcgroup.gr/ru and http://www.bfcgroup.gr/bg also suffer the same issues.

I tested using chrome's developer tools to add the 'onepage' class to the body and Voila! all modules fell immediately into place! It was magic. So I looked into default.php for the template and saw the lines:

$tpl_page_suffix = $this->page_suffix != '' ? ' class="'.$this->page_suffix.'"' : '';
// check if the one page mode is enabled
$one_page_mode = stripos($this->page_suffix, 'onepage') !== FALSE;
// make sure that the modal will be loaded
JHTML::_('behavior.modal');

Which means that I can somehow tell the template to treat a specific subpage as onepage layout and use the 'onepage' on the body class. I suppose I should do that on the default home pages of each language. Ok so far...

However I can't figure out where to put the text 'onepage' (or any other text if necessary) to make this happen. I must be missing something as I browsed the greek subpages and found nowhere ANY such text or class to use on the other languages.

Could you please help me out?
User avatar
Senior Boarder

GK User
Tue May 12, 2015 1:53 pm
Reply with quote
Report this post
Ok found it.

Hope this post helps someone else.

You can go to the template manager and select the template that you have applied to each page you need to have as onepage.
go to Features and then "Suffixes for pages". You need to set a list of pages in the form of 'id'=onepage for each page that will use the one page layout.

I suppose that this way all kinds of classes can be set for all pages if it is necessary. Those classes are added to the body class=""
User avatar
Senior Boarder

GK User
Tue May 12, 2015 4:55 pm
Reply with quote
Report this post
Thanks for sharing the solution.
User avatar
Moderator


cron