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

#   Questions about the image popup selector

##

- **[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")**
- [![PeterChain's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar570.png)](/forum/user/570-peterchain "View PeterChain's Profile") Topic Author
- [ Offline](/forum/user/570-peterchain)

Less More

- Posts: 640
- Thank you received: 16
-
-

7 years 3 weeks ago [\#312162](#312162) by [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")  *[Questions about the image popup selector](/forum/31-development/898513-questions-about-the-image-popup-selector#312162 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.12  Hi,  First of all, this thread comes from here:    www.hikashop.com/forum/23-market-how-to/...-popup-selector.html  Jerome has recommended me to post it here to get more help.  -----  We need to duplicate the function shown in the attachment to show paths instead of images and insert it into an external input field.  The input field is connected to a custom field of Hikashop (text type) and we need to save the selected server path into this field.  We have some questions regarding this customization:  1. How to call that popup iframe (as shown in the attachment) from a custom button / link.  2. How to change the root position of the tree to show the root of the server  3. How to insert the value selected in the iframe to the custom field  Can you help us with that?  Thanks in advance.  -- Victor")* was created by *[PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")*

-- HikaShop version -- : 4.2.2
-- Joomla version -- : 3.9.12

Hi,

First of all, this thread comes from here:

[ www.hikashop.com/forum/23-market-how-to/...-popup-selector.html](https://www.hikashop.com/forum/23-market-how-to/898484-questions-about-the-image-popup-selector.html)

Jerome has recommended me to post it here to get more help.

---

We need to duplicate the function shown in the attachment to show paths instead of images and insert it into an external input field.

[ ![popup&#95;selector&#95;2019-10-17.png](/forum/attachment/47958) ](/forum/attachment/47958 "...2019-10-17.png")

The input field is connected to a custom field of Hikashop (text type) and we need to save the selected server path into this field.

We have some questions regarding this customization:

1. How to call that popup iframe (as shown in the attachment) from a custom button / link.

2. How to change the root position of the tree to show the root of the server

3. How to insert the value selected in the iframe to the custom field

Can you help us with that?

Thanks in advance.

--
Victor

- [ ![popup&#95;selector&#95;2019-10-17.png](/forum/attachment/47958) ](/forum/attachment/47958 "...2019-10-17.png") [ ](/forum/attachment/47958?download=1 "...2019-10-17.png")

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86541
- Thank you received: 14304
-
-

7 years 3 weeks ago [\#312164](#312164) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Questions about the image popup selector](/forum/31-development/898513-questions-about-the-image-popup-selector#312164 "-- HikaShop version -- : 4.2.2 -- Joomla version -- : 3.9.12  Hi,  First of all, this thread comes from here:    www.hikashop.com/forum/23-market-how-to/...-popup-selector.html  Jerome has recommended me to post it here to get more help.  -----  We need to duplicate the function shown in the attachment to show paths instead of images and insert it into an external input field.  The input field is connected to a custom field of Hikashop (text type) and we need to save the selected server path into this field.  We have some questions regarding this customization:  1. How to call that popup iframe (as shown in the attachment) from a custom button / link.  2. How to change the root position of the tree to show the root of the server  3. How to insert the value selected in the iframe to the custom field  Can you help us with that?  Thanks in advance.  -- Victor")*

Hi,

1. That is easy. Just look at the HTML of the popup and you'll get the "source" attribute of the iframe tag.
If you call that same URL, you'll get the interface. And to have it into a popup there are many ways to do it in Joomla:
[ stackoverflow.com/questions/13023602/pop-up-in-joomla](https://stackoverflow.com/questions/13023602/pop-up-in-joomla)
[ quantumwarp.com/kb/articles/30-joomla/60...3rd-party-extensions](https://quantumwarp.com/kb/articles/30-joomla/606-joomla-modal-boxes-inbuilt-and-3rd-party-extensions)

2. There is no option for that. You could add an extra parameter to the URL of point 1 and then modify the galleryimage function of administrator/components/com_hikashop/views/upload/view.html.php to change the root based on that parameter.

3. You can redefine window.hikashop.submitFct(images) in a view override of the product edition page as this will be the callback function of the image popup selector. In it, you can get the selected path(s) in the variable images and store that in your custom field input with a bit of javascript.

The following user(s) said Thank You: [PeterChain](/forum/user/570-peterchain "View PeterChain's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMxLWRldmVsb3BtZW50Lzg5ODUxMy1xdWVzdGlvbnMtYWJvdXQtdGhlLWltYWdlLXBvcHVwLXNlbGVjdG9yP3RtcGw9bWFya2Rvd24=) 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.041 seconds

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