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.

Widgets /

Discuss SilverStripe Widgets.

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

Curious problem accessing a page in a different section' data...


Go to End


1264 Views

Avatar
MartinPhone

Community Member, 57 Posts

7 November 2010 at 10:51am

Edited: 07/11/2010 11:13am

I took the SingleContent Widget and pimped it slightly so the widget now links to a page, and displays that page's header image (all of my pages have a header image).

If the page I'm linking to is on the same level or deeper, it's fine. No problems whatsoever.

If the page I'm linking to is on a different branch of the site (eg Site Root/Recordings/Studio 1 linking to Site Root/Rehearsals/Studio 2), the page title and content appear fine and the link works fine but the image does not appear. What's going on?

I find this particularly puzzling as I can't see how the page's Image data differs from the page's Title data... Any ideas?

Edit: on more investigation it looks like this is in fact an issue with the SingleContent Widget as well. Anyone got around this?