我想調試一個「不斷滾動」頁面,所以我不能在頁面底部進行調試。如何更改Joomla 3中的系統調試位置?
我曾嘗試加入
<jdoc:include type="modules" name="debug" style="xhtml"/>
到該文件(body標籤後右)的頂部,但似乎並沒有幫助。
我想調試一個「不斷滾動」頁面,所以我不能在頁面底部進行調試。如何更改Joomla 3中的系統調試位置?
我曾嘗試加入
<jdoc:include type="modules" name="debug" style="xhtml"/>
到該文件(body標籤後右)的頂部,但似乎並沒有幫助。
基本上我認爲你需要編寫你自己的調試插件並改變__destruct方法。當你有它不使用任何多個模塊位置(不要問我爲什麼),您看到__destruct的結束注意到
echo str_replace('</body>', implode('', $html) . '</body>', $contents);
這就是說它總是要把它擺放在年底身體。
我發現了一個快速(和骯髒)的方式通過將這個腳本在模板中移動調試到另一個元素(id="container"
):
;jQuery(document).ready(function($){
$('#system-debug')
.css({marginBottom:80}) /* custom style */
.appendTo('#container') /* target element */
;
});
...在我的情況下,還設置了一些底邊距。