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.

All other Modules /

Discuss all other Modules here.

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

Image_Gallery Formating Date Value


Go to End


10 Posts   2638 Views

Avatar
UncleCheese

Forum Moderator, 4102 Posts

10 November 2009 at 7:20am

Why do you have a PHP file in your templates directory?!

themes/main/templates/Includes/AlbumList.php

Is that a typo?

If you look at how you have your template set up, you're not in an album control when you're trying to call those field values. Try:

<% control CurrentAlbum %>
     <h5>$AlbumTitle<span class="album-info"> by $PostPhotographer</span></h5> 
      <p class="articleDate"><strong>Venue:</strong> $PostVenue</p> 
<% end_control %>

Avatar
Jakxnz

Community Member, 36 Posts

11 November 2009 at 7:58am

Edited: 11/11/2009 8:17am

Ah sweet as.

Yes it was a typo soz.

That solves that problem, which is great.

I just realized that this is your module UncleCheese, so thanks so much for your help.

I've uploaded the new configuration to my live server (as it is working on my local) but I can't save and publish the page. I'll look up how to view the javascript parse errors to say what it is but until then all the help you've given me so far can't be implemented.

My live and local implementations of Silverstipe are the latest, updated to get the Image Gallery module working correctly...

EDIT: On refresh of the CMS the changes appeared to have worked.

Go to Top