• twitter image
  • facebook image
  • youtube image
  • linkedin image
Language: CMS Made Simple Czech CMS Made Simple France CMS Made Simple Hungary CMS Made Simple Russia CMS Made Simple Netherlands

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: redirect_url oder redirect_page mit _target erweitern?
PostPosted: Mon Jun 30, 2014 4:53 pm 
Offline
New Member
New Member

Joined: Mon Jun 30, 2014 4:37 pm
Posts: 3
Hallo zusammen, ich führe einen externen Code aus als iframe in einer Content-Page. Abhängig vom Ergebnis des externen Codes, route ich dann auf eine interne Content-Page (erfolgreich/erfolglos). Das Routen (redirect_url bzw. redirect_page) gelingt mir zwar, aber dann erscheint die geroutete Page (inkl. Menü) in dem iframe.

Was ich gerne haben würde, ist ein Routing mit target-Angabe, so wie es beim Link ist (cms_selflink mit der Option target).

Hat jemand eine Idee? Könnte man redirect_url/redirect_page erweitern mit Hilfe eines udt's?

Danke im Voraus


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: redirect_url oder redirect_page mit _target erweitern?
PostPosted: Mon Jun 30, 2014 8:59 pm 
Offline
Dev Team Member
Dev Team Member

Joined: Tue Nov 21, 2006 5:05 pm
Posts: 731
Location: OH, USA
Try adding &template=false to your URL in the redirect and then you will not get the template, only the content.

_________________
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: redirect_url oder redirect_page mit _target erweitern?
PostPosted: Sun Jul 06, 2014 11:14 am 
Offline
Power Poster
Power Poster
User avatar

Joined: Tue Aug 12, 2008 9:30 pm
Posts: 2071
Location: Feldkirchen in Kärnten, Austria
Wenn "target" nicht funktioniert, dann fehlt dir vermutlich die entsprechende abfrage in MenuManager Template welches du für verwendest.
Sprich beim link tag brauchst du noch folgende abfrage:

Quote:
<a href="{$node->url}"{if $node->target != ''} target="{$node->target}"{/if} title="{if $node->titleattribute != ''}{$node->titleattribute}{else}{$node->menutext}{/if}">{$node->menutext}</a>

_________________
CMSMS Blog - I do this!
Forge profile
Github profile
Twitter
=============================================
Support CMSMS


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: redirect_url oder redirect_page mit _target erweitern?
PostPosted: Sun Jul 13, 2014 10:28 am 
Offline
New Member
New Member

Joined: Mon Jun 30, 2014 4:37 pm
Posts: 3
Thank you JohnnyB/uniqu3.

It seems that my question was not clear enough.

I have one page with the payment-tunnel as iframe.

I have three pages to treat my payment result:
a) payment_result (called by payment provider with parameter payment_result=1, if payment succeeded)

b) payment_success
c) payment_error


On my payment result page there is the following source:
Code:
{if {$smarty.get.payment_result}==1} {redirect_page page='payrexx_success'} {/if}


The result page routes correctly, but since the payment-tunnel is an iframe, I get the whole site inside the iframe. I would like to see my payment_success without template (@johnnyB: how can I do it) or just being able to route there with target="_top" or smth similar...

I tried also to put the option Target (=_top) of my payment_success page, but that was not helpful...

I would appreciate your answer...


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
 Post subject: Re: redirect_url oder redirect_page mit _target erweitern?
PostPosted: Mon Jul 14, 2014 1:09 pm 
Offline
Dev Team Member
Dev Team Member

Joined: Tue Nov 21, 2006 5:05 pm
Posts: 731
Location: OH, USA
If you land in an iframe, maybe you need an "iframe buster"

A little bit of JS to redirect or reload the page outside of the iframe.
But, I don't think I fully understand the question.

_________________
"The art of life lies in a constant readjustment to our surroundings." -Okakura Kakuzo

--
LinkedIn profile
--
I only speak/write in English so I may not translate well on International posts.
--


Top
  Profile  
 
Share On:
Share on Facebook Share on Twitter Share on Google+
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
A2 Hosting