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

Your Time: Our Time:

target attribute for link in the Feature Box addon

Featured Lock Resolved Issue
Hello,
I'm looking for the ability to specify target="_blank" in the Feature Box addon (target attribute for link as available in the Button addon)…
That means the possibility to open the link in a new window.
Is there a way to do that?
Thanks
Olivier

16 Answers

Paul Frankowski - Staff

More than a month ago #Permalink
Here is ready addon, with target option.
Unzip and Upload folder here:
templates\shaper_NAME\sppagebuilder\addons\

Attachments (1)

  • feature_unzip.zip 8.7 KB

Paul Frankowski - Staff

More than a month ago #Permalink
Hi, indeed current version of addon doesn't have this option.

but if you know PHP/HTML it's quite easy to add, and override current addon with improved version.

yes, I will ask for official update

Paul Frankowski - Staff

More than a month ago #Permalink
Some tips which may help:
1) First you have to override addon folder (with php files inside)
components\com_sppagebuilder\addons\feature
inside your template folder
templates\shaper_NAME\sppagebuilder\addons\feature

2) Now you can edit admin.php to add choose option



'target' => array(
'type' => 'select',
'title' => JText::_('COM_SPPAGEBUILDER_GLOBAL_LINK_NEWTAB'),
'desc' => JText::_('COM_SPPAGEBUILDER_GLOBAL_LINK_NEWTAB_DESC'),
'values' => array(
'' => JText::_('COM_SPPAGEBUILDER_ADDON_GLOBAL_TARGET_SAME_WINDOW'),
'_blank' => JText::_('COM_SPPAGEBUILDER_ADDON_GLOBAL_TARGET_NEW_WINDOW'),
),
'depends' => array(array('title_url', '!=', '')),
),


and
site.php to display attribute code


$attribs = (isset($this->addon->settings->target) && $this->addon->settings->target) ? ' target="' . $this->addon->settings->target . '"' : '';


and

' . $attribs . '


after

<a href="'. $title_url .'"


line 58, 68, 78, 95

Olivier DELORON

More than a month ago #Permalink
Here is ready addon, with target option.
Unzip and Upload folder here:
templates\shaper_NAME\sppagebuilder\addons\


Great! Thank you very much for your prompt action and solving this issue!
Hi, indeed current version of addon doesn't have this option.

but if you know PHP/HTML it's quite easy to add, and override current addon with improved version.

yes, I will ask for official update


Hello

This is a very useful feature that we would find very handy for a lot of our clients. The ability to open feature box links in new windows/tabs is one that has been desired (at least by us) for sometime.

Any updates to the addon would be greatly appreciated.

Paul Frankowski - Staff

More than a month ago #Permalink
there is ready addon with it. Above.
Thanks Paul, but this was built back in November so I am guessing will be out of date with any other features that have been added to SP pagebuilder.
Is it not going to cause problems adding old code to the latest sp pagebuilder?
Is there no plan to update sp pagebuilder feature box witht he ability to target external sites?
Would updating sp pagebuilder not overwrite this addon if it were added?

Paul Frankowski - Staff

More than a month ago #Permalink
use it until official update in SPPB, the code should be still ok.
Ok SPPB came out and removed the overrides that I had added that did work!!
Can it please be added into the sppagebuilder release as so often you want to link to external sites.

Paul Frankowski - Staff

More than a month ago #Permalink
Sorry, but next time please read SPPB manual before: "How to override addon...
https://www.joomshaper.com/documentation/sp-page-builder/sp-page-builder-3#how-to-tips
Paul Frankowski - Staff
One week ago #Permalink
use it until official update in SPPB, the code should be still ok.


Its not needed if it's added...

Will it be added to sppb or has the decision been made to not add it to the official SPPB

Paul Frankowski - Staff

More than a month ago #Permalink
Personally, I do not decide what would or wouldn't be added, I can only ask.
It will be probably in next update. Use tip from manual if want to live without stress.
Thank you, it would be appreciated if you could ask

Paul Frankowski - Staff

More than a month ago #Permalink
It's on our list to do... already

dolmenhir

More than a month ago #Permalink
It's on our list to do... already

I'm waiting for next release... impatiently. :D


There are no replies made for this post yet.
Be one of the first to reply to this post!

Leaderboard (30 days)

Paul Frankowski

Paul Frankowski

Total Accepted Answers: 146
Sifat

Sifat

Total Accepted Answers: 89
Toufiq

Toufiq

Total Accepted Answers: 49
Kamruzzaman Alam

Kamruzzaman Alam

Total Accepted Answers: 2
RV

RAFFAELE VIOLA

Total Accepted Answers: 1

116

Templates

298912

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