topher, Those instance variables are all lowercase. You should set them inside a method/action too, not outside, or in a before filter.
Sean Christopher Zimmermann wrote: > Hi, > Im trying to use Share Layouts extension. > I dont know how to specify the Breadcrumb and Title for the page. > Ive created a simple extension controller > > class TesterController < ApplicationController > @Breadcrumb = "some breadcrumbs" > @Title = "My Page" > radiant_layout 'Henry Standard' > def index > @slideshows = Slideshow.find(:all) > end > end > > And ive also tried putting the > @Title assignments in the index.rhtml template. > > I read the readme, but still dont understand how to set the Title, > Breadcrumb for the page. > Im probably missing something simple due to my relative nuby-on-rails > nature! > Any help or tips appreciated! > > > > The error I get is: > > ActiveRecord::RecordInvalid in Tester#index > > Showing *vendor/extensions/share_layouts/app/views/layouts/radiant.rhtml*where > line > *#1* raised: > > Validation failed: Title required, Breadcrumb required > > Extracted source (around line *#1*): > > 1: <%= radiant_layout %> > > RAILS_ROOT: C:/A_SYST~1/INSTAN~1.7-W/rails_apps/henry_radiant2/config/.. > > > > Cheers, topher > > > _______________________________________________ Radiant mailing list Post: [email protected] Search: http://radiantcms.org/mailing-list/search/ Site: http://lists.radiantcms.org/mailman/listinfo/radiant
