We are using Views Attach along with Views to display our library schedules. Views Attach has fixed some of the vexing display problems we were having before and I love it.
However, I am having some trouble with multiple node content attachments showing when I only want one.
I have 2 content types - schedules and exceptions. Each exception has a node reference to a schedule. I use views attach to list all associated exceptions on each schedule node, regardless of where/how that node displays.
Our main hours page is a panel page with only the current hours for each location. So I have a views attach node content display set up to filter exceptions by a certain date range (see viewsattach2.jpg). I also have a views attach node content display that shows all exceptions for the entire semester (see viewsattach1.jpg).
I would like the node content display showing the filtered exceptions to only show on that panel page. Each panel uses a specific view that selects the most current schedule. On every other page that a schedule appears I'd like to use the "all exceptions" node content display instead.
The panel page's url is /hours and each panel passes an argument of $library_name to the view. The other main hours display's url is /hours/$library_name/select and uses exposed filters.
I'm sure there's a way to do this with the Global:Null argument, but I haven't figured it out yet. Everything I try either hides both node content displays or neither one. Currently, I'm using CSS to set the one I don't want showing to "display: none" but I know that is not a very good permanent solution.
I've attached screenshots showing both my views settings and the resulting display (viewsresult.jpg). I can include the views export output if that is more helpful.
Comment | File | Size | Author |
---|---|---|---|
viewsresult.jpg | 51.16 KB | dflitner | |
viewsattach2.jpg | 58.34 KB | dflitner | |
viewsattach1.jpg | 54.61 KB | dflitner |
Comments
Comment #1
dflitner CreditAttribution: dflitner commentedI finally noticed the Build Mode setting on the Node Content displays. I set one to Teaser and the other to Full Node and that did the trick.