doublesecretagency / craft-siteswitcher

Site Switcher plugin for Craft CMS
MIT License
67 stars 7 forks source link

Homepage link not good #6

Closed migswd closed 8 years ago

migswd commented 8 years ago

Hi Lindsey. Thank you for this great plugin.

It works great for entries links but not for the homepage. It was still english link when I clicked on Francais link.

I had to do this.

{% set element = (entry is defined ? entry : null) %}
<ul>
    <li><a href="{{ ll('en', element) }}">English</a></li>
    <li><a href="{% if bodyClass == "homepage" %}{{ ll('fr') }}{% else %}{{ ll('fr', element) }}{% endif %}">Français</a></li>
</ul>

Any idea ?

lindseydiloreto commented 8 years ago

It should work for the homepage... ping me on Slack and we can walk through it together.

lindseydiloreto commented 8 years ago

Did you get this working? If this is no longer an issue, we can close the thread.

migswd commented 8 years ago

No never resolved it. I am available on slack so I can try and test again and we could try to go through.

I test again and ping you tomorrow Thx

Miguel

On 22 Jul 2016, at 21:18, Lindsey DiLoreto notifications@github.com wrote:

Did you get this working? If this is no longer an issue, we can close the thread.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/lindseydiloreto/craft-languagelink/issues/6#issuecomment-234632075, or mute the thread https://github.com/notifications/unsubscribe-auth/ADXjZ-RS8kcUIRKaYI7t-xOCz_rXfjaPks5qYRd6gaJpZM4II37I.

lindseydiloreto commented 8 years ago

I still haven't heard from you on this issue.

It's been 4 months, so I'm going to assume you've resolved the issue by now.