[TYPO3-mvc] mm-relations in workspaces

Michael Vöhringer voehringer at mediatis.de
Wed Apr 6 16:25:51 CEST 2011


Hi,
i have created an extension to tag typo3-pages and everything works fine if i use the plugin in the live workspace. 
But if i switch to an workspace and add some new tags to a page the extbase repositrory only returns already published tags and ignores relations added in the workspace

After debugging for a while, i think this is an exbase issue because extbase only use the live page-id (126) of the page to query the related tags. But if a user is in the workspace the page id is127.

SELECT  tx_myext_domain_model_tag.* 
FROM tx_myext_tag_pages_mm 
LEFT JOIN tx_myext_domain_model_tag 
ON tx_myext_tag_pages_mm.uid_local = tx_myext_domain_model_tag.uid 
WHERE tx_myext_tag_pages_mm.uid_foreign = '126' 
AND tx_myext_domain_model_tag.deleted=0 
AND tx_myext_domain_model_tag.t3ver_state<=0 
AND tx_myext_domain_model_tag.pid!=-1 
AND tx_myext_domain_model_tag.sys_language_uid IN (0,-1) 
ORDER BY tx_myext_tag_pages_mm.sorting_foreign ASC



Maybe someone else has this problem and a solution how to solve it? 

thanks, Michael







More information about the TYPO3-project-typo3v4mvc mailing list