Customizing the live-search output results pane to show results for different models in different columns [Hobo 1.3]

17 views
Skip to first unread message

Ronny Hanssen

unread,
Aug 29, 2012, 8:43:39 AM8/29/12
to hobo...@googlegroups.com
I know about the way you can user <search-card> to customize hits from the different models, but, in the search-output results pane I want to split (group) my hits from a total of three different models in three corresponding columns.

Is there a (simple) Hobo-DRYML way to do this?

Bryan Larsen

unread,
Aug 29, 2012, 9:05:07 AM8/29/12
to hobo...@googlegroups.com
In Hobo 1.4, you can redefine or extend the search-results tag.

In 1.3 it will be a lot of work because the results are rendered with this:

render_tags(all_results, :search_card, :for_type => true)

(in site_search in controller.rb)

If you're brave, you can try fiddling with the above line, but
hopefully you want to port to 1.4 and you were just looking for a good
excuse. :)

Bryan
> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hobousers/-/fuqNWwQPjBUJ.
> To post to this group, send email to hobo...@googlegroups.com.
> To unsubscribe from this group, send email to
> hobousers+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.

Ronny Hanssen

unread,
Aug 29, 2012, 8:01:01 PM8/29/12
to hobo...@googlegroups.com
It might just be that I'll save my work efforts for 1.4 :).

Regards,
Ronny
Reply all
Reply to author
Forward
0 new messages