You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to blacklight-...@googlegroups.com
I'm trying to implement per-controller configs with BL 3.2.
I have my CatalogController set up the way I want it, but I have a
different controller where I want to implement separate settings. For
example, in console, I do:
class MyController < ApplicationController
include Blacklight::Configurable
configure_blacklight do |config|
config.add_sort_field 'popularity', :label => 'Relevancy'
config.add_sort_field 'scdate', :label => 'Date'
end
end
Based on this, I would expect this:
MyController.config.sort_fields.inspect
to return only the sort fields for popularity and scdate, but what I
get instead is all of the sort fields from my CatalogController plus
these two fields.
What am I missing? I thought per-controller meant I could do them,
well, per-controller.
Molly
Chris Beer
unread,
May 1, 2012, 5:13:32 PM5/1/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message