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

#   Read more option for category list

##

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

Less More

- Posts: 78
- Thank you received: 0
-
-

15 years 8 months ago [\#9412](#9412) by [jasonm](/forum/user/712-jasonm "View jasonm's Profile")  *[Read more option for category list](/forum/4-how-to/9412-read-more-option-for-category-list#9412 "Using title and description option for displaying products and categories and using the readmore break to hide information after the first few lines.  For products this works fine but we have just tried to do the same with the category descriptions and the full description is displayed in the menu.  As best as I can makeout the read more option is controlled within the file SHOW of the view PRODUCT but the CATEGORY view does not have a SHOW file, is there a way to do this?")* was created by *[jasonm](/forum/user/712-jasonm "View jasonm's Profile")*

Using title and description option for displaying products and categories and using the readmore break to hide information after the first few lines.

For products this works fine but we have just tried to do the same with the category descriptions and the full description is displayed in the menu.

As best as I can makeout the read more option is controlled within the file SHOW of the view PRODUCT but the CATEGORY view does not have a SHOW file, is there a way to do this?

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

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 8 months ago [\#9426](#9426) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Read more option for category list](/forum/4-how-to/9412-read-more-option-for-category-list#9426 "Using title and description option for displaying products and categories and using the readmore break to hide information after the first few lines.  For products this works fine but we have just tried to do the same with the category descriptions and the full description is displayed in the menu.  As best as I can makeout the read more option is controlled within the file SHOW of the view PRODUCT but the CATEGORY view does not have a SHOW file, is there a way to do this?")*

Indeed, there is no support for the "read more" function on categories description. You will have to go to the menu Display-&gt;Views to add it:
First, edit the file listing_img_desc of the view category and change the line:
echo $this-&gt;row-&gt;category_description;
to:
echo preg_replace('#&lt;hr *id="system-readmore" */&gt;.*#is','',$this-&gt;row-&gt;category_description);

Second edit the file listing of both product and category views and change the line:
echo JHTML::_('content.prepare',$this-&gt;element-&gt;category_description);
to:
echo JHTML::_('content.prepare',preg_replace('#&lt;hr *id="system-readmore" */&gt;#i','',$this-&gt;element-&gt;category_description));

Then, you will be able to use the read more tag &lt;hr id="system-readmore" /&gt; in your categories description so that only the part before is shown on the listing of categories with the item box layout to "image and description" while the full category description will be displayed on listing products and categories where the "show description" option is toggled on.

Please let us know how it goes and we will add that function to next release of HikaShop.

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

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

Less More

- Posts: 78
- Thank you received: 0
-
-

15 years 8 months ago [\#9513](#9513) by [jasonm](/forum/user/712-jasonm "View jasonm's Profile")  Replied by *[jasonm](/forum/user/712-jasonm "View jasonm's Profile")* on topic *[Re: Read more option for category list](/forum/4-how-to/9412-read-more-option-for-category-list#9513 "Using title and description option for displaying products and categories and using the readmore break to hide information after the first few lines.  For products this works fine but we have just tried to do the same with the category descriptions and the full description is displayed in the menu.  As best as I can makeout the read more option is controlled within the file SHOW of the view PRODUCT but the CATEGORY view does not have a SHOW file, is there a way to do this?")*

Tried it from the email sent by the forums but the emails dont contain some of the code. When I realised that and inserted the code directly from the forum, thats done the trick. I'm not sure whether you can customise the forum emails to warn people not to take code from the email?

On the wider topic of views, we are now working on a second site and have brought across some of the views and the language file from our first which was started at rev 1.4.3. When we do an update and the customisations are kept, is it the whole customised file that is kept. If so we could be missing out on fixes and updates like this anywhere we have made a small adjustment.

Also as a feature request, is it possible via the 'remove customisation' to track multiple versions, ie rather than having either the current version or the default version by removing any customisations, to add the option of reverting to a version from a week ago?

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

Less More

- Posts: 86561
- Thank you received: 14307
-
-

15 years 8 months ago [\#9515](#9515) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: Read more option for category list](/forum/4-how-to/9412-read-more-option-for-category-list#9515 "Using title and description option for displaying products and categories and using the readmore break to hide information after the first few lines.  For products this works fine but we have just tried to do the same with the category descriptions and the full description is displayed in the menu.  As best as I can makeout the read more option is controlled within the file SHOW of the view PRODUCT but the CATEGORY view does not have a SHOW file, is there a way to do this?")*

- The emails are generated by Kunena... We didn't look too much into it. I suppose that if I had used the [ code ][ /code ] tags it might have been better in the email...

- For language files, you need to put your modifications in the override zone. That way, you can update the language files without loosing your modifications. For the views, indeed, the whole customized file is kept so you might not be able to use new functionalities or get bugs (when we change something, we try to not break stuff for people who might have customized the views and so far, the problems were quite limited).

- It's not possible at the moment but that could be something we could add in the future.

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