如何编辑内容中的链接以指向joomla中的文章
在joomla内容中,我需要放置一个指向同一joomla站点中另一篇文章的链接。我该怎么做?如何编辑内容中的链接以指向joomla中的文章,joomla,Joomla,在joomla内容中,我需要放置一个指向同一joomla站点中另一篇文章的链接。我该怎么做? 请注意,即使我更改了基于joomla的站点名称,这也应该有效。没问题。只需将其作为一个相对链接,如 <a href="article1">my link to article1</a> 其中“article1”是指向目标文章的菜单位置的名称。假设您已经启用了SEO URL和mod_rewrite,这就足够了 如果您启用了SEO URL,但没有mod_rewrite,则需要将
请注意,即使我更改了基于joomla的站点名称,这也应该有效。没问题。只需将其作为一个相对链接,如
<a href="article1">my link to article1</a>
其中“article1”是指向目标文章的菜单位置的名称。假设您已经启用了SEO URL和mod_rewrite,这就足够了
如果您启用了SEO URL,但没有mod_rewrite,则需要将href从“article1”更改为“index.php/article1”
最后,如果您根本不使用SEO URL,则需要调用com_内容并指定文章id:
<a href="index.php?option=com_content&view=article&id={article_id_here}">my link to article1</a>
最简单的工具是Linkr- 它使链接到文章、章节等变得非常容易
<a href="index.php?option=com_content&view=article&id={article_id_here}">my link to article1</a>