Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Re: SS3 DataExtension + Data Object

$
0
0

i would think your Sponsor's has_one should point to the SiteConfig class, not the CustomSiteConfig, as the latter is not a DataObject in itself, it.just enhances the SiteConfig...

Edit: An alternative would be to just use ModelAdmin for your Sponsors and in your Page_Controller class create a function like this:

public function getAllSponsors() {
return Sponsor::get();
}

Then <% loop $AllSponsors %> in your Page template...


Posted to: SS3 DataExtension + Data Object | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles