You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I create a blog item just for 1 language (Dutch in this case - no translation in English)
I create a another blog item just for 1 language (Dutch in this case - no translation in English)
these blog items are visible in the Dutch blog list (this is good)
these are not visible in the English blog list (this is good)
when I click on the first dutch blog link, it will show the second blog item
Reason:
the slug field is empty
Solution:
get id & slug in function records (LocalizedFrontend.php) $qb->select('id,slug') ->where($localeSlug . 'slug = ?') ->setParameter(0, $slug) ->setMaxResults(1);
duplicate request object with id of record, just before calling parent::record $request = $request->duplicate(null,null,array('id'=>$result['id']));
Details
Translate Version: [ 4.11 ]
Bolt Version: [ 3.4.10 ]
PHP version: [ 7.0 ]
Used webserver: [ Apache ]
The text was updated successfully, but these errors were encountered:
Our website has 2 languages (English and Dutch).
Problem:
Reason:
Solution:
$qb->select('id,slug') ->where($localeSlug . 'slug = ?') ->setParameter(0, $slug) ->setMaxResults(1);
$request = $request->duplicate(null,null,array('id'=>$result['id']));
Details
The text was updated successfully, but these errors were encountered: