Popup windows in eZ publish

Author Message

Softriva .com

Sunday 17 December 2006 11:55:03 am

How can I make popup windows in eZ publish. Do I have to use java scripts. basically, I need to show the poll results in separate popup menu.

When the user vote, I don't want the result to show in the main page. I want the result to appear in a separate window.

Thanx

OOzy

Jon Staines

Monday 18 December 2006 8:24:55 am

Just adding

target="_blank"

to the 'Result' link in the design/<siteaccess>/override/template/full/poll.tpl template will pop the results up in a template. But I'm not sure how you would have a pop up triggered when you click on the 'Vote' button.

The pop up will be the same page as you currently when you click that link with all the menus. If you wanted a more stripped down page with just the results on, you will need to work out an override that will trigger on the results and then make a minimal page layout template for it.

Robert Lavala

Monday 07 January 2008 12:19:36 pm

Hi. I understand about _blank to open a new, full size page. My question is this: How do I get the _blank to be a specific size (say 500 X 150)? I would also like info on the various inclusions to a new window such as scrollbars=no and such.

Thank you.
Robert

Piotrek Karaƛ

Monday 07 January 2008 12:37:51 pm

Robert,
That is presentation layer issue that is rather platform (eZ Publish) independent. Google 'javascript+open+window+popup' for details.
Cheers,
Piotrek

--
Company: mediaSELF Sp. z o.o., http://www.mediaself.pl
eZ references: http://ez.no/partners/worldwide_partners/mediaself
eZ certified developer: http://ez.no/certification/verify/272585
eZ blog: http://ez.ryba.eu

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 31 2025 01:22:57
Script start
Timing: Jan 31 2025 01:22:57
Module start 'layout'
Timing: Jan 31 2025 01:22:57
Module start 'content'
Timing: Jan 31 2025 01:22:57
Module end 'content'
Timing: Jan 31 2025 01:22:57
Script end

Main resources:

Total runtime0.0212 sec
Peak memory usage6,144.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.1328151.2109
Module start 'layout' 0.00530.0034 739.3438220.6875
Module start 'content' 0.00870.0111 960.03131,001.9141
Module end 'content' 0.01980.0014 1,961.945333.9922
Script end 0.0211  1,995.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002612.3373140.0002
Check MTime0.00114.9881140.0001
Mysql Total
Database connection0.00073.512910.0007
Mysqli_queries0.002210.546530.0007
Looping result0.00000.047310.0000
Template Total0.00104.510.0010
Template load0.00083.607510.0008
Template processing0.00020.926410.0002
Override
Cache load0.00052.496310.0005
General
dbfile0.00021.151880.0000
String conversion0.00000.029340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs