Can some one tell the best way to implement a redirect to a specific
template or external page using a tag.
My scenario is the following:
1. User goes to Customer Login page and does the Login.
2. I want to FORCE a redirect in case if logged in User ends up on the
same Customer Login page while already logged in. In practical live
want to redirect to the My Account or something.
Now, I've been checking all tag processors and didn't find any
existing tags...
Do you know any?
If we don't have this now, it's a good idea to add it to
kMainTagProcessor class, I believe.
Cheers.
DA.
we actually have this tag :
<inp2:m_RequireLogin login_template="platform/login/register"/>
if you insert it in the top of "My account" page, then the page will
become a login page if user isn't logged in :-)
It's the kind of modification I've done before because it's really
more practical for users.
Phil.
2010/3/25 Dmitry A. <dand...@gmail.com>:
> To unsubscribe from this group, send email to in-portal-dev+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
>
2010/3/25 Phil ..:: domicilis.biz ::.. <ph...@domicilis.biz>:
can you describe me which type of condition do you talk about:
- the link would work only if this condition is met?
- the link would work anytime and would include an information,
such as logged in or not?
I'd need a clear example at best ^-^
Phil.
2010/3/26 Dmitry Andrejev <dand...@gmail.com>:
2010/3/26 Dmitry Andrejev <dand...@gmail.com>:
1. user is already logged in
- where can user clic on the register link, which appears only
under login box (on advanced theme)?
- if you are using a custom theme, why providing a link to register
in another place than inside the login box or login page?
2. user goes to Registration page and NORMALLY would see the Form,
but I want him to end up on My Account page (or similar) since no
point of seeing Registration when logged in correct?
- as I said before, if the register page doesn't have any direct
link to it (and I called only with the special tag for this purpose),
user cannot see the form otherwise than opening register page in
another browser's tab, and log on the first tab... but why doing so?
- why not using the tag <inp2:m_if check="m_LoggedIn"> in the
register page? if you place an include for my account content into the
ELSE part of the tag, it'd do the same. ok It's an IF, but all
in-portal is made of IF tags :)
I totally understand your question, but what would be the difference
between <inp2:m_if check="m_LoggedIn"> tag and the new one you'd like?
Also, pages which automatically redirect is worst than IF, as it rely
on a perfect working redirection, why this redirection would work more
safely than the IF tag? ^-^
Phil.
2010/3/26 Dmitry Andrejev <dand...@gmail.com>:
> Phil,
> Again it's NOT just about user being logged in or non-logged in - there is
> many more cases I can use this tag, but you asked for very specific
> scenario, here it comes:
> 1. user is already logged in
> 2. user goes to Registration page and NORMALLY would see the Form, but I
And yes, I never came accros this, I'd be pleased to know ins and outs
to understand better :)
2010/3/26 Alexander Obuhovich <aik....@gmail.com>:
DA
To unsubscribe from this group, send email to in-portal-dev+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
DA
On Mar 30, 7:06 am, Alexander Obuhovich <aik.b...@gmail.com> wrote:
> I've attached patch from my previous post tohttp://tracker.in-portal.org/view.php?id=626task, since it is better fix to
> it.
>
> On Tue, Mar 30, 2010 at 3:04 PM, Dmitry Andrejev <dandre...@gmail.com>wrote:
>
>
>
>
>
> > Thanks Alex, will review and update my code
>
> > DA
>
> > On Tuesday, March 30, 2010, Alexander Obuhovich <aik.b...@gmail.com>
> > wrote:
> > > I've unified m_Link and m_T tags in proposed patch and centrally moved
> > "admin"/"editing_mode" parameters processing to "HREF" method itself.
>
> > > So after applying this patch you can copy body of "m_T" tag into
> > "m_Redirect" tag and just call kApplication::Redirect method at the bottom
> > instead of kApplication::HREF.
>
> > > On Mon, Mar 29, 2010 at 11:43 PM, Dmitry Andrejev <dandre...@gmail.com>