4
我嘗試添加URL參數任務=所有車輛,但菜單鏈接到這個觀點後,已創建的任務參數仍然缺席的Joomla,添加任務參數爲特定視圖
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<layout title="Multiple Categories">
<message><![CDATA[Displays a selected categories of an application]]></message>
</layout>
<fields name="params">
<fieldset name="params" addfieldpath="/administrator/components/com_vehiclemanager/elements" label="Params">
<field name="categorylayout" type="categorylayout" default="1" class="inputbox" label="Select layout" multiple ="false" size="1" description="Choose a layout" required="false" />
<field name="back_button" type="list" label="Back Button" required="false" description="Show/Hide a Back Button" >
<option value="">Use Global</option>
<option value="0">Hide</option>
<option value="1">Show</option>
</field>
<field name="single_category" type="category" default="1" class="inputbox" label="Category" multiple ="true" size="1" description="Choose a vehicle Categories" required="true" />
</fieldset>
</fields>
<url>
<param name="task" value="all_vehicles" ></param>
</url>
</metadata>
看來對查詢字符串沒有影響嗎? –
@SergeyOnishchenko:當你保存菜單時,它會將&task = all_vehicles添加到鏈接中。這不是你需要的嗎? – Irfan
對不起,它現在有效。大概瀏覽器緩存... –