On Feb 7, 9:29 pm, martinp <[EMAIL PROTECTED]> wrote:
> Thanks AD for your ideas.
>
> My thinking is that if I store the whole slug in the slug field (ie
> with the ancestors) then that will be a unique key to search for the
> data from (I'll validate this to make sure it is).
The typical problem with such logic is what happens when a typo is
made and corrected.
>I guess I'll also
> have to handle the fact that the user may change their location
> setting, in which case a redirect to the correct URL based on the page
> ID will be needed.
if you change your from DE to ES (for example) you won't be able to
find the slug (without checking all languages) to be able to redirect
to the right url.
>
> My problem now is to read the slug from the i18n table when looking up
> the correct record in my 'pagina' table (that's just what I've called
> it). How do I do this? Can you help?
without something unique that doesn't change depending on the site
language, with a bit of work, sweat and tears I would say :).
hth,
AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---