hyperlink - How to create a link to an article in joomla? -
my website contains icons, want each icon point link article, have create articles, want show them without creating menu items. tried : href of icon1 -> article 1 href of icon2 -> article 2 ... target page show text of article, without slider , main menu of website. what works me : have created menu called hidden menu items, matched each menu item article want, added link of article in href's icon. menu item 1 -> hidden/item1 , selected article 1 menu item 2 -> hidden/item2 , selected article 2.
thank you.
if want maintain desired modules, need specify menu item. because want have command on modules should displayed articles, modules assigned menu items. if there no menu-item specified purpose, wrong modules displayed or no modules @ all.
so, best way accomplish create separate menu , respective menu items each of articles. can name menu "hidden", since not want create module , display @ front-end. can link icons each article including menu item id in url: illustration of url:
index.php?option=com_content&view=article&id=1&itemid=100 if icons within custom html module, suggest utilize link manager of jce editor link menu items/articles.
if linking within template, might want utilize jroute() create link, ensure sef urls if enable them...
so code link like:
<a href="<?php echo jroute::_('index.php?option=com_content&view=article&id=1&itemid=100'); ?>">link</a> joomla hyperlink href article
No comments:
Post a Comment