I cannot for the life of me figure that one out. I spent several hours on it before giving up. I'm hoping newer versions of Silverstripe will eventually fix the problem. :)
Thanks for letting me know... it seems to work locally anyway... I seem to be having problems getting it running on my remote server now.. but I think it was a file transfer issue (will know soon.)
It is worth noting that the Code over the button issue is resolved on my remote server (same exact install, different machine)
I next want to extend the album to be able to output a XML file for a flash slide show.. any chance you can point me in the right direction? (This will be my first real SS coding attempt) :)
Well, my first question would be whether the Flash utility is SlideshowPro? If so, just download the SildeshowPro extension for ImageGallery and that should be all you need.
Otherwise, you need to create an image gallery subclass:
MyImageGalleryPage extends ImageGalleryPage
and assign a new album class:
protected $albumClass = "MyAlbum";
MyAlbum extends ImageGalleryAlbum..
Thanks for the reply.
I have the gallery running properly on my live server (still have the button problem on my local server?)
I did run into a problem that might be worth you noting.. My first install on my server went wrong (unsure why), I removed the 3 modules (Dom, Swf, gallery) did, a dev/build and removed the gallery tables from the database (wasn't sure if the others still had tables) I retransfered the DOM, and Swf, did a build and then the gallery did a build, and then tested.. all seems to be well except that images would show. Eventually I manually created the asset/folders I needed for my images to have the correct folders needed for transfer.. This seems to fix the display problem.. and also kick started the system into creating the folders dynamically again. Why I don't know, but it may have been due to the CMS having references to the gallery pagetypes already when I reinstalled, not sure.
In any case their might be some additional checks to perform at some level to ensure that assets are writeable.
Thanks for the pointer on the XML feed. I looked at slideshowpro, but plan to go with another (although the XML is very similar), I think that I would like to work out creating my own subclasses and methods, but do think that I will check out the SSP module. Right now only a trunk build that is rather old is available http://silverstripe.org/slideshow-pro-module/ is this the module that you meant?
No, that's not the right link. I think it's only available through SVN:
If I were you, I would just copy the SlideshowProAlbum_xml template into your theme dir and change it as needed. All the tools you need are in that template.
Thanks, got it.
I see it looks rather different than the old one.. I am thinking to test it with the SSP standalone trial.
There are no instructions, so hope you don't mind giving a once over.
Where do I put the SWF file? etc..
OK, from what I can gather this version doesn't work with the standalone version.. this is fine as I just wanted to use it for testing (although it was my backup if the other player doesn't end up working as planned).
I figure I should be able to go direct to the xmlfilepath url, but when I do I get the following error:
Am I wrong in assuming that I can load the xmlfilepath url as listed on the top of the SWF tab?
OK, I fixed that error. It seems that I had the module folder name as 'slideshowpro' and there is an internal requirement for it to be 'slideshow_pro'.
So that problem is solved.
I have been able to load the XML.
I have also created a new method in the SlideshowProPage.php file (a clone of xml()) and cloned the matching template, I now get my XML via this new method and template :)
I'm almost there... I am hoping that I can move these edits out of the module and into 'mysite'. Haven't got that working yet.
OK, I have one last question.
Is it possible to remove the:
$f->addFieldToTab("Root.Content.SWF", new FileIFrameField('SWFFile','Upload a SlideshowPro SWF file'));
in my extenstion of the SlideshowProPage class?
and the requirements from the SlideshowProPage_Controller?
I ask because if I can minimize the requirements I should be able to get the extended page type to load, right now I only get an error.
Right now I have an example for how to extend to get XML for other XML fed gallery viewers, I will post it all once it is possibly useful to others.
Sorry if I am killing you with all this... I'm going through a major learning curve.. but I'm moving ahead.