我有一個很老的TYPO3的插件,前一段時間(可能是問題是由一個TYPO3的升級引起的;我目前使用的4.7.11),用戶開始抱怨後端中某些項目的上下文菜單不再起作用。效果在一些表格上是有限的,並不是全部,但它看起來像是一類項目或者工作或者不工作。TYPO3的showClickmenu工作不適合某些插件提供的項目類型
的插件確實沒有什麼特別的上下文菜單,我只是希望與編輯按鈕等。我從有變化已對後端WRT網頁搜索理解標準的事情。上下文菜單。然而,從錯誤報告來看,我不清楚我必須改變什麼,特別是因爲我的一些東西沒有修改就工作。
有什麼我需要一個插件,以適應新的上下文菜單架構工作的任何文檔?
由於提前, 克里斯托夫
PS:奇怪的是,上下文菜單不標準的文件瀏覽器的工作都不是。這可能是相關的,但我沒有針對尚未解決...
編輯:火狐的Webdev的控制檯報告錯誤「XML或文本聲明不在實體的開始」爲失敗的菜單。雖然XML看起來不錯:
<?xml version="1.0"?>
<t3ajax><data><clickmenu><htmltable><![CDATA[<div class="typo3-CSM-wrapperCM">
<table border="0" cellpadding="0" cellspacing="0" class="typo3-CSM">
<tr class="typo3-CSM-itemRow" onclick="if(top.content.list_frame){top.content.list_frame.location.href=top.TS.PATH_typo3+'alt_doc.php?returnUrl='+top.rawurlencode(top.content.list_frame.document.location.pathname+top.content.list_frame.document.location.search)+'&edit[tx_visteaching_seminartopic][240]=edit';}Clickmenu.hideAll();" onmouseover="this.bgColor='#dedede';" onmouseout="this.bgColor='';" oncontextmenu="if(top.content.list_frame){top.content.list_frame.location.href=top.TS.PATH_typo3+'alt_doc.php?returnUrl='+top.rawurlencode(top.content.list_frame.document.location.pathname+top.content.list_frame.document.location.search)+'&edit[tx_visteaching_seminartopic][240]=edit';}Clickmenu.hideAll();;return false;">
<td align="center"> <span class="t3-icon t3-icon-actions t3-icon-actions-document t3-icon-document-open"> </span></td><td class="typo3-CSM-item">Bearbeiten</td>
</tr>
<tr class="typo3-CSM-itemRow" onclick="if(top.content.list_frame){top.content.list_frame.location.href=top.TS.PATH_typo3+'alt_doc.php?returnUrl='+top.rawurlencode(top.content.list_frame.document.location.pathname+top.content.list_frame.document.location.search)+'&edit[tx_visteaching_seminartopic][-240]=new';}Clickmenu.hideAll();" onmouseover="this.bgColor='#dedede';" onmouseout="this.bgColor='';" oncontextmenu="if(top.content.list_frame){top.content.list_frame.location.href=top.TS.PATH_typo3+'alt_doc.php?returnUrl='+top.rawurlencode(top.content.list_frame.document.location.pathname+top.content.list_frame.document.location.search)+'&edit[tx_visteaching_seminartopic][-240]=new';}Clickmenu.hideAll();;return false;">
<td align="center"> <span class="t3-icon t3-icon-actions t3-icon-actions-document t3-icon-document-new"> </span></td><td class="typo3-CSM-item">Neu</td>
</tr>
<tr class="typo3-CSM-itemRow" onclick="top.launchView('tx_visteaching_seminartopic', '240'); Clickmenu.hideAll();" onmouseover="this.bgColor='#dedede';" onmouseout="this.bgColor='';" oncontextmenu="top.launchView('tx_visteaching_seminartopic', '240'); Clickmenu.hideAll();;return false;">
<td align="center"> <span class="t3-icon t3-icon-actions t3-icon-actions-document t3-icon-document-info"> </span></td><td class="typo3-CSM-item">Info</td>
</tr>
<tr class="bgColor2">
<td colspan="2"><img src="clear.gif" width="1" height="1" alt="" /></td>
</tr>
<tr class="typo3-CSM-itemRow" onclick="showClickmenu_raw('/typo3/alt_clickmenu.php?table=tx_visteaching_seminartopic&uid=240&listFr=1&enDisItems=&backPath=%7Ce633b347b6&addParams=&ajax=1&reloadListFrame=1&CB[el][tx_visteaching_seminartopic%7C240]=1&CB[setCopyMode]=1');Clickmenu.hideAll();" onmouseover="this.bgColor='#dedede';" onmouseout="this.bgColor='';" oncontextmenu="showClickmenu_raw('/typo3/alt_clickmenu.php?table=tx_visteaching_seminartopic&uid=240&listFr=1&enDisItems=&backPath=%7Ce633b347b6&addParams=&ajax=1&reloadListFrame=1&CB[el][tx_visteaching_seminartopic%7C240]=1&CB[setCopyMode]=1');Clickmenu.hideAll();;return false;">
<td align="center"> <span class="t3-icon t3-icon-actions t3-icon-actions-edit t3-icon-edit-copy"> </span></td><td class="typo3-CSM-item">Kopieren</td>
</tr>
<tr class="typo3-CSM-itemRow" onclick="showClickmenu_raw('/typo3/alt_clickmenu.php?table=tx_visteaching_seminartopic&uid=240&listFr=1&enDisItems=&backPath=%7Ce633b347b6&addParams=&ajax=1&reloadListFrame=1&CB[el][tx_visteaching_seminartopic%7C240]=1');Clickmenu.hideAll();" onmouseover="this.bgColor='#dedede';" onmouseout="this.bgColor='';" oncontextmenu="showClickmenu_raw('/typo3/alt_clickmenu.php?table=tx_visteaching_seminartopic&uid=240&listFr=1&enDisItems=&backPath=%7Ce633b347b6&addParams=&ajax=1&reloadListFrame=1&CB[el][tx_visteaching_seminartopic%7C240]=1');Clickmenu.hideAll();;return false;">
<td align="center"> <span class="t3-icon t3-icon-actions t3-icon-actions-edit t3-icon-edit-cut"> </span></td><td class="typo3-CSM-item">Ausschneiden</td>
</tr>
<tr class="bgColor2">
<td colspan="2"><img src="clear.gif" width="1" height="1" alt="" /></td>
</tr>
<tr class="typo3-CSM-itemRow" onclick="showClickmenu_raw('/typo3/alt_clickmenu.php?table=tx_visteaching_seminartopic&uid=240&listFr=1&enDisItems=&backPath=%7Ce633b347b6&addParams=&ajax=1&cmLevel=1&subname=moreoptions');" onmouseover="this.bgColor='#dedede';" onmouseout="this.bgColor='';" oncontextmenu="showClickmenu_raw('/typo3/alt_clickmenu.php?table=tx_visteaching_seminartopic&uid=240&listFr=1&enDisItems=&backPath=%7Ce633b347b6&addParams=&ajax=1&cmLevel=1&subname=moreoptions');;return false;">
<td align="center"> </td><td class="typo3-CSM-item">Weitere Einstellungen...</td>
</tr>
<tr class="typo3-CSM-itemRow" onclick="if(top.content.list_frame){top.content.list_frame.location.href=top.TS.PATH_typo3+'tce_db.php?redirect='+top.rawurlencode(top.content.list_frame.document.location.pathname+top.content.list_frame.document.location.search)+'&data[tx_visteaching_seminartopic][240][hidden]=1&prErr=1&vC=31e89da0b5&formToken=67e2328a3706432e0dd02d2f1e0923002537a3d0';}top.nav.refresh.defer(500, top.nav);Clickmenu.hideAll();" onmouseover="this.bgColor='#dedede';" onmouseout="this.bgColor='';" oncontextmenu="if(top.content.list_frame){top.content.list_frame.location.href=top.TS.PATH_typo3+'tce_db.php?redirect='+top.rawurlencode(top.content.list_frame.document.location.pathname+top.content.list_frame.document.location.search)+'&data[tx_visteaching_seminartopic][240][hidden]=1&prErr=1&vC=31e89da0b5&formToken=67e2328a3706432e0dd02d2f1e0923002537a3d0';}top.nav.refresh.defer(500, top.nav);Clickmenu.hideAll();;return false;">
<td align="center"> <span class="t3-icon t3-icon-actions t3-icon-actions-edit t3-icon-edit-hide"> </span></td><td class="typo3-CSM-item">Verbergen</td>
</tr>
<tr class="typo3-CSM-itemRow" onclick="var docRef=(top.content.list_frame)?top.content.list_frame:top.content.list_frame; docRef.location.href=top.TS.PATH_typo3+'alt_doc.php?edit[tx_visteaching_seminartopic][240]=edit&columnsOnly=hidden'+'&returnUrl='+top.rawurlencode(docRef.document.location.pathname+docRef.document.location.search);Clickmenu.hideAll();" onmouseover="this.bgColor='#dedede';" onmouseout="this.bgColor='';" oncontextmenu="var docRef=(top.content.list_frame)?top.content.list_frame:top.content.list_frame; docRef.location.href=top.TS.PATH_typo3+'alt_doc.php?edit[tx_visteaching_seminartopic][240]=edit&columnsOnly=hidden'+'&returnUrl='+top.rawurlencode(docRef.document.location.pathname+docRef.document.location.search);Clickmenu.hideAll();;return false;">
<td align="center"> <span class="t3-icon t3-icon-actions t3-icon-actions-document t3-icon-document-edit-access"> </span></td><td class="typo3-CSM-item">Sichtbarkeitseinstellungen</td>
</tr>
<tr class="bgColor2">
<td colspan="2"><img src="clear.gif" width="1" height="1" alt="" /></td>
</tr>
<tr class="typo3-CSM-itemRow" onclick="if(top.content.list_frame && confirm(String.fromCharCode(83,105,110,100,32,83,105,101,32,115,105,99,104,101,114,44,32,100,97,115,115,32,83,105,101,32,34,69,118,97,108,117,97,116,105,111,110,32,118,111,110,32,75,110,111,116,101,110,45,75,97,110,116,101,110,32,68,105,97,103,114,97,109,109,101,110,34,32,116,97,116,115,228,99,104,108,105,99,104,32,108,246,115,99,104,101,110,32,119,111,108,108,101,110,63,32,40,84,104,101,114,101,32,97,114,101,32,49,32,114,101,102,101,114,101,110,99,101,40,115,41,32,116,111,32,116,104,105,115,32,114,101,99,111,114,100,33,41))){top.content.list_frame.location.href=top.TS.PATH_typo3+'tce_db.php?redirect='+top.rawurlencode(top.content.list_frame.document.location.pathname+top.content.list_frame.document.location.search)+'&cmd[tx_visteaching_seminartopic][240][delete]=1&prErr=1&vC=31e89da0b5&formToken=67e2328a3706432e0dd02d2f1e0923002537a3d0';}top.nav.refresh.defer(500, top.nav);Clickmenu.hideAll();" onmouseover="this.bgColor='#dedede';" onmouseout="this.bgColor='';" oncontextmenu="if(top.content.list_frame && confirm(String.fromCharCode(83,105,110,100,32,83,105,101,32,115,105,99,104,101,114,44,32,100,97,115,115,32,83,105,101,32,34,69,118,97,108,117,97,116,105,111,110,32,118,111,110,32,75,110,111,116,101,110,45,75,97,110,116,101,110,32,68,105,97,103,114,97,109,109,101,110,34,32,116,97,116,115,228,99,104,108,105,99,104,32,108,246,115,99,104,101,110,32,119,111,108,108,101,110,63,32,40,84,104,101,114,101,32,97,114,101,32,49,32,114,101,102,101,114,101,110,99,101,40,115,41,32,116,111,32,116,104,105,115,32,114,101,99,111,114,100,33,41))){top.content.list_frame.location.href=top.TS.PATH_typo3+'tce_db.php?redirect='+top.rawurlencode(top.content.list_frame.document.location.pathname+top.content.list_frame.document.location.search)+'&cmd[tx_visteaching_seminartopic][240][delete]=1&prErr=1&vC=31e89da0b5&formToken=67e2328a3706432e0dd02d2f1e0923002537a3d0';}top.nav.refresh.defer(500, top.nav);Clickmenu.hideAll();;return false;">
<td align="center"> <span class="t3-icon t3-icon-actions t3-icon-actions-edit t3-icon-edit-delete"> </span></td><td class="typo3-CSM-item">Löschen</td>
</tr>
<tr class="typo3-CSM-itemRow" onclick="var docRef=(top.content.list_frame)?top.content.list_frame:top.content.list_frame; docRef.location.href=top.TS.PATH_typo3+'show_rechis.php?element=tx_visteaching_seminartopic%3A240'+'&returnUrl='+top.rawurlencode(docRef.document.location.pathname+docRef.document.location.search);Clickmenu.hideAll();" onmouseover="this.bgColor='#dedede';" onmouseout="this.bgColor='';" oncontextmenu="var docRef=(top.content.list_frame)?top.content.list_frame:top.content.list_frame; docRef.location.href=top.TS.PATH_typo3+'show_rechis.php?element=tx_visteaching_seminartopic%3A240'+'&returnUrl='+top.rawurlencode(docRef.document.location.pathname+docRef.document.location.search);Clickmenu.hideAll();;return false;">
<td align="center"> <span class="t3-icon t3-icon-actions t3-icon-actions-document t3-icon-document-history-open"> </span></td><td class="typo3-CSM-item">Verlauf/Rückgängig</td>
</tr>
</table>
</div>]]></htmltable><cmlevel>0</cmlevel></clickmenu></data></t3ajax>
我已經瀏覽了JavaScript並發現了AJAX請求 - 但說實話,那些複雜的東西我還不知道這裏發生了什麼。 PHP日誌不顯示任何錯誤... – Christoph
有一個onclick處理程序。沒有什麼複雜的。它只是通過傳遞表和uid來從服務器獲取上下文菜單。 – pgampe
好的,我使用了Firefox開發控制檯,併爲AJAX響應獲得了「不是在實體開始時的xml或文本聲明」。但是,XML數據在語法上是正確的。對我來說唯一可疑的是響應開始時有一條空行。然而,在文件列表的情況下,似乎沒有任何響應,但僅適用於文件... – Christoph