Hmm... yeah, that's one of those undocumented features (HINT: need
help with better docs!).
That config option doesn't do anything. It need to be removed. CE has
a simple (but pretty effective) advertising functionality which
basically let's you insert arbitrary pieces of text or HTML into
pages. Look in the Ad model (ad.rb) to get a sense for how it works.
Let's say you wanted to put a sidebar ad slot into your layout. You'd
go to your application.html.haml, and place this into it:
= Ad.display(:sidebar_slot, logged_in?)
Then, logged in as the admin, go to /ads, and create a new ad with the
location 'sidebar_slot'. If you create several ads with the same
location, they'll be rotated according to their frequency attribute
(higher frequency = appears more often). You can set things like
'audience' (who gets shown the ad), 'published' and 'time constrained'
(when to start and stop the ad.
You can also be clever with the Ad.display call, for example, on a
tags/show page, you could do:
= Ad.display("[email protected]}", logged_in?)
And then you could target ads just at that page (i.e. location =
'show_tag_rails' or 'show_tag_javascript').
Hope that helps. One of these days I'll get around to doing a real
documentation push. In the meantime, feel free to ask questions on the
list.
Take care,
Bruno
On Sat, Sep 26, 2009 at 4:32 AM, robzarry <[email protected]> wrote:
>
> Just started using Community engine and love it!!! Noticed the
> "show_advertising" configuration in application.yml but could not find
> any documentation or reference to it. Wondering if this is
> implemented and/or where to find details on how to use it. Thanks!
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CommunityEngine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/communityengine?hl=en
-~----------~----~----~----~------~----~------~--~---