Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Customising the CMS /

Updating the LHS Site Tree in the Content Editing Section


Reply


2 Posts   856 Views

Avatar
elgordo

Community Member, 70 Posts

5 May 2011 at 10:38pm

I'm currently working on a gallery where both the photograph and gallery extend Page, so that they can be translated easily. It is relatively straightforward to set up, but I wanted a bulk upload facility. I've managed to add a bulk upload tab which appears to be working, in that images uploaded in bulk using the Uploadify form fields are converted to Photographs and added correctly into the database. The Uploadify widget refreshes itself when I delete the references to the bulk uploaded files, but I am not sure how to go about updating the gallery object in the left hand tree menu in order to show the newly added pictures. Currently I have to refresh the entire page.

Avatar
elgordo

Community Member, 70 Posts

5 May 2011 at 10:57pm

To see an example of what I mean I have put my current code in progress on github, https://github.com/gordonbanderson/Silverstripe-Translatable-Gallery/