Support Forums

Support Online : Mon - Fri / 10am - 6pm (GMT +6)

Your Time: Our Time:

Change View Button for Custom URL

Featured Lock Resolved
Hi

how can i change View Button for Custom URL? (see image red square)

http://dcf.16mb.com/images/customurl.jpg

Thank you

6 Answers

Bhavin

More than a month ago #Permalink
Hi,

I was trying the same solution and got a work around.
comment the line number 95 in modules\mod_spsimpleportfolio\helper.php

// $item->url = JRoute::_('index.php?option=com_spsimpleportfolio&view=item&id='. $item->id . ':' . $item->alias . self::getItemid());


You must enter the URL when creating portfolio item. If you leave it blank. View button will not work.

To open the link in new window, add target="_blank" to all the links in modules\mod_spsimpleportfolio\tmpl\default.php

line 74
<a class="btn-view" target="_blank" href="/<?php echo $item->url; ?>"><?php echo JText::_('MOD_SPSIMPLEPORTFOLIO_VIEW'); ?></a>


Line 79
<a href="/<?php echo $item->url; ?>" target="_blank">


Line 95
<a href="/<?php echo $item->url; ?>" target="_blank">


I hope this helps.

Towfiq Omi

More than a month ago #Permalink
Hi,

What you would like to change?

Text or the design of the button.

Let me know.

Thanks
Towfiq

wbcl

More than a month ago #Permalink
Hi Towfiq

I just want to change the button's function not the design ...
instead of going to the product details I want to insert a custom url - read more and go to the address eg http://www.mysite.com/mycustomurl

The site is under construction, i send PM

Thanks

wbcl

More than a month ago #Permalink
Hello

some help please

I need to urgently place the website online...

I can override the function of the "View" button and instead of going to the description send to a custom url? see the image please

https://preview.ibb.co/fp0Vsm/addurl.jpg

Thank you very much

Paul Frankowski - Staff

More than a month ago #Permalink
Sorry, but this is customization task.


There are no replies made for this post yet.
However, you are not allowed to reply to this post.

Leaderboard (30 days)

Sifat

Sifat

Total Accepted Answers: 146
Paul Frankowski

Paul Frankowski

Total Accepted Answers: 119
Toufiq

Toufiq

Total Accepted Answers: 66
Pavel

Pavel

Total Accepted Answers: 5
Peter Atkin

Peter Atkin

Total Accepted Answers: 2

100+

Templates

200,000+

Community Users

Newsletter

Don’t miss any updates of our new templates and extensions and all the astonishing offers we bring for you.
We never spam

Joomla! ® name is used under a limited license from Open Source Matters in the United States and other countries. JoomShaper.com is not affiliated with or endorsed by Open Source Matters or the Joomla! Project.

Connect Us