Joe Tunis wrote:
is it possible to get a Page's page type (class_name in the database) in
Radius? or some other way? i'm trying to create a page that lists all child
pages of a certain page type.

It's a Rails app at heart and the page type is just a property of the page. You'll need to write a custom tag to extract/ retrieve it.

Sorry, just a bit busy - you'll need to see the schema for the Pages table in the database and see which fields give you the information. Something like this..

tag 'local:page_type' do |tag|
  part = tag.locals.page  #this gives you the current page
  #now.. whatever you need..
end

Cheers,
Mohit.
7/11/2009 | 4:30 PM.

_______________________________________________
Radiant mailing list
Post:   [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

Reply via email to