Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add essential dependency if kupu is absent

  • Loading branch information...
commit beec04e00e1aa159a96710f584df647e7610cfea 1 parent 1479688
Jens W. Klein jensens authored
15 buildout.cfg
View
@@ -1,5 +1,9 @@
[buildout]
-parts = instance omelette
+parts =
+ instance
+ instance-faceted
+ omelette
+
extends = http://dist.plone.org/release/4.2-latest/versions.cfg
find-links +=
http://effbot.org/downloads/
@@ -21,6 +25,13 @@ zcml =
collective.prettyphoto
plone.reload
+[instance-faceted]
+<= instance
+
+eggs =
+ ${instance:eggs}
+ eea.facetednavigation
+
[omelette]
recipe = collective.recipe.omelette
-eggs = ${instance:eggs}
+eggs = ${instance-faceted:eggs}
10 collective/prettyphoto/browser/view.py
View
@@ -23,8 +23,9 @@ def __call__(self, request=None, response=None):
# automatically starting the slideshow does only make sense if the interval is greater than 0
autoplaySlideshow = False
- return """(function($) {
- $(function() {
+ return """\
+ (function($) {
+ var plonePrettyPhotoEnable = function () {
// add rel tag for all links with class 'prettyPhoto'
$("a.prettyPhoto").attr({"rel": "prettyPhoto"});
@@ -48,6 +49,11 @@ def __call__(self, request=None, response=None):
deeplinking: %(deeplinking)s, /* allow prettyphoto to rewrite url for direktlinking to an image */
markup: %(markup)s
});
+ };
+
+ $(function() {
+ // enable prettyPhoto on document load
+ plonePrettyPhotoEnable();
});
})(jQuery);
""" % dict(speed=getattr(self.prettyphoto_properties, 'speed', 'normal'),
1  collective/prettyphoto/configure.zcml
View
@@ -43,6 +43,7 @@
description="Configures Kupu pagraph styles for prettyPhoto"
handler="collective.prettyphoto.exportimport.import_various">
<depends name="kupu-setup" />
+ <depends name="plone-properties" />
</genericsetup:importStep>
<!-- upgrades -->
Please sign in to comment.
Something went wrong with that request. Please try again.