Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.0-rc5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Oct 2008 at 19:01 UTC
Updated:
23 Apr 2009 at 00:00 UTC
Are there any views support for stickies at all?
Comments
Comment #1
merlinofchaos commentedYes, you can always sort by the node: sticky flag.
Comment #2
Flying Drupalist commentedIs there some way to theme stickies? Add a css class to all sticky
Comment #3
merlinofchaos commentedYes, override the template from your theme, style as needed. Views doesn't do this automatically unless you're using the node row style, which does theme stickies.
Comment #4
Flying Drupalist commentedCan you give me an example for overriding the template?
I have this:
And it's no good so far.
I've also checked the docs, and there's nothing there on overriding the template.
http://views-help.doc.logrus.com/help/views/using-theme
Comment #5
merlinofchaos commentedThat's a fairly general question; you should try the forums, where more people read and give support. You'll get a faster answer, since here is just me and a couple of other volunteers who sometimes find and answer these posts.
Comment #6
Flying Drupalist commentedApologies, I got carried away talking about styling, I'll ask about that elsewhere.
How do you set sorting by stickies and by last node comment? It seems as if it's either one or the other. I thought I had it working earlier, but no go. I set the table style to sort via stickies and 'default sorting' to sort via last reply, but now I realize that table style just completely overrides default sorting. Is there any way for stickies to function as intentioned? Thanks.
Comment #7
Flying Drupalist commentedRephrasing my question a bit, is there any way to sort via 2 properties at the same time, but then have 1 override the other?
Comment #8
dawehnerjust add two sort options
for example first sort by sticky and then sort by created
but you still need the custom theming and this can be done as a custom views template.
do you still need support for this issue?
Comment #9
Flying Drupalist commentedNope, I've figured this out. Thanks!
Views is great.
Comment #10
Flying Drupalist commentedI should add that the reason why it wasn't working last year was because the sorting options in the table options was overriding the main sorting options. That it would do that should be made a bit clearer in the descriptions.