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

#   Separate image from description

##

- **[support@khoza.com](/forum/user/37284-support-khoza-com "View support@khoza.com's Profile")**
- [![support@khoza.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37284-support-khoza-com "View support@khoza.com's Profile") Topic Author
- [ Offline](/forum/user/37284-support-khoza-com)

Less More

- Posts: 4
- Thank you received: 0
-
-

11 years 2 weeks ago [\#216656](#216656) by [support@khoza.com](/forum/user/37284-support-khoza-com "View support@khoza.com's Profile")  *[Separate image from description](/forum/25-install-update/879735-separate-image-from-description#216656 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.5.18 -- Browser(s) name and version -- : chrome -- Error-message(debug-mod must be tuned on) -- : none  Hi,  I am working on the layout for categories. This section of code  echo preg&#95;replace('#.&#42;#is','',$this-&gt;row-&gt;category&#95;description);  Grabs the description, as well as the image uploaded under the 'images and files' box in the product. Is there a way to separate the image and description?  Thanks")* was created by *[support@khoza.com](/forum/user/37284-support-khoza-com "View support@khoza.com's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.4
-- PHP version -- : 5.5.18
-- Browser(s) name and version -- : chrome
-- Error-message(debug-mod must be tuned on) -- : none

Hi,

I am working on the layout for categories. This section of code

echo preg_replace('#&lt;hr *id="system-readmore" */&gt;.*#is','',$this-&gt;row-&gt;category_description);

Grabs the description, as well as the image uploaded under the 'images and files' box in the product. Is there a way to separate the image and description?

Thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI1LWluc3RhbGwtdXBkYXRlLzg3OTczNS1zZXBhcmF0ZS1pbWFnZS1mcm9tLWRlc2NyaXB0aW9uP3RtcGw9bWFya2Rvd24=) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

11 years 2 weeks ago [\#216672](#216672) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Separate image from description](/forum/25-install-update/879735-separate-image-from-description#216672 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.5.18 -- Browser(s) name and version -- : chrome -- Error-message(debug-mod must be tuned on) -- : none  Hi,  I am working on the layout for categories. This section of code  echo preg&#95;replace('#.&#42;#is','',$this-&gt;row-&gt;category&#95;description);  Grabs the description, as well as the image uploaded under the 'images and files' box in the product. Is there a way to separate the image and description?  Thanks")*

Hi,

I don't see how the category description would contain the image of a product.
But even so, the category description doesn't contain the category image, and the product description doesn't contain the product image.
So I don't see what you're trying to do.

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

- **[support@khoza.com](/forum/user/37284-support-khoza-com "View support@khoza.com's Profile")**
- [![support@khoza.com's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/37284-support-khoza-com "View support@khoza.com's Profile") Topic Author
- [ Offline](/forum/user/37284-support-khoza-com)

Less More

- Posts: 4
- Thank you received: 0
-
-

11 years 2 weeks ago -  11 years 2 weeks ago [\#216800](#216800) by [support@khoza.com](/forum/user/37284-support-khoza-com "View support@khoza.com's Profile")  Replied by *[support@khoza.com](/forum/user/37284-support-khoza-com "View support@khoza.com's Profile")* on topic *[Separate image from description](/forum/25-install-update/879735-separate-image-from-description#216800 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.4 -- PHP version -- : 5.5.18 -- Browser(s) name and version -- : chrome -- Error-message(debug-mod must be tuned on) -- : none  Hi,  I am working on the layout for categories. This section of code  echo preg&#95;replace('#.&#42;#is','',$this-&gt;row-&gt;category&#95;description);  Grabs the description, as well as the image uploaded under the 'images and files' box in the product. Is there a way to separate the image and description?  Thanks")*

Argh. I found the issue. There the image was in the description... sorry. Thanks

- [ ![hika.png](/forum/attachment/26965) ](/forum/attachment/26965 "hika.png") [ ](/forum/attachment/26965?download=1 "hika.png")

Last edit: 11 years 2 weeks ago by [support@khoza.com](/forum/user/37284-support-khoza-com "View support@khoza.com's Profile"). Reason: foudn solution

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

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

[](#top)
