Timeline for Struggling with language switcher for Craft 3
Current License: CC BY-SA 3.0
9 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
May 9, 2018 at 18:49 | history | bumped | CommunityBot | This question has answers that may be good or bad; the system has marked it active so that they can be reviewed. | |
Apr 9, 2018 at 16:42 | comment | added | andrew.welch |
Oh... maybe you want to check on the .status to make sure it's live then?
|
|
Apr 9, 2018 at 15:40 | answer | added | Danielle Frappier | timeline score: 1 | |
Apr 9, 2018 at 12:59 | comment | added | Danielle Frappier | @andrew.welch What I would like to happen is if you go to an english entry, but that entry is not set to live on another site/language then not show the link. My code it shows the link regardless. I am 100% positive I'm not using enabledForSite for site correctly. | |
Apr 8, 2018 at 20:05 | comment | added | andrew.welch | I tried your code... it seemed to work fine here, it outputted a link to the entry in another localization in the same Site Group. What is not working as you're expecting it to? | |
Apr 7, 2018 at 22:36 | comment | added | andrew.welch |
I'll have a look at this in detail in a bit, but something you can do is do a {{ dump(localizedUrlsArray) }} to look at the data that's being returned to you from seomatic.helper.getLocalizedUrls() to make sure it is what you think it is. Also you don't mention what is wrong or not working as expected with the code you've shown?
|
|
Apr 6, 2018 at 19:22 | history | edited | Danielle Frappier | CC BY-SA 3.0 |
added 92 characters in body
|
Apr 6, 2018 at 19:06 | history | edited | Danielle Frappier | CC BY-SA 3.0 |
deleted 34 characters in body
|
Apr 6, 2018 at 18:57 | history | asked | Danielle Frappier | CC BY-SA 3.0 |