In one of my template overrides, I use the following line to link to individual news articles.
It works, but as you can see I have typed in "index.php/nyheter/" myself. Is there a command or the like to replace this? Something relative? For example, let's say I would change the alias from "nyheter" to something else, then I would manually have to also change in the code above. The alias in question belongs to my Main Menu.
Code:
echo '<a href="index.php/nyheter/'.$article->alias.'" class="category-blurb">';
Statistics: Posted by SocketPup — Sat Apr 27, 2024 5:11 pm