Hey Uncle Cheese. Just wondering if you have had a chance to look into this any further? Regards
We've moved the forum!
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
DataObjectManager Module /
Discuss the DataObjectManager module, and the related ImageGallery module.
Moderators: martimiz, UncleCheese, Sean, Ed, biapar, Willr, Ingo, swaiba
Galleria integration with ImageGallery
- Previous 10 entries
- 1
- 2
- Page 33(current)
- 4
- Next 10 entries
Yeah, I have it working, but I the CSS is all messed up. I don't really get how that plugin works. I can post the files up here if you want to take a crack at the CSS.
Good work! Yeah, definitely more that happy to help with getting the CSS sorted. Just post up a link to the files.
As you saw on this forum post I am trying to "include" a Gallery (Galleria) on individual pages on a property listing website I am working on. I am trying to combine the code from the above link with the code below (PropertPage.php), so far I have had little success.
<?php
class PropertyPage extends Page {
static $db = array(
);
static $has_one = array(
'Photo1' => 'Image',
'Photo2' => 'Image'
);
function getCMSFields() {
$fields = parent::getCMSFields();
$fields->addFieldToTab("Root.Content.Images", new
ImageField('Photo1'));
$fields->addFieldToTab("Root.Content.Images", new
ImageField('Photo2'));
return $fields;
}
}
class PropertyPage_Controller extends Page_Controller {
}
?>
The website is almost complete except for the individual Galleries. Here is a link to my test site so you can see what I mean: benwellby.com/properties. Click on a property to see where the Gallery should be.
This shouldn't be too hard to accomplish, but so far I keep stumbling on this particular feature, that said building the website with SS has been a real pleasure (even though my programming knowledge is at best not great).
As usual, any help is greatly appreciated!
Cheers
I'm not sure what you're trying to do. I don't see any reference to an ImageGalleryPage in your code, or anything resembling the example in that post.
The galleria zip file is here:
http://dataobjectmanager.carlinowebdesign.com/assets/galleria.zip
Just drop the "galleria" folder in your image_gallery/gallery_ui folder.
UncleCheese you are simple great.....
galleria works like charm....
It does? For me the styling was messed up. If you made any changes to the CSS, please post them so I can roll that into the trunk.
Hello Uncle Cheese
i am sorry for late reply but i ahve not made any changes.i have followed your instruction and it worked
Uncle Cheese,
just integrated the Galleria into "image_gallery/gallery_ui" with success.
Hade to make some modifications:
In "code/Galleria.php" i changed
Requirements::javascript('jsparty/jquery/jquery.js');
to
Requirements::javascript('sapphire/thirdparty/jquery/jquery.js');
(runninge Silverstripe 2.4.1).
In "css/galleria.css" following code messed my side up:
*{margin:0;padding:0}
body{padding:20px;background:white;background:white;color:#555;font:80%/140% 'helvetica neue',sans-serif;width:870px;margin: 0 auto;}
Taking this out, all looks fine.
Maybe this is of interest to someone who wants to use galleria in ImageGallery.
Regads,
Mathias
- Previous 10 entries
- 1
- 2
- Page 33(current)
- 4
- Next 10 entries