Is there any way to get from the article it's SEF URL?
<?php
$id = JFactory::getApplication()->input->getInt('id');
$article = JTable::getInstance("content");
?>
searching something like this:
<?php echo $article->somethingLikeCanonicalSEFURL; ?>
a
should bean
but that, of itself, is not a worthwhile edit. (not worth the +2 rep reward) What you could have done was: condensedany way
, changedit's
toits
, removed all of the unnecessary<?php
and?>
tags in the code blocks, reworded the English in the sentences. When you do wish to make an edit, please make it the "final edit" by fixing EVERYTHING possible. – mickmackusa♦ May 16 '19 at 11:31