Quantcast
Channel: Joomla! Forum - community, help and support
Viewing all articles
Browse latest Browse all 1944

General Questions/New to Joomla! 5.x • url to news post?

$
0
0
In one of my template overrides, I use the following line to link to individual news articles.

Code:

echo '<a href="index.php/nyheter/'.$article->alias.'" class="category-blurb">';
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.

Statistics: Posted by SocketPup — Sat Apr 27, 2024 5:11 pm



Viewing all articles
Browse latest Browse all 1944

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>