[SOLVED] How-To: Open in the same webpage when clicking on the image

Permalink Browser Info Environment
Hi,

I really like this addon and many others that you've made.

For now, when the user click on an image of the Cu3er Slideshow, it open a blank page (new window - _blank).
How can it open in the same webpage and not opening a new window?
I tried to find where in the view.php file but I don't find anywhere in it to establish the target.

Suggestion:
It would be great if there was an option that determine how the link url will be displayed (predefined target):

_blank
_self
_parent
_top

Thanks in advance.

Type: Discussion
Status: New
Styves
View Replies:
jb1 replied on at Permalink Reply
jb1
Hi, thanks for the suggestion. I think this question has been answered in another forum poet but I can't seem to find it.

If you try editing the controller.php file and look for the HTML code for building a link, you can remove the "_blank" and that will solve the issue. You will need to re-edit and re-save the block so the XML code is regenerated.

Hope this helps.

JB
Styves replied on at Permalink Reply
Styves
Ok.

I checked twice for the "_blank" in the /cu3er/blocks/cu3er/controller.php/ and I don't find it. Can you tell me which line?
jb1 replied on at Permalink Reply
jb1
I got back to my main computer now and found the line - it's 364 in controller.php.

From:
$xmlSlides .= '<link>' . trim($data['url'][$pos]) . '</link>


to:
$xmlSlides .= '<link target="_self">' . trim($data['url'][$pos]) . '</link>


Hope this helps.

If you like this add-on, please check out our other C5 add-ons at:http://c5extras.com/
Styves replied on at Permalink Reply
Styves
Wow! It works. Thanks a lot.

This is how I did:
For me, I find the code at line 359, make the change and upload it to my server;
I cleared the cache of Concrete5;
Actualize the Cu3er addon;
I also cleared the cache of my browser;
(But it didn't work at this point).

So, I edited the Page where the Cu3er block was,
I edited the Cu3er Block and save everything.
And that's it.

Again... Thanks!
jb1 replied on at Permalink Reply
jb1
No worries, happy to help.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.