Forums / General / new to ez publish

new to ez publish

Author Message

Eride Anton

Saturday 24 April 2004 10:18:35 pm

im trying to do a few things that i cant find documentation on
1: rollover buttons - how do i do them can i get a sample code of a mouseover

2: i would like to make a page where i can add information randomaly, kinda like just a plain html page, but insert it into my main content area, do i have to make a specific template to do this, or can i just modify a template, and do i have to modify the admin template?

3: im making a specials area, and i want to have a brief description of each special, then i want to have a main text, some content, then an image next to each one, which template should i use?

Eride Anton

Saturday 24 April 2004 10:22:40 pm

ahh and i forgot this may help, on the product page it says, cord, then it lists the products, how can i make the description of cord appear under the main text, is there a template code? and is there a way i could put an image or a logo for the category such as cord next to it rather than each product?

Alex Jones

Monday 26 April 2004 7:07:49 am

1. The rollovers are simple enough to do as eZ publish can output your links in whatever format you want. As there are a ton of different ways to create rollovers, and this isn't a JavaScript forum I will assume you already have your JS set up, or will find some on a JavaScript or CSS forum. On the eZ publish side I would recommend that you look at the standard templates as they show how to output the links. You can then plug your rollover code into those templates. So for example, you might have the following bit of code in your eZ publish template:

<a href={concat("content/view/full/",$:item.node_id,"/")|ezurl} onmouseover="Rollover Code">{$:item.name|wash}</a>

2. Check out the Shuffle Operator under the Contributions area. I have found it to be extremely useful.
http://ez.no/community/contributions/template_plugins/random_sort_array_or_fetch_shuffle_operator

3. Does the special consist of separate products that happened to be grouped together? If so, I would recommend you set each product up using the Product class and place them into a folder. The Product class automatically provides the content and image fields for each product, and the folder will provide you the main text to talk about the special. You could also ddo this with an Object Relations List should you wish. A little more information on what you want to do with the special will allow us to provide a better recommendation. If you go with a product/folder combination it is likely that you will want to create override templates based either on the <i>Class</i>, or the <i>Node ID</i> of the folder. Check out the Override documentation for more info: http://ez.no/ez_publish/documentation/customization/custom_design/override_templates

Alex

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>