Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Shorter Category Descriptions?

Shorter Category Descriptions?

Locked

Views: 937

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
6 Jan 2008, 7:18 AM
#1
chris_parker avatar

chris_parker

New Zenner

Join Date:
Dec 2007
Posts:
53
Plugin Contributions:
0

Shorter Category Descriptions?

Hi Everyone,
After some initial feedback from friends on how my Zencart is developing, the main suggestion has been to shorten the initial category descriptions on each category page by adding a "Read More..." link after the first couple of sentences.

I was wondering if this is already available as a setting or mod, or if I will have to use Dreamweaver Spry widgets in order to get this effect?

Just to be clear, I'd like the category descriptions to read as follows...

"Lorem ipsum dolor sit amet, consectetur...read more."

rather than

"Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."

Many thanks for any advice you can offer.

6 Jan 2008, 12:31 PM
#2
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Shorter Category Descriptions?

There is no built in support for this, so you would need to add your own javascript, SPRY or otherwise. You may find it helpful to read the file in your docs folder about adding javascript to Zen Cart. There's a built in structure/naming convention to help with this.

6 Jan 2008, 3:11 PM
#3
chris_parker avatar

chris_parker

New Zenner

Join Date:
Dec 2007
Posts:
53
Plugin Contributions:
0

Re: Shorter Category Descriptions?

kuroi:

There is no built in support for this, so you would need to add your own javascript, SPRY or otherwise. You may find it helpful to read the file in your docs folder about adding javascript to Zen Cart. There's a built in structure/naming convention to help with this.

Many thanks for your reply Kuroi. I have read the files in my docs folder now, and installed my spry Javascript into my templates/jscript folder.

It seems to have done the trick (although it has interfered with my imagehandler pop-ups).

I will see what they can help me with in the image handler thread.

:smile:

6 Jan 2008, 3:21 PM
#4
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: Shorter Category Descriptions?

I can probably short cut the Image Handler issue for you ...

You have probably installed the image handler javascript in your template_default/jscript folder. When you put stuff in a MY_TEMPLATE/jscript folder, Zen Cart stops looking at the template_default equivalent. So sorting your problem will hopefully require no more than putting a second copy into (or moving it to) your template's jscript folder.

6 Jan 2008, 4:05 PM
#5
chris_parker avatar

chris_parker

New Zenner

Join Date:
Dec 2007
Posts:
53
Plugin Contributions:
0

Re: Shorter Category Descriptions?

kuroi:

I can probably short cut the Image Handler issue for you ...

You have probably installed the image handler javascript in your template_default/jscript folder. When you put stuff in a MY_TEMPLATE/jscript folder, Zen Cart stops looking at the template_default equivalent. So sorting your problem will hopefully require no more than putting a second copy into (or moving it to) your template's jscript folder.

:blush::oops:

Yes, you are correct Kuroi, that solved it.

Thanks again.