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

General Questions/New to Joomla! 5.x • get homepage id/alias?

$
0
0
So in my template override for Article I use the following code to test if it only displays if article alias = "om-oss"
It works as intended. BUT, I also want the same content to be displayed in whatever article is set as default on my start page of the site. What is the proper command to check this?

Code:

<?php if ($this->item->alias == "om-oss") : ?>    <div>SKA ENDAST SYNAS I OM-OSS!<?php echo $this->item->alias; ?></div><?php endif; ?>

Statistics: Posted by SocketPup — Thu Apr 25, 2024 8:39 am



Viewing all articles
Browse latest Browse all 2164

Trending Articles





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