我想创建一个按钮,其中包含指向我有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
答案 0 :(得分:1)
您必须为本文创建一个新菜单项,并使用别名字段添加所需的网址值。菜单也可以隐藏,仅用于创建sef url。
希望这有帮助。