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

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

$
0
0
JRoute is deprecated and will not work in later versions of Joomla.
Use the name-spaced function shown by @SharkyKZ
Hmmm, ok. So how do I re-write the above, working though deprecated line of code to make it work with the name-spaced function? I didn't find any good documentation on getArticleRoute when googling.

I tried these arguments in getArticleRoute:

Code:

getArticleRoute($this->item->slug, $this->item->catid, $this->item->language)
So the output of the above gives me: http://localhost/blomstradgard/index.php
which is a good start, but I also need the category destination (/nyheter) after index.php. How do I add that properly?

Statistics: Posted by SocketPup — Mon Apr 29, 2024 2:24 pm



Viewing all articles
Browse latest Browse all 1491

Trending Articles





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