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>

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 30 2025 19:21:20
Script start
Timing: Jan 30 2025 19:21:20
Module start 'layout'
Timing: Jan 30 2025 19:21:20
Module start 'content'
Timing: Jan 30 2025 19:21:21
Module end 'content'
Timing: Jan 30 2025 19:21:21
Script end

Main resources:

Total runtime1.2950 sec
Peak memory usage8,192.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 588.0078151.1953
Module start 'layout' 0.00620.0035 739.2031220.6563
Module start 'content' 0.00971.2845 959.85944,441.0313
Module end 'content' 1.29420.0008 5,400.890611.8750
Script end 1.2950  5,412.7656 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00370.2845160.0002
Check MTime0.00130.1004160.0001
Mysql Total
Database connection0.00060.050110.0006
Mysqli_queries1.212993.6610570.0213
Looping result0.00060.0487550.0000
Template Total1.234495.320.6172
Template load0.00200.152020.0010
Template processing1.232495.162720.6162
Template load and register function0.00150.114210.0015
states
state_id_array0.00230.174010.0023
state_identifier_array0.00120.095120.0006
Override
Cache load0.00160.1223170.0001
Sytem overhead
Fetch class attribute can translate value0.00180.138220.0009
Fetch class attribute name0.00200.155740.0005
XML
Image XML parsing0.00060.048220.0003
class_abstraction
Instantiating content class attribute0.00000.000540.0000
General
dbfile0.00210.1642160.0001
String conversion0.00000.000440.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs