Jump to:

23481 Posts in 18965 Topics by 2878 members

General Questions

SilverStripe Forums » General Questions » Render ViewableData on custom Controller

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 482 Views
  • zenmonkey
    Community Member
    528 Posts

    Render ViewableData on custom Controller Link to this post

    I'm trying to do an ajax request to a custom controller, but the renderWith keeps looking for the template on the Simple theme as opposed to current theme. Obviously it's using the one set _config, but doesn't that defeat the purpose of the selctable theme in the back end? Is this a feature or a bug?

    Further more when calling something like:

    $vd = new ViewableData();
        return $vd->customise(array(
             "Title" => "MLS Search Results",
             "Query" => $communitySearch." priced between ".$min." and ".$max." with more than ".$bed." bedrooms and ".$bath." bathrooms.",
             "Results" => $set

    I find the Page.ss tempalte portions don't render fully. I occaionally loose my custom Menu data in the Header.ss and I never get any of teh site data being pulled in Footer.ss

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.