Image gallery with hidden random events...

Author Message

Pauline Grech

Thursday 21 September 2006 5:15:49 pm

How am I able to add random images to an existing image slideshow gallery, without allowing them to be seen in the thumbnail view on the side ?

Here's an existing gallery: http://www.vogue.com.au/fashion/show_coverage/2006/2007_australian_fashion_week/schedule/toni_maticevski/toni_maticevski_runway

And I'm wanting every 5th image (for example) to go to a random image or media file which appears in that same space!

For example, to work like this: http://www.style.com/peopleparties/parties/slideshow/091906CFDA/?iphoto=0

Any advice would be much appreciated, thanks!

Norman Leutner

Friday 22 September 2006 12:52:28 am

Hi pauline,
welcome to ez.no

As you can see style.com has a click counter and the image number which are passed as a get parameter through the url :

&iphoto=7&cnt=15

You can do this in the same way, pass them as a view parameter and show your add every 5 images...

There is also a shuffle template operator from xrow within the contributions which you will need to show a random image: http://ez.no/community/contribs/template_plugins/extension_shuffle

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Juliusz Calyniuk

Friday 22 September 2006 1:33:54 am

I do not have ready-to-use solution, but you can check this:
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_operators/mathematics/rand

WebStyle Systems | http://www.ws-webstyle.com

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 18 2025 16:15:58
Script start
Timing: Jan 18 2025 16:15:58
Module start 'layout'
Timing: Jan 18 2025 16:15:58
Module start 'content'
Timing: Jan 18 2025 16:16:00
Module end 'content'
Timing: Jan 18 2025 16:16:00
Script end

Main resources:

Total runtime1.2988 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.1484152.6406
Module start 'layout' 0.00530.0026 741.789139.4766
Module start 'content' 0.00791.2897 781.2656578.2031
Module end 'content' 1.29760.0012 1,359.468812.1250
Script end 1.2988  1,371.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2422160.0002
Check MTime0.00140.1104160.0001
Mysql Total
Database connection0.00060.044410.0006
Mysqli_queries1.251896.3806590.0212
Looping result0.00060.0469570.0000
Template Total1.267397.620.6337
Template load0.00180.141820.0009
Template processing1.265597.436620.6327
Template load and register function0.00030.020510.0003
states
state_id_array0.00140.104210.0014
state_identifier_array0.00090.071320.0005
Override
Cache load0.00150.1165200.0001
Sytem overhead
Fetch class attribute can translate value0.00040.033230.0001
Fetch class attribute name0.00100.080050.0002
XML
Image XML parsing0.00110.081930.0004
class_abstraction
Instantiating content class attribute0.00000.001050.0000
General
dbfile0.00080.0617230.0000
String conversion0.00000.000540.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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 14
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs