×
This forum has been locked. Please submit new Feature Requests on GitHub: github.com/Jensen-Technologies/component-creator-issues/issues
item id in menu
Soteha Srl
Navegador Iniciado
Posts: 2
8 años 4 meses antes #1388
por Soteha Srl
item id in menu Publicado por Soteha Srl
It's possible to modify the xml generated in menu item in this :
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<layout title="TITLE" option="View">
<message>
<![CDATA[DESC]]>
</message>
</layout>
<fields name="params">
<fieldset
name="basic"
label="LABEL">
<field
name="item_id"
query="SELECT null as id UNION SELECT `id` FROM #__mycomp_table ORDER BY `id`"
type="sql"
key_field="id"
value_field="id"
label="LABEL"
require="true"
description="JGLOBAL_SHOW_TITLE_DESC">
</field>
</fieldset>
</fields>
</metadata>
So we can create "hidden" menu voices and override the id creating custom link with the id..
Example:
index.php?option=mycom&view=myview&id=12&Itemid=123
without the Union select the componet will ignore the id=12 and use every time the id specified in the menu.
<?xml version="1.0" encoding="utf-8"?>
<metadata>
<layout title="TITLE" option="View">
<message>
<![CDATA[DESC]]>
</message>
</layout>
<fields name="params">
<fieldset
name="basic"
label="LABEL">
<field
name="item_id"
query="SELECT null as id UNION SELECT `id` FROM #__mycomp_table ORDER BY `id`"
type="sql"
key_field="id"
value_field="id"
label="LABEL"
require="true"
description="JGLOBAL_SHOW_TITLE_DESC">
</field>
</fieldset>
</fields>
</metadata>
So we can create "hidden" menu voices and override the id creating custom link with the id..
Example:
index.php?option=mycom&view=myview&id=12&Itemid=123
without the Union select the componet will ignore the id=12 and use every time the id specified in the menu.
Por favor, Identificarse o Crear cuenta para unirse a la conversación.
Andres Maeso
Navegador Platino
Posts: 338
8 años 4 meses antes #1392
por Andres Maeso
Andrés Maeso
Customer relations manager at Joomla Component Creator.
Esta dirección de correo electrónico está siendo protegida contra los robots de spam. Necesita tener JavaScript habilitado para poder verlo.
Respuesta de Andres Maeso sobre el tema item id in menu
Hi
This would break Joomla's workflow. We only add features that respect Joomla standard behavior so I am afraid this feature has to be rejected.
Regards!
This would break Joomla's workflow. We only add features that respect Joomla standard behavior so I am afraid this feature has to be rejected.
Regards!
Andrés Maeso
Customer relations manager at Joomla Component Creator.
Esta dirección de correo electrónico está siendo protegida contra los robots de spam. Necesita tener JavaScript habilitado para poder verlo.
Por favor, Identificarse o Crear cuenta para unirse a la conversación.
Tiempo de carga de la página: 0.069 segundos