Feature request
I want to kindly ask if it would be possible to support also custom view modes instead of just the existing hardcoded ones:
- Full Node
- Teaser/Summaries
- Linked Titles
Reason
I would like this, because I have a custom view mode called "Sidebar Teaser", so you could configure a custom view mode to organize your content for the featured content-block.
Not sure how complex this would be.
Note/Info:
Something like the "Rendered Entity" Field on Display View of "Entity Reference"-Field (Module has the same name), this shows a select input field with all the view modes. Perhaps also the code can be used from there, not sure :)
Not sure if you already had such plans, but this would be a nice feature, because without this you have to use the teaser or full view for the block.
Thanks anyway for this great module!
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | featured_content-1741994-3.patch | 1.36 KB | Cyclodex |
Comments
Comment #1
hoza commentedJust in case it helps the cause, I'd like to add a big vote for this feature. I've just found this module and it's sure helped me a lot to sort out some quick stuff that I've been struggling with in Views directly.
Right now, I'm back into the search for other options though, since I need to have more display options than the three included display options.
Otherwise, this module freakin' rocks! Thanks for the great contribution. I'll be using it in other places, for sure.
Comment #2
Cyclodex commentedTaking over this task, will provide a patch for the stable release for now.
Comment #3
Cyclodex commentedHere it is.
This patch can be applied to the 1.5 Version, but should not be a problem to also prepare it for other releases. It is pretty simple.
It will add all view modes to the list of displays. Allowing you to display the content in ANY view mode!
This could be taken even further for the read more parts etc. But as we don't need this, I didn't touched that.
Any feedback is welcome.
Regards Cyclodex
This Patch is sponsored by Nothing Interactive.
Comment #4
kristen polI'll take a look right now, thanks!
Comment #5
kristen polI reworked the code to handle this for both the main block and read more page. I just checked into 7.x-1.x-dev so it will be available soon.
1) I got rid of the "teasers" code.
2) I repurposed the "full_nodes" to be the nodes with whatever view mode.
3) I updated the tpl.php to reflect changes.
Please test. Note that you need to run update.php to get it to convert all old "teasers" => "teaser" and "full_nodes" => "full".
Comment #6
kristen polComment #7
Cyclodex commentedThat are great news!
Thanks so much for taking this into the code!
Will try to test this code soon.