EDIT: Ooops, I meant to post this in the 2.0 section ... I’m using eeSiteKit 2.2 on 1.6.8 latest build, running on my macbook for now.
Hi,
Just running through my first set up of eeSiteKit and hit upon a problem - whenever I had content in the extended_content field & click on the “Read more” link on the page, I was getting bounced to the 404 error page.
After some debugging I traced it to the kit_display/single_entry template. The following code block was evaluating to true for some reason :
{!-- Checks entry title against segment_3 of the URI when template is displaying non-host-language content.--}
{if embed:host_language != 'true' AND segment_3 != main_url_title_{embed:site_language}}
-----redirect to the 404 page
{/if}
I have not yet set up multi-language features (although I will - Kurt remind me to send you the French files once I’ve done so you can include in future releases if you like) yet.
To debug I asked the template to output the values of host_language & site_language instead of redirecting, and I have host_language = ‘true’ and site_language = ‘english_usa’. entry_var is getting set to url_title so I guess the assign_variable at the top of the template is recognising host_language = ‘true’, from which I’d guess that the segment_3 != main_url_title_(sitelang) evaluation is giving an issue.
My kit_language/english_usa template looks fine and the values seem to be getting passed in the embed values OK.
Did I miss something in the set-up - was I supposed to create main_url_title_english_usa field somewhere ?
For now I’ve just modified the template to skip that check as I’m just getting used to the eeSiteKit way of working on my local machine!
Thanks in advance !!
Martin
