Home point to other link after login
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
-
- Joomla! Apprentice
- Posts: 18
- Joined: Fri Mar 24, 2023 4:10 pm
Home point to other link after login
Hi everyone,
I'm writing to ask you for some help.
In my joomla 5 site, I created two homepages
1) homepage1 (I set guest i.e. after logging in this page is no longer seen)
2) homepage 2 (I set registered, and it is the one that users must see after logging in)
Now, beyond the creation of the home pages, this is just to make you understand, I need the logo after login not to
point to www.domainname.com but to www.domainname.com/hompage2
Can anyone give me some info on how to proceed?
Thank you.
I'm writing to ask you for some help.
In my joomla 5 site, I created two homepages
1) homepage1 (I set guest i.e. after logging in this page is no longer seen)
2) homepage 2 (I set registered, and it is the one that users must see after logging in)
Now, beyond the creation of the home pages, this is just to make you understand, I need the logo after login not to
point to www.domainname.com but to www.domainname.com/hompage2
Can anyone give me some info on how to proceed?
Thank you.
-
- Joomla! Champion
- Posts: 5951
- Joined: Tue Aug 23, 2005 1:56 pm
- Location: South coast, UK
- Contact:
Re: Home point to other link after login
Child template with a different logo?
https://gadsolutions.biz Electrical services
https://electrical-testing-safety.co.uk Testing services
https://electrical-testing-safety.co.uk Testing services
- Webdongle
- Joomla! Master
- Posts: 44096
- Joined: Sat Apr 05, 2008 9:58 pm
Re: Home point to other link after login
That should work if you copied the Template's index.php to the child Template. Then edit the link and then assigned the child Template to the relevant menu item.
http://www.weblinksonline.co.uk/
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
https://www.weblinksonline.co.uk/updating-joomla.html
"When I'm right no one remembers but when I'm wrong no one forgets".
-
- Joomla! Apprentice
- Posts: 18
- Joined: Fri Mar 24, 2023 4:10 pm
Re: Home point to other link after login
Hello and thanks for your reply.
Can you kindly explain with some examples please thank you.
the operation I did is the following:
I created homepage 2 and didn't set it as default. This home page has registered permissions.
The main home page has guest permissions. So the logged in user does not see that page.
in exit I set the redirect to the main homepage.
Everything works. The problem is that if the logged in user views domainname.com/homepage2 and clicks on the logo it gives a 404 error because the logo refers to the main homepage (www.domainname.com and not to www.domainname.com/homepage2)
Can you kindly explain with some examples please thank you.
the operation I did is the following:
I created homepage 2 and didn't set it as default. This home page has registered permissions.
The main home page has guest permissions. So the logged in user does not see that page.
in exit I set the redirect to the main homepage.
Everything works. The problem is that if the logged in user views domainname.com/homepage2 and clicks on the logo it gives a 404 error because the logo refers to the main homepage (www.domainname.com and not to www.domainname.com/homepage2)
-
- Joomla! Champion
- Posts: 5951
- Joined: Tue Aug 23, 2005 1:56 pm
- Location: South coast, UK
- Contact:
Re: Home point to other link after login
Create a child template, change the logo in this to what you want and then assign it to Home2 in the menu system.
See https://magazine.joomla.org/all-issues/ ... -templates
https://gadsolutions.biz Electrical services
https://electrical-testing-safety.co.uk Testing services
https://electrical-testing-safety.co.uk Testing services
-
- Joomla! Apprentice
- Posts: 18
- Joined: Fri Mar 24, 2023 4:10 pm
Re: Home point to other link after login
I don't know if it's the translator who's wrong or whether it's me who can't make myself understood: I'll post my request here in detail.
I don't have to change the logo
In practice I created two different homepages on the site:
The first normally points to yourdomainname.com and is the homepage you originally created.
The second targets registered users
Therefore, the first has guest permissions, meaning only those who are not logged in can see that page, while the second has registered permissions, meaning if logged in they see a different homepage.
So far everything is working but the simple fact remains that when the logged in customer clicks on the logo it takes him back to the main homepage and if this is guest the user displays error 404 (and this is normal)
Now what I ask you is when the customer is logged in and clicks on the logo this must send him to /homepage and not to the main home page which cannot be viewed in guest mode.
surely a change must be made to the php file but I don't know what file it is although I assume it is index.php and I don't even know what code to implement, i.e. how to declare that that page is the homepage and not the main one.
(the logatto customer displays yourdomain.com/homepage)
(the customer who is not logged in displays yourdomain.com)
so sweaty
I don't have to change the logo
In practice I created two different homepages on the site:
The first normally points to yourdomainname.com and is the homepage you originally created.
The second targets registered users
Therefore, the first has guest permissions, meaning only those who are not logged in can see that page, while the second has registered permissions, meaning if logged in they see a different homepage.
So far everything is working but the simple fact remains that when the logged in customer clicks on the logo it takes him back to the main homepage and if this is guest the user displays error 404 (and this is normal)
Now what I ask you is when the customer is logged in and clicks on the logo this must send him to /homepage and not to the main home page which cannot be viewed in guest mode.
surely a change must be made to the php file but I don't know what file it is although I assume it is index.php and I don't even know what code to implement, i.e. how to declare that that page is the homepage and not the main one.
(the logatto customer displays yourdomain.com/homepage)
(the customer who is not logged in displays yourdomain.com)
so sweaty
- AMurray
- Joomla! Exemplar
- Posts: 9747
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: Home point to other link after login
You can't have two home pages as such. When you log in it's possible to redirect to a specified page but the Home page is usually the same page for 'registered' as it is for 'public' or 'guest'.
I think you're looking for a home page redirection extension such as 'Nomad', a J3 extension (won't work in J5) - see https://extensions.joomla.org/extension/system-nomad/). Is that the sort of thing you want? I don't know of any similar extension for J5.
[edit] I found one that might suit you https://extensions.joomla.org/extension ... ter-login/. It's commercial / paid and there's a demo (but when I tried accessing it, Windows 10 (Acronis cyber security) raised a red flag about a vulnerable site. I scanned the URL with an online security scanner (Sucuri) which also raised a few issues).
I think you're looking for a home page redirection extension such as 'Nomad', a J3 extension (won't work in J5) - see https://extensions.joomla.org/extension/system-nomad/). Is that the sort of thing you want? I don't know of any similar extension for J5.
[edit] I found one that might suit you https://extensions.joomla.org/extension ... ter-login/. It's commercial / paid and there's a demo (but when I tried accessing it, Windows 10 (Acronis cyber security) raised a red flag about a vulnerable site. I scanned the URL with an online security scanner (Sucuri) which also raised a few issues).
Regards - A Murray
General Support Moderator
General Support Moderator
-
- Joomla! Apprentice
- Posts: 18
- Joined: Fri Mar 24, 2023 4:10 pm
Re: Home point to other link after login
Hi Amurray, much of the work is finished, the only inconvenience is that when the user clicks on the logo, instead of sending it back to nomedominio.com/homepage, it sends it back to nomedominio.com
with error 404 (this is normal because by setting the main homepage - public side - to guest, the user no longer having permissions after logging in finds himself with error 404)
Having done a lot of research but without obtaining results I thought:
If the redirect configuration is correct, I created the child template as recommended by you, the only problem remains that when the user clicks on the logo it does not take you back to the homepage created.
Now, having understood where the problem is, I should find the php file of my template to modify which in index.php I can't find any rules related to the logo.
How can I change this?
<a href="/"><img src="
where do I find the file? what rule can I apply? I also tried with location php but nothing.
now the problem is changing the url to the logo
Thank you
with error 404 (this is normal because by setting the main homepage - public side - to guest, the user no longer having permissions after logging in finds himself with error 404)
Having done a lot of research but without obtaining results I thought:
If the redirect configuration is correct, I created the child template as recommended by you, the only problem remains that when the user clicks on the logo it does not take you back to the homepage created.
Now, having understood where the problem is, I should find the php file of my template to modify which in index.php I can't find any rules related to the logo.
How can I change this?
<a href="/"><img src="
where do I find the file? what rule can I apply? I also tried with location php but nothing.
now the problem is changing the url to the logo
Thank you
-
- Joomla! Apprentice
- Posts: 18
- Joined: Fri Mar 24, 2023 4:10 pm
Re: Home point to other link after login
Here I am! I solved the problem.
In my specific case my template file was called template.php and from there I set the homepage.
now the user who connects and clicks on the logo will be redirected to the homepage.
But now I have another problem.
I would like to specify that if that user closes the page and remains logged in or when logged in they type nomedominio.it they must send them back to the homepage I created.
Unfortunately this does not happen.
Is it possible to do a redirect for connected users?
If so, can you explain how to do it or is there a plugin that does this?
thanks again for your help
In my specific case my template file was called template.php and from there I set the homepage.
now the user who connects and clicks on the logo will be redirected to the homepage.
But now I have another problem.
I would like to specify that if that user closes the page and remains logged in or when logged in they type nomedominio.it they must send them back to the homepage I created.
Unfortunately this does not happen.
Is it possible to do a redirect for connected users?
If so, can you explain how to do it or is there a plugin that does this?
thanks again for your help
- Per Yngve Berg
- Joomla! Master
- Posts: 30942
- Joined: Mon Oct 27, 2008 9:27 pm
- Location: Romerike, Norway
Re: Home point to other link after login
Is the Hompages Blogs?
Set the View Level on the Articles for Not Logged in to Guest.
Set Articles for Logged in to Registered.
Use the Default Menu Item and the Articles shown will be replaced after logging in.
Set the View Level on the Articles for Not Logged in to Guest.
Set Articles for Logged in to Registered.
Use the Default Menu Item and the Articles shown will be replaced after logging in.