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.

Widgets /

Discuss SilverStripe Widgets.

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

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


Reply


635 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?