Forums / Developer / LightWindow, Javascript and eZpublish.

LightWindow, Javascript and eZpublish.

Author Message

Alejandro Dominguez

Wednesday 02 March 2011 5:02:52 am

Hello guys,

I'm trying to include in my site a javascript image gallery using Lightbox http://www.p51labs.com/lightwindow/. If you see the examples when you click a text link it will open a window with the image gallery, video, etc.

In the full view of my object I get the images and I include the javascript files with ezjscore. However when I open the link I don't get the gallery.

I think it could be a problem with the compression of Javascript files. How can I disable it? I check the compression of javascript and the code is there, but maybe with the compression it's missing something.

any ideas?

Bertrand Dunogier

Wednesday 02 March 2011 6:41:53 am

Hi,

I don't really know about your specific problem, but you could try http://projects.ez.no/oplightbox2, developed by one of the eZ Systems western europe consultants.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Theodoros Papageorgiou

Wednesday 02 March 2011 11:08:05 am

You can enable development mode in your site.ini.append.php

[TemplateSettings]
DevelopmentMode=enabled

It's probably a matter of order or conflict of your js files.

WEBWiZ
Web Development
http://www.webwiz.gr

yunxia cai

Wednesday 02 March 2011 10:35:09 pm

Hello everyone!

I want to ask question about ezoe 's bug Fix #017402;

my ezpublish version is ez4.4.if I click the text to link (eznode->browsefolder->folder),then

display all my folder 's subfolder, when you click the 'Next', it display next page.but it display wrong,

it is not display all subfolder under my folder!

I search about this question http://svn.projects.ez.no/ezoe,

But I don't know how to fix this bug!

Can everyone help me details about this solving method?

Thanks!

Help me!

Alejandro Dominguez

Thursday 03 March 2011 5:17:26 am

@Bertrand

I have been trying the oplightbox2 extension and it's almost perfect. This extension creates a lightbox to every images in my site, and I only want to apply it to a certain group of images which are stored in a class. Do you know if it's possible to restrict this???

@Theodoros

I had activated this feature, but eZ don't show me any error related with this. However with the solution of @Bertrand I almost fix it.

Thanks for your response!!!

Olivier Portier

Monday 07 March 2011 1:14:06 pm

Hi Alejandro,

>> This extension creates a lightbox to every images in my site, and I only want to apply it to a certain group of images which are stored in a class. Do you know if it's possible to restrict this???

Of course you can do a specific override rule to load the templates i overriden by priority only for specific content classes or a specific attribute. Use an override rule in the override.ini.append.php from your siteaccess.

Have fun !

Olivier

eZ debug

Timing: Jan 18 2025 04:14:10
Script start
Timing: Jan 18 2025 04:14:10
Module start 'content'
Timing: Jan 18 2025 04:14:11
Module end 'content'
Timing: Jan 18 2025 04:14:11
Script end

Main resources:

Total runtime0.9571 sec
Peak memory usage4,096.0000 KB
Database Queries211

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0084 587.7344180.8359
Module start 'content' 0.00840.8235 768.5703712.3828
Module end 'content' 0.83190.1250 1,480.9531341.0859
Script end 0.9569  1,822.0391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00530.5517210.0003
Check MTime0.00160.1710210.0001
Mysql Total
Database connection0.00090.096410.0009
Mysqli_queries0.870490.94262110.0041
Looping result0.00230.23712090.0000
Template Total0.926396.820.4631
Template load0.00200.204520.0010
Template processing0.924396.575920.4621
Template load and register function0.00010.014510.0001
states
state_id_array0.00120.121510.0012
state_identifier_array0.00090.089120.0004
Override
Cache load0.00170.1787470.0000
Sytem overhead
Fetch class attribute can translate value0.00150.160060.0003
Fetch class attribute name0.00120.1272110.0001
XML
Image XML parsing0.00320.329460.0005
class_abstraction
Instantiating content class attribute0.00000.0019120.0000
General
dbfile0.00340.3524500.0001
String conversion0.00000.000830.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
6content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 26
 Number of unique templates used: 7

Time used to render debug report: 0.0003 secs