Jump to:

794 Posts in 409 Topics by 304 members

Widgets

SilverStripe Forums » Widgets » Curious problem accessing a page in a different section' data...

Discuss SilverStripe Widgets.

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

Page: 1
Go to End
Author Topic: 586 Views
  • MartinPhone
    Avatar
    Community Member
    57 Posts

    Curious problem accessing a page in a different section' data... Link to this post

    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?

    586 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.