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?
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