|
Previous
·
Next
|
bepo
|
Date: 7/28/2008 8:36 am · Subject: Internal Redirect · Rating: 0
Hi, it's me again ... fighting with WebGUI. 
New week - new problem - new question.
I want to do the following: I have a special page on the site that is only permitted to see and use for registered users. That special page is a subpage from a pagelayout (Access) with content. I want to have it that the user when he logs in will be immediately redirected to that special subpage. All the others, unregistered users, shall stay on the page "Access".
Here the structure of the Navigation, we have...
Overview About Access | |__ Search Tool | |__ Condition
I want the user, who has logged in, redirect to "Search Tool". The visitor or unregistered user (by the way, is there any difference between "visitor" and "unregistered user"?) shall stay on the "Access" page.
Is there any possibility to include the redirect assett into the internal structure or is only for external links?
Thanks for help.
--- (Edited on 7/28/2008 15:36 [GMT+0200] by bepo) ---
|
| Back to Top |
Rate [ | ]
|
| |
bartjol
|
Date: 7/28/2008 9:18 am · Subject: Re: Internal Redirect · Rating: 0
Hi,
nice problem :)
you can place a link around the submit button in your login template (or the submit button in a login macro template) like this:
<a href="url of Search Tool"><tmpl_var submit_button></a>
the tmpl variable name is probably not correct, but you are smart enough to work that out :)
I hope this works, haven't tested it myself, but did something similar lately that did work.
--- (Edited on 7/28/2008 4:18 pm [GMT+0200] by bartjol) ---
|
| Back to Top |
Rate [ | ]
|
| |
bepo
|
Date: 7/31/2008 2:56 am · Subject: Re: Internal Redirect · Rating: 0
I just came to work and found your answer. Thanks for that in advance. I will try it. But is there no easier way? I mean, as a not registered user I will be redirected to the login-template. Can't I just change it so I will be redirected to "Search tool"? Or the other way around. I link everything already to "search tool" and everyone who is not logged in (so a registered user) will be redirected one step up to the "Access" page?
It can't be that difficult, can it?
--- (Edited on 7/31/2008 09:56 [GMT+0200] by bepo) ---
|
| Back to Top |
Rate [ | ]
|
| |
rogier
|
Date: 7/31/2008 6:30 am · Subject: Re: Internal Redirect · Rating: 0
What is on the access page? Is it a loginform or does it have content on it?
Rogier | United Knowledge
www.unitedknowledge.nl · www.webgui-help.nl
--- (Edited on 31-07-2008 1:30 pm [GMT+0200] by rogier) ---
|
| Back to Top |
Rate [ | ]
|
| |
bepo
|
Date: 7/31/2008 6:52 am · Subject: Re: Internal Redirect · Rating: 0
The "Access" is a pagelayout with two articles. There is for example a text about how using the search tool and what the interested user has to do to become a registered user to use it.
It is not the loginform.
--- (Edited on 7/31/2008 13:52 [GMT+0200] by bepo) ---
|
| Back to Top |
Rate [ | ]
|
| |
rogier
|
Date: 7/31/2008 7:49 am · Subject: Re: Internal Redirect · Rating: 0
Yeah this is a tough one. You could consider putting the articles from the access page and the stuff from the search page on the same page. The search bit you can hide from visitors with the security settings, the articles you can hide from registered users with the grouptext macro.
It would be one page, so you would have one menu title as well.
It's not exactly what you wanted, but I can't think of anything else right now. Good luck!
(Btw, you question about visitors and non registered users is answered here.)
Rogier | United Knowledge
www.unitedknowledge.nl · www.webgui-help.nl
--- (Edited on 31-07-2008 2:54 pm [GMT+0200] by rogier) ---
|
| Back to Top |
Rate [ | ]
|
| |
rogier
|
Date: 7/31/2008 8:13 am · Subject: Re: Internal Redirect · Rating: 0
Strike the above, it seems you can use the grouptext macro in the "Redirect URL" field of the redirect. I'm not sure if it is meant to be used in this way. Your site may explode, use at own risk.
But it works.
Rogier | United Knowledge
www.unitedknowledge.nl · www.webgui-help.nl
--- (Edited on 31-07-2008 3:13 pm [GMT+0200] by rogier) ---
|
| Back to Top |
Rate [ | ]
|
| |
bepo
|
Date: 8/1/2008 5:27 am · Subject: Re: Internal Redirect · Rating: 0
I already tried to use the "Redirect" Assett. But it doesn't redirect it to the wished page. Have a help what I should do, so it works?
If you need more information to give an appropriate answer, please ask.
--- (Edited on 8/1/2008 12:27 [GMT+0200] by bepo) ---
|
| Back to Top |
Rate [ | ]
|
| |
rogier
|
Date: 8/1/2008 7:13 am · Subject: Re: Internal Redirect · Rating: 0
Ok, here goes:
- Go to the parent page of the Access page (your homepage I think?)
- Place a redirect with settings: "hide from nav" = no, "menutitle" = Access
- And put this in the field "redirect URL": /\GroupText("Visitors","/accessurl","/searchurl"); (*)
- The /accesurl is the url of the access page, and the /searchurl is the url of the search page - don't forget the slashes!
- Cut the search tool page and condition page, after that also cut the access page
- Go to the redirect in the asset manager (not the page where the red. is on but the actual redirect) and paste all these pages as children of the redirect.
- Edit the access page, set "hide from navigation" = yes.
- Just to be sure: check if the urls of the search tool and access pages are the same as the two urls in the GroupText macro.
Now your page structure should be:
- overview
- about
- access (=the redirect)
- access (=the real access page, but hidden from nav)
- search tool
- condition
The GroupText macro in the redirect should generate the url to the access page for visitors and the url to the search tool for everyone else. Your navigation will appear the same as before.
(*) the /\ is actually a caret (as usual in macro's)
I hope this is clear. If not, let me know. Good luck.
Rogier | United Knowledge
www.unitedknowledge.nl · www.webgui-help.nl
--- (Edited on 01-08-2008 2:13 pm [GMT+0200] by rogier) ---
--- (Edited on 01-08-2008 2:16 pm [GMT+0200] by rogier) ---
|
| Back to Top |
Rate [ | ]
|
| |
bepo
|
Date: 11/6/2008 8:03 am · Subject: Re: Internal Redirect · Rating: 0
Thanks for the help first. I did the redirect and it works so far. Only thing, I am logged in but I am not redirected to the searchtool immediately, I still be hold on the access page. The URLs are correct in the GroupText. What could be wrong?
--- (Edited on 11/6/2008 15:03 [GMT+0100] by bepo) ---
|
| Back to Top |
Rate [ | ]
|
| |
|
|
Recent Discussions Color Key |
| Design: |
|
| Development: |
|
| Et Cetera: |
|
| Install/Upgrade: |
|
| Smoketest: |
|
| Template Group: |
|
Re: Site paid for by advertizing by Klaus - Fri @ 02:27am Re: Site paid for by advertizing by pwrightson - Thu @ 10:59am Re: Site paid for by advertizing by JT - Thu @ 08:58am Re: Regelmäßiger Termin für Usertreffen in der Rhein-Neckar-Region by Klaus - Thu @ 06:11am Re: Site paid for by advertizing by knowmad - Wed @ 08:07pm
|