[Skip to main content](#vessel-content)

#   target="\_blank" for custom fields of type 'Link'?

##

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile") Topic Author
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

12 years 5 months ago [\#157623](#157623) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  *[target="\_blank" for custom fields of type 'Link'?](/forum/50-feature-request/868538-target-blank-for-custom-fields-of-type-link#157623 "Hi,  Nothing big, and less of a request for a new feature than rather for a tiny little improvement:  Custom fields of the type 'Link' are in probably 99.9% of all cases used for external links. So, IMHO they should have the attribute target=&quot;&#95;blank&quot; by default. Otherwise customers are leaving our sites, and who knows if and when they come back.  I've just inserted the attribute in my administrator/components/com&#95;hikashop/classes/field.php on line 1594 (as of HS 2.3.1), and have now one more file to babysit on next update. Others might have greater difficulties than me finding this manual tweak. However, I bet no one has a problem with such link opening in a new window/tab even if it's an internal one... much better than potential customers leaving the product page and forgetting about the browser's back button...  Or is there a specific reason why you didn't include the attribute in the first place? After all, I saw that numerous other &quot;link-ish&quot; fields have it, only the &quot;real link&quot; doesn't.  Warning: If you do it, adding it to the changelog will take you more time than doing the actual tweak in the file, hahaha. Anyway, thanks for consideration!")* was created by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")*

Hi,

Nothing big, and less of a request for a new feature than rather for a tiny little improvement:

Custom fields of the type 'Link' are in probably 99.9% of all cases used for external links. So, IMHO they should have the attribute target="_blank" by default. Otherwise customers are leaving our sites, and who knows if and when they come back.

I've just inserted the attribute in my administrator/components/com_hikashop/classes/field.php on line 1594 (as of HS 2.3.1), and have now one more file to babysit on next update. Others might have greater difficulties than me finding this manual tweak. However, I bet no one has a problem with such link opening in a new window/tab even if it's an internal one... much better than potential customers leaving the product page and forgetting about the browser's back button...

Or is there a specific reason why you didn't include the attribute in the first place? After all, I saw that numerous other "link-ish" fields have it, only the "real link" doesn't.

Warning: If you do it, adding it to the changelog will take you more time than doing the actual tweak in the file, hahaha. Anyway, thanks for consideration!

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84Njg1MzgtdGFyZ2V0LWJsYW5rLWZvci1jdXN0b20tZmllbGRzLW9mLXR5cGUtbGluaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 5 months ago [\#157668](#157668) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[target="\_blank" for custom fields of type 'Link'?](/forum/50-feature-request/868538-target-blank-for-custom-fields-of-type-link#157668 "Hi,  Nothing big, and less of a request for a new feature than rather for a tiny little improvement:  Custom fields of the type 'Link' are in probably 99.9% of all cases used for external links. So, IMHO they should have the attribute target=&quot;&#95;blank&quot; by default. Otherwise customers are leaving our sites, and who knows if and when they come back.  I've just inserted the attribute in my administrator/components/com&#95;hikashop/classes/field.php on line 1594 (as of HS 2.3.1), and have now one more file to babysit on next update. Others might have greater difficulties than me finding this manual tweak. However, I bet no one has a problem with such link opening in a new window/tab even if it's an internal one... much better than potential customers leaving the product page and forgetting about the browser's back button...  Or is there a specific reason why you didn't include the attribute in the first place? After all, I saw that numerous other &quot;link-ish&quot; fields have it, only the &quot;real link&quot; doesn't.  Warning: If you do it, adding it to the changelog will take you more time than doing the actual tweak in the file, hahaha. Anyway, thanks for consideration!")*

Hi,

Thanks for the suggestion, as it is not in 100% of the cases, we will add an option for that. ![;)](/media/kunena/emoticons/24.png ";)")
It will be easiest for everybody ![:)](/media/kunena/emoticons/3.png ":)")

The following user(s) said Thank You: [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84Njg1MzgtdGFyZ2V0LWJsYW5rLWZvci1jdXN0b20tZmllbGRzLW9mLXR5cGUtbGluaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")**
- [![lousyfool's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar28604.jpg)](/forum/user/28604-lousyfool "View lousyfool's Profile") Topic Author
- [ Offline](/forum/user/28604-lousyfool)

Less More

- Posts: 2143
- Thank you received: 746
-
- [](http://www.inphase.one)
-

12 years 5 months ago [\#157696](#157696) by [lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")  Replied by *[lousyfool](/forum/user/28604-lousyfool "View lousyfool's Profile")* on topic *[target="\_blank" for custom fields of type 'Link'?](/forum/50-feature-request/868538-target-blank-for-custom-fields-of-type-link#157696 "Hi,  Nothing big, and less of a request for a new feature than rather for a tiny little improvement:  Custom fields of the type 'Link' are in probably 99.9% of all cases used for external links. So, IMHO they should have the attribute target=&quot;&#95;blank&quot; by default. Otherwise customers are leaving our sites, and who knows if and when they come back.  I've just inserted the attribute in my administrator/components/com&#95;hikashop/classes/field.php on line 1594 (as of HS 2.3.1), and have now one more file to babysit on next update. Others might have greater difficulties than me finding this manual tweak. However, I bet no one has a problem with such link opening in a new window/tab even if it's an internal one... much better than potential customers leaving the product page and forgetting about the browser's back button...  Or is there a specific reason why you didn't include the attribute in the first place? After all, I saw that numerous other &quot;link-ish&quot; fields have it, only the &quot;real link&quot; doesn't.  Warning: If you do it, adding it to the changelog will take you more time than doing the actual tweak in the file, hahaha. Anyway, thanks for consideration!")*

> Xavier wrote: ... we will add an option for that. ![;)](/media/kunena/emoticons/24.png ";)")

Wow. Cool. Almost an overdose of luxury for that little thing... :lol:

---

Need help with customisations of layouts, style or other site development? [ PM me!](/component/uddeim/?task=new)
(Don't forget to turn on [ "E-mail notification of new messages"](/component/uddeim/?task=settings))

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84Njg1MzgtdGFyZ2V0LWJsYW5rLWZvci1jdXN0b20tZmllbGRzLW9mLXR5cGUtbGluaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

12 years 5 months ago [\#157727](#157727) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[target="\_blank" for custom fields of type 'Link'?](/forum/50-feature-request/868538-target-blank-for-custom-fields-of-type-link#157727 "Hi,  Nothing big, and less of a request for a new feature than rather for a tiny little improvement:  Custom fields of the type 'Link' are in probably 99.9% of all cases used for external links. So, IMHO they should have the attribute target=&quot;&#95;blank&quot; by default. Otherwise customers are leaving our sites, and who knows if and when they come back.  I've just inserted the attribute in my administrator/components/com&#95;hikashop/classes/field.php on line 1594 (as of HS 2.3.1), and have now one more file to babysit on next update. Others might have greater difficulties than me finding this manual tweak. However, I bet no one has a problem with such link opening in a new window/tab even if it's an internal one... much better than potential customers leaving the product page and forgetting about the browser's back button...  Or is there a specific reason why you didn't include the attribute in the first place? After all, I saw that numerous other &quot;link-ish&quot; fields have it, only the &quot;real link&quot; doesn't.  Warning: If you do it, adding it to the changelog will take you more time than doing the actual tweak in the file, hahaha. Anyway, thanks for consideration!")*

As all the HikaShop users are not able to find and edit a core file for their needs like you, we prefer add a little option than having recurrent questions, especially when the modification needs to be made in a core file. ![:)](/media/kunena/emoticons/3.png ":)")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC84Njg1MzgtdGFyZ2V0LWJsYW5rLWZvci1jdXN0b20tZmllbGRzLW9mLXR5cGUtbGluaz90bXBsPW1hcmtkb3du) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop Install &amp; Update Product &amp; Category Display Content Creation Sales and Orders Orders management Reports &amp; Statistics Customers Checkout Payment Methods Shipping Methods Import &amp; Export (CSV, XLS…) Specific Features Affilation Taxes Wishlist Vote Carousel &amp; Slider Mass Actions Filters &amp; Search Discount &amp; Coupon Feature Request Integrations Showcase General Talk about HikaShop Development HikaShop 3.0 Beta Translation Commercial Jobs HikaShop Components HikaMarket Market: Feature requests Market: How to? Market: Bug Report HikaSerial General talk about HikaSerial Serial: Bug Report Serial: How to? Support en Français de HikaSerial (French Support) HikaSubscription HikaAuction Auction: Feature requests Auction: How to? Auction: Bug report Hikashop around the world Support en Français (French Support) Russian FAQ. Курс выживания с Hikashop. Частые вопросы и о Расширения Hikashop Наши сайты на Hikashop 日本語版サポート(Japanese Support) Thai German Archives Bug Report How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.048 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)
