Ads are just snippets of HTML you want to insert in your templates. You have to declare where they show up somewhere in your view templates. For example, you might want a sidebar ad slot, so in your application template (or wherever your sidebar is) you'd do (in HAML):
#sidebar %h1 This is the sidebar =Ad.display(:sidebar, logged_in?) Then when you go to the admin area and create an ad, you'd use the location "sidebar" to target it to the :sidebar slot. You can create multiple ads for the same slot and they'll rotate according to their weight. Hope that helps. On Monday, June 24, 2013 6:18:57 AM UTC-5, Alex M wrote: > > Hello, > > First I wanted to say great work on CE. I am using the master branch and > it's great so far. I wanted to go with jquery-bootstrap branch but it > looked unfinished to me design-wise, too barebone, and seemed like it would > require a lot of customization. I needed to have a project up and running > fast without too much fiddling so I stuck with the master branch which > looks way more polished and nicer (has that social network feel). But back > to my question... > > What are ads? I've tried creating one, and published it, but it's not > showing up anywhere. Also confused as to what Location means when creating > an ad. > > Thanks. > -- You received this message because you are subscribed to the Google Groups "CommunityEngine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/communityengine. For more options, visit https://groups.google.com/groups/opt_out.
