Created
January 22, 2013 11:53
-
-
Save magnetised/4594056 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# FeaturedBand is an alias to instances of BandPage. | |
# Within templates it has access to all of the fields of its target | |
# as well as its own. | |
class FeaturedBand < Piece | |
alias_of :BandPage | |
field :image | |
field :strapline, :markdown | |
end | |
class Homepage < Page | |
# Allow editors to create a hand-picked list of favorite bands | |
# on the homepage. | |
box :featured_bands do | |
allow :FeaturedBand | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment