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
11 years 5 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
11 years 4 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
11 years 4 months ago - 11 years 4 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
11 years 4 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
11 years 4 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
11 years 4 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
11 years 4 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
11 years 4 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
11 years 4 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
11 years 4 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.

More
11 years 4 months ago #137095 by Yiota
Replied by Yiota on topic Position of language switcher
Does this issue also happens when you have disabled the flags?

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
11 years 4 months ago #137096 by Luca
Replied by Luca on topic Position of language switcher
Partially: if I disable the switcher language and unset the default italian and english menu, the link of title menu in the slideshow work fine.
The arrows of slideshow do not work even though disabling these two settings.

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

More
11 years 4 months ago #137097 by Yiota
Replied by Yiota on topic Position of language switcher
Have you chosen each slideshow to be assigned to each language? I saw that the nuSlider script is loading twice for two slideshow modules but you are only using one. Maybe this causes the issues.
Please recheck that each frontpage menu item of each language os assigned to the correct slideshow and that each slideshow is assigned to the correct language.

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
11 years 4 months ago #137098 by Luca
Replied by Luca on topic Position of language switcher
Hi, I have checked all slideshow assigned to each language and seems ok.
At this point, I gave up and I have reinstalled in another hosting the demo package.
With surprise I realize that the problem with the slideshow (in the template "restaurant") already exists in your original demo package !
This is a fresh installation of your demo package of Nokkori, with the same problem...
website.free-time-activities.com/restaurant

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

More
11 years 4 months ago #137099 by Yiota
Replied by Yiota on topic Position of language switcher
In the link you sent above the next and previous buttons are working fine.
Have you updated your template package with the latest version 1.0.2?

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
11 years 4 months ago #137100 by Luca
Replied by Luca on topic Position of language switcher
I have update to version 1.0.2, but the problem is not solved.

I did other tests:
_ with Chrome v. 31.0.1650.57 (last version) doesn't work
_ with Safari v. 7.0 (9537.71) doesn't work
_ with Internet Explorer v. 9.0.8112.16421 works !

With which browser did you open the website ? Only with Internet Explorer ?
Because it is important that this template also works with Safari and Chrome !

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

More
11 years 4 months ago #137101 by Yiota
Replied by Yiota on topic Position of language switcher
Add this in your custom.css file: body.themeIsRestaurant.isFrontpage section.content {display:none;}

Make sure that the isFrontpage class is added to the body when browsing the homepage.

For the website.free-time-activities.com/restaurant I have checked it in
Chrome 31.0.1650.57 and Firefox 25.0 and it works.
Try the above addition to this one as well and let me know to check 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
11 years 4 months ago #137102 by Luca
Replied by Luca on topic Position of language switcher
Added on custom.css, but no resolve the problem.

Tried on:
_ pc Windows 7 with Firefox 25.0.1 and Chrome 31.0.1650.57 doesn't work, with Internet Explorer 9.0.8112.16421 works
_ pc Windows 7 with Firefox 25.0.1 and Chrome 31.0.1650.57 doesn't work, with Internet Explorer 10.0.9200.16736 works
_ Mac OS X with Safari v. 7.0 (9537.71) and Chrome 31.0.1650.57 doesn't work

I don't understand why on 3 different pc I have the similar problem and only with Internet Explorer works.

Using the developer console firefox and chrome I note some errors (see file attached).
On Internet Explorer no error found.

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

More
11 years 4 months ago #137103 by Yiota
Replied by Yiota on topic Position of language switcher
On your newsite.free-time-activities.com/ please disable one of the two slideshow modules you are loading.

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
11 years 4 months ago #137104 by Luca
Replied by Luca on topic Position of language switcher
disabled the slideshow assigned to Italian menu, remains only that one for Main menu.
Slideshow arrow works, title and readmore don't work.

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


Powered by Kunena Forum