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>

eZ debug

Timing: Jan 30 2025 16:14:00
Script start
Timing: Jan 30 2025 16:14:00
Module start 'content'
Timing: Jan 30 2025 16:14:01
Module end 'content'
Timing: Jan 30 2025 16:14:01
Script end

Main resources:

Total runtime1.0701 sec
Peak memory usage10,240.0000 KB
Database Queries194

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.7813370.3125
Module start 'content' 0.00780.9394 959.09384,445.0547
Module end 'content' 0.94730.1228 5,404.14841,166.4688
Script end 1.0700  6,570.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00530.4947210.0003
Check MTime0.00160.1458210.0001
Mysql Total
Database connection0.00080.072010.0008
Mysqli_queries0.915185.51241940.0047
Looping result0.00170.16131920.0000
Template Total1.023595.620.5117
Template load0.00240.220820.0012
Template processing1.021195.420820.5105
Template load and register function0.00150.141610.0015
states
state_id_array0.00110.101610.0011
state_identifier_array0.00060.052220.0003
Override
Cache load0.00190.1763170.0001
Sytem overhead
Fetch class attribute can translate value0.00310.290430.0010
Fetch class attribute name0.00180.167640.0004
XML
Image XML parsing0.00460.430930.0015
class_abstraction
Instantiating content class attribute0.00000.001140.0000
General
dbfile0.01351.2624270.0005
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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