10848 Posts in 2516 Topics by 1792 members
|Go to End||Next >|
1 May 2009 at 2:58am
Merci bien! Je me demandais si je devrais le traduire a francais moi meme, mais comme on peut voir, mon francais n'est pas le meilleur. J'ajouterai le tien aussi-tot que possible!
Tu viens de Quebec? Je ne suis pas loin de toi. Je suis un peu sud, dans le paysage nord de Vermont.
Merci encore, Xeal!
1 May 2009 at 3:06am Last edited: 1 May 2009 3:23am
Ah Bon! Je ne savais que tu etait francais toi aussi Bah en faite que tu parle le Francais. Je sais pas il pourrais avoir peut-etre des petite erreur. J'ai fais mon mieux pour me reviser mais parfois ca m'arrive de faire des erreur d'inattention.
Oui je vien de Quebec =) Ah ben! T'es pas trop loin de moi. Le monde est petit en ;)
De rien je vais surement traduire les autre module aussi donc quand c'est fais je vas te les donner!
1 May 2009 at 6:52am
Nice work, your dutch translation, made life a lot easier for me As far as I can see 'to' in the translation is used only(?) in the 'Add images to somegallery' button. So I guess it could be translated 'aan' as in 'Afbeeldingen toevoegen aan'. Kleinigheidje: 'berkijk' en 'Maxinmaal'
3 May 2009 at 9:05pm
Thanks a lot for your dataobject_manager module. I'm using it in a couple of projects and it really adds a lot of user friendly goodness for the clients. :-D
I'm having trouble with image gallery though. I can upload files to an album directly from my computer, no problem. BUT if I try to import existing files from 'File & Images' I get the following:
[Notice] Undefined index: controllerFieldName
Line 84 in /Library/WebServer/Documents/blackcandy/image_gallery/code/ImageGalleryManager.php
I added Debug::show($data); to the top of function saveImportForm($data, $form) in ImageGalleryManager.php. This is what I get:
* url =
* ctf =
o GalleryItems =
+ per_page =
+ showall =
+ sort =
+ sort_dir =
+ search =
+ filter =
+ view =
+ imagesize =
* dataObjectClassName =
* fileFieldName =
* parentIDName =
* controllerID =
* AlbumID =
* folder_id =
* imported_files =
o 0 =
* SecurityID =
* action_saveImportForm =
I'm using out of the box SS2.3.1 and up to date svn versions of dataobject_manager(r137) and image_gallery(r137). Any help much appreciated!
4 May 2009 at 2:10am
Howdy UncleCheese. I can't thank you enough for all the work you've done - it has made my life infinitely easier!
I added a simple image search feature to your Image Gallery for a client, and it works well - it uses an additional Tags field on the ImageGalleryItem object to pull matching images from all albums, displaying them in a new album generated on the fly. Now I'd like to create a module for this feature that can be added easily to any Image Gallery, so I started separating my additions into DataObjectDecorators. Unfortunately, I can't get my extensions to work without removing the SortableDataObject extension (or adding my extension at the top of the ImageGallery_config.php file so that it loads first)... any idea how I could get around this? I'd really like to make this module usable without needing to modify your code directly...
4 May 2009 at 8:52pm
I'll correct the spelling mistakes later on when I get the chance, thanks for heads up.
I noticed you named the file nlNL4.php (or something alike, I don't access to my files at the moment) on the SVN, is there any particular reason you did this? Oh and expect an update some time soon ;)
Speaking of which, what is the best way to submit patches on 3rd party modules like this one?
5 May 2009 at 4:34am
Hey, everyone. Just got back from a weekend in NYC. Lots of catching up to do in the forums. I've got some responses for you.
@Mad_Clog - Not sure why the file got named nlNL4. I think it came in that way. I've changed it to nlNL.php in the newest version.
@jhirm - Decorators are pretty tricky, and it seems every time I try to implement them I hit some sort of roadblock. Is there a specific reason you want to use a decorator instead of just subclassing the ImageGalleryItem object?
@keeny - Fixed in the latest version. Thanks for flushing that out.
5 May 2009 at 11:20pm
Yeah, the decorators have been giving me grief. I didn't think it would work to extend the ImageGalleryItem directly since the ImageGalleryPage class includes the ImageGalleryItem in its has_many array, which would mean editing the ImageGalleryPage class, defeating the purpose of separating my additions into a separate module. However, after thinking about it a bit, your suggestion may actually work, since I CAN decorate the ImageGalleryPage successfully... I'll try it this afternoon.
On an entirely unrelated note, I'm also working on a module that organizes various SilverStripe features into a package for user-management. In working on this, I noticed that the die() statement used to render a single album gallery breaks the built-in SS security model. For example, if you create a Page with Access set to a specific user-group, then make a Image Gallery Page as a child of the secured page, it is still possible to access the gallery via its URL if there is only one album because the die() statement stops further PHP execution. My quick fix was to change the die() to a redirect like this:
//FIX: changed die() to redirect to only album in order to solve security issue...
$gallery_ID = $this->data()->getField("ID");
$gallery_URLSegment = $this->data()->getField("URLSegment");
$album = ImageGalleryAlbum::get_one("ImageGalleryAlbum", "ImageGalleryPageID = ".$gallery_ID);
$album_URL = $gallery_URLSegment.'/album/'.$album->Folder()->Name;
The URL isn't as pretty, but it fixes the security issue... any thoughts on a better way to do this?
|Go to Top||Next >|