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.

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.

Customising the CMS /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Updating the LHS Site Tree in the Content Editing Section


Go to End


2 Posts   1263 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/