aticle redirect to gallery

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

I would make a tempalte for the article galleri and instead of having a the {content} tag I would insert a iframe....

see working example here.
http://www.lokalsport-muenster.de/orbit ... ,0,0,1,0,0

more info here:
http://www.phpwcms.de/forum/viewtopic.p ... ght=iframe
http://www.studmed.dk Portal for doctors and medical students in Denmark
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Re: thanx!!

Post by frold »

playdead wrote:great suggestion frold!
and so simple. i actually use an iframe with gallery for a random image function. it didnt even occur to me while i was wracking my brain.

community in action!! you gotta love it.

peace buddy. :D

monty
Np glad to help... that´s reason Im here...
http://www.studmed.dk Portal for doctors and medical students in Denmark
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

...but if you need the redirect too fill in your redirection URL in article summary section.

If you want to have that link opened in a different target use the redirection like this:

Image


Regards
Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
rp
Posts: 16
Joined: Sun 23. May 2004, 19:12
Location: Zürich, CH

Post by rp »

Hello

I found this topic while I was searching the forum for a solution opening an article redirection in a different window. But "http://www.apple.de_blank" isn't working. It gives me an 404 Error on my Article Page (in the same window...). I'm using the "1.1-RC4 03-06-2004" Version.

Thank you for any help
Romeo
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

rp wrote:Hello

Iut "http://www.apple.de_blank" isn't working. It gives me an 404 Error
Romeo
did you try with a space after _ so it looks like:

http://www.apple.de _blank
http://www.studmed.dk Portal for doctors and medical students in Denmark
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

yes - space is neccessary ;-)
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
rp
Posts: 16
Joined: Sun 23. May 2004, 19:12
Location: Zürich, CH

Post by rp »

Yes, with a space after the URL it's working fine. Thank you.

You have to look very close to See the space in the Screenshot :wink:
mattslk
Posts: 7
Joined: Sat 22. Apr 2006, 03:10

Post by mattslk »

Hey,

I am having a slight problem with the following:
If you want to have that link opened in a different target use the redirection like this:

Image
I created an article with the redirect as shown above and when I click on a link to that article it shows the new window redirect. In the parent page(where I clicked the link for it), however, it goes to the structure's template under which the redirect article is stored.

I need the new pop-up window redirect to show and for the page with the link to it to remain the same.

Any thoughts, ideas, comments? :D
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Do you have more articles under that structure? When not - there is a redirect field under straucture.

The redirect for articles will be enhanced by an additional switch where you can say what should happen on click - at the moment the redirection is processed after opening the article. The idea behind was to have a popup.

But right - for "_blank" sometimes not the best option.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
mattslk
Posts: 7
Joined: Sat 22. Apr 2006, 03:10

Post by mattslk »

Thanks for the response, and yeah unfortunately I have other articles under that structure. Hopefully that enhancement comes soon, until then anyone have a solution?
User avatar
Oliver Georgi
Site Admin
Posts: 9918
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

I think nobody will have a "quick solution" - but here is a tip - in german we would say "Brachialmethode".

- Check the source of the link in Frontend - it should look like "index.php?id=..."
- Create a new PHP file in phpwcms_template/inc_script/frontend_render

myrt.php

Code: Select all

<?php

$content['all'] = str_replace('index.php?id=...', 'http://...', $content['all']);
?>
You can also replace the complete <a href...> tag to have the target attribute setting too.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
Post Reply