theCrag/website — Issue #362: Displaying sponsorship
Author: scd
Created: 2011-10-27 00:05:40+00:00
State: open

Need to add sponsor image List View and Guide View. The following api variable is now available in area/route list view to experiment with.

```
"sponsor" : [
{
"label" : "corporate",
"list" : [
{
"volume" : "00001",
"url" : "url",
"weight" : "65.92",
"advertiser" : "175269637",
"dimensions" : {
"half" : [
"520",
"368"
],
"quarter" : [
"260",
"184"
],
"eighth" : [
"130",
"96"
],
"sixteenth" : [
"65",
"46"
],
"full" : [
"1040",
"736"
]
},
"title" : "title",
"id" : "176168890"
}
]
},
{
"label" : "individual",
"list" : [
{
"account" : {
"country" : "Australia",
"countryNodeID" : "11737699",
"name" : "Simon Dale",
"routesTicked" : "390",
"countryCode" : "AU",
"login" : "SCD",
"id" : "9068185",
"countryID" : "7478254"
},
"url" : "aaa",
"weight" : "14.08",
"title" : "bbb",
"id" : "176269159"
}
]
}
```

Corporate sponsors should have image details, while individual sponsors may or may not. When you are ready I am happy to write a 'chooser' helper function which chooses which sponsorship to show based on weightings. I think all individual sponsors should just be shown using their avatar.

We will need to add this to PDF Crag Guide

We need to develop our inhouse ad which invites people to become a sponsor and links to our sponsor article.