lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <erik.hatc...@gmail.com>
Subject Re: Solritas: Modify $content in layout.vm
Date Sat, 18 Feb 2012 23:40:25 GMT
Unfortunately things a bit messy in there because others have tried to make a kitchen sink
of things in there, but as I said, it all starts with browse.vm and then follow any #parse's
from there.  You'll see browse.vm #parse's "facets.vm", and in there you'll see how it then
#parse's to those various pieces you mention, so you can just remove, say, the #parse('cluster.vm')
in there (and subsequently clean it up and actually remove the now unused cluster.vm file
if you like).  And so on.

	Erik


On Feb 18, 2012, at 10:23 , remi tassing wrote:

> Yes, I'm using the example configuration (Solr-3.4).
> 
> What I'm trying to do is to remove the menus on the left side ("Query
> Facets", "Range Facets", "Clusters"), and the "boost by price" button. I'm
> not using them for now and they're kind of distracting.
> 
> Thanks, again, in advance!
> 
> Remi
> 
> On Fri, Feb 17, 2012 at 11:56 PM, Erik Hatcher <erik.hatcher@gmail.com>wrote:
> 
>> $content is output of the main template rendered.
>> 
>> To modify what is generated into $content, modify the main template or the
>> sub-#parsed templates (which is what you've discovered, looks like) that is
>> rendered (browse.vm, perhaps, if you're using the default example setup).
>> The main template that is rendered is specified as v.template (in the
>> /browse handler definition in solrconfig.xml, again if you're using the
>> example configuration).
>> 
>> Does that help?  If not, let us know what you're trying to do exactly.
>> 
>>       Erik
>> 
>> 
>> 
>> 
>> On Feb 16, 2012, at 23:06 , remi tassing wrote:
>> 
>>> Hi all,
>>> 
>>> How do we modify the "$content" variable in the layout.vm file? I could
>>> managed to change other stuff in doc.vm or header.vm but not this one.
>>> 
>>> Is there any tutorial on this?
>>> 
>>> Remi
>> 
>> 


Mime
View raw message