我想创建一个带有指向我具有其ID的文章的链接的按钮。我从表单字段获取ID,该表单字段返回菜单项ID。到目前为止,我已经尝试过了:
<a href="index.php?option=com_content&view=featured&id=280"><p>read it</p></a>
result = /joomla/index.php?id=69
,所以它不起作用。
最终结果应该是这样的:
/joomla/index.php/using-joomla
/joomla/index.php/using-joomla/extensions
您必须为本文创建一个新的菜单项,并使用别名字段添加所需的url值。菜单也可以隐藏,仅用于sef url创建。
希望这可以帮助。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句