Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

Position of language switcher

  • Luca
  • Luca's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 6 months ago #137085 by Luca
Position of language switcher was created by Luca
Hi,
First, I want to congratulate you for the beautiful template.
I want to publish a multilanguage website with this template and I have enabled the language switcher.
In the setting of language switcher I tried all position available, but I don't find the right position to publish correctly the switcher in this template layout.
How do I display the flags of the languages​​?

Thank you
best regards
Luca

Please Log in or Create an account to join the conversation.

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
10 years 6 months ago #137086 by Krikor Boghossian
Replied by Krikor Boghossian on topic Position of language switcher
Hello Luca and thank you for your kind words.

Since index.php will is removed from the upgrade packages I can setup a new position for you on the menu or the sidebar.

For the header part, change this.
				<?php if($this->countModules('nokkori_Menu')): ?>
			  <div id="menuToggler" class="column"><span><?php echo JText::_('NU_MENU'); ?></span><i class="icon-menu"></i></div>
				<nav class="column small-2 large-9 mainNav">
				    <div id="closeBtn"><i class="icon-cancel"></i><span><?php echo JText::_('NU_CLOSE'); ?></span></div>
				    <jdoc:include type="modules" name="nokkori_Menu" style="nu" />
				</nav>
				<?php endif; ?>
to:
				<?php if($this->countModules('nokkori_Menu')): ?>
			  <div id="menuToggler" class="column"><span><?php echo JText::_('NU_MENU'); ?></span><i class="icon-menu"></i></div>
				<nav class="column small-2 large-9 mainNav">
				    <div id="closeBtn"><i class="icon-cancel"></i><span><?php echo JText::_('NU_CLOSE'); ?></span></div>
				    <jdoc:include type="modules" name="nokkori_Menu" style="nu" />
				</nav>
				<?php endif; ?>
				
				<?php if($this->countModules('nokkori_Language_Switcher')): ?>
				<nav class="column small-1 large-1 right">
				    <jdoc:include type="modules" name="nokkori_Language_Switcher" style="nu" />
				</nav>
				<?php endif; ?>

Once you 've done this send me a live link so I can assist you with the styling (proper margins, paddings etc).

PS. For your ease you can also include <position>nokkori_Language_Switcher</position> in your templateDetails.xml file.
Paste it inside the <positions> element.

Let me know if you need a solution involving the sidebar as well.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Luca
  • Luca's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 5 months ago - 10 years 5 months ago #137087 by Luca
Replied by Luca on topic Position of language switcher
Hi Krikor,
thank you for your response.
I have updated the index.php, templateDetails.xml and activated the multilanguage in Joomla.
You can see the language flag position here newsite.free-time-activities.com/index.php
The menu isn't in the right place after I have modified the templateDetails.xml.
I like to place the language switcher aligned in vertical with the menu and aligned in horizontal on the right side of the site.

Also, after enabling multilanguage site I have some trouble with the template layout/css:
1. I had to add the itemid of my italian homepage in the index.php page, but takes the transparent wrapper layout "hotel" (black color) and not "restaurant" (white and gray color). It seems that does not recognize the template restaurant...
2. the border of the latest news box is yellow, but when I enable the multilanguage turns gray
3. the back and forward arrows in the main slideshow respective title of the article and are not clickable (when multilanguage is enabled)
4. the menu link "chi siamo" and "vela lago maggiore" doesn't work prroperly and I receive the error 404 (but it seems that they are configured correctly)

Thank you,
best regards
Luca

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #137088 by Yiota
Replied by Yiota on topic Position of language switcher
Hello,

You need to change the order between the menu and the language switcher block given in the above code posted by @Krikor. Just take the language switcher block and move it right above the menu block.
This will solve the correct positioning issue.

To align it properly just add this css rule in custom.css file
.mod-languages {padding:18px;}

I didn't see any issues with the assignment of the correct template. In all pages I visited I got the restaurant variation.
Could you verify this?

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Luca
  • Luca's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 5 months ago #137089 by Luca
Replied by Luca on topic Position of language switcher
Hi Yiota,
thank you for response.
I have modified the order and added the .mod-languages in the custom.css, but the menu is not positioned correctly.
The menu remains too close to the logo and in some cases above it.
There is no way to improve?

about the restaurant layout, see the attached picture...
when enabling the multilanguage site I see difference in the bottom block.
thank you

Please Log in or Create an account to join the conversation.

  • Luca
  • Luca's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 5 months ago #137090 by Luca
Replied by Luca on topic Position of language switcher
for the layout restaurant in multilanguage I try to work with custom.css, but I do not understand because changes color when activated multilanguage...

there remains the following problem:
_ the position of the menu
_ the arrows (back and forward) and title in the Slideshow aren't clickable when multilanguage is enable

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #137091 by Yiota
Replied by Yiota on topic Position of language switcher
Add this class name langSelect after the 'right' class name of the
<nav class="column small-1 large-1 right">
Then and add to custom.css .langSelect {width:6.333%;}

Make sure that you have enabled to load the custom.css file through the template parameters.

What you should try to do in order for your italic language to work properly is to have two copies of the template. The one should be for the english version and the other for the italic version. Then assign to each one the appropriate pages and try again.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Luca
  • Luca's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 5 months ago #137092 by Luca
Replied by Luca on topic Position of language switcher
Hi Yiota, slowly we are solving all the problems,
there are still these problems that you can see in the attached image (and test it on the site newsite.free-time-activities.com/)
Thank you

Please Log in or Create an account to join the conversation.

More
10 years 5 months ago #137093 by Yiota
Replied by Yiota on topic Position of language switcher
Just make a small change to your custom.css file for this class .mod-languages from .mod-languages {padding:18px;} to .mod-languages {padding:18px 0;} in order for your flags to fit horizontally.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

Please Log in or Create an account to join the conversation.

  • Luca
  • Luca's Avatar Topic Author
  • Offline
  • Junior Member
More
10 years 5 months ago #137094 by Luca
Replied by Luca on topic Position of language switcher
Thank you, flag ok...
Have you somes news about the problem of the slideshow links ?

Regards

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum