php - Joomla: "preview" K2 item in other language -
i developing joomla website based on k2 multilingual front end editing possibility. works nicely, except 1 thing: previewing k2 items in language using edit them.
for example:
- when joomla set dutch, can edit english item without problem. however, cannot view item directly without first selecting 'english' language site, otherwise direct link item doesn't work.
- i managed work around modifying getdata() function in k2modelitem, language not checked there anymore. however, joomla still set dutch, not 'real' preview of item like.
therefore, looking solution temporarily switch language of joomla language of item (english in example) , switch directly, able continue editing in dutch after viewing preview. think possible? code need implement automatic switching?
let me know if need provide more information. maybe has inventive solution, thanks.
[edit] seems forcing $lang parameter in item url job, modification in k2modelitem described. works sef disabled. i'd hear if there other suggestions.
Comments
Post a Comment