How to determine if the user is viewing the front page

For Joomla! 4.x Coding related discussions, you could also use: http://groups.google.com/group/joomla-dev-general

Moderators: ooffick, General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
dayyal
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Thu May 11, 2017 4:38 pm

How to determine if the user is viewing the front page

Post by dayyal » Sat Oct 09, 2021 12:34 am

How to determine if the user is viewing the font page. There is no specific guide for Joomla 4.x. The following guide is only for Joomla 2.x, 3.x series.
https://docs.joomla.org/How_to_determin ... front_page
Last edited by imanickam on Sat Oct 09, 2021 2:48 am, edited 1 time in total.
Reason: Moved topic » from Templates for Joomla! 4.x to Joomla! 4.x Coding

sozzled
I've been banned!
Posts: 13639
Joined: Sun Jul 05, 2009 3:30 am
Location: Canberra, Australia

Re: How to determine if the user is viewing the front page

Post by sozzled » Sat Oct 09, 2021 3:21 am

This is more a question about J! documentation than about "coding".

@dayyal: have you tried using the guide, written for J! 2.5/3.x, with J! 4? Does it work for you?

User avatar
brian
Joomla! Master
Joomla! Master
Posts: 12785
Joined: Fri Aug 12, 2005 7:19 am
Location: Leeds, UK
Contact:

Re: How to determine if the user is viewing the front page

Post by brian » Sat Oct 09, 2021 7:12 am

The same code for j3 will work in j4
"Exploited yesterday... Hacked tomorrow"
Blog http://brian.teeman.net/
Joomla Hidden Secrets http://hiddenjoomlasecrets.com/


Locked

Return to “Joomla! 4.x Coding”