Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Kudos for a great module! Any plans for porting it to D8 yet?
If not I'd like to help.
-AjitS on IRC
Kudos for a great module! Any plans for porting it to D8 yet?
If not I'd like to help.
-AjitS on IRC
Comments
Comment #2
AjitSComment #3
feldmarv CreditAttribution: feldmarv commentedAny news about this issue? Is a D8 port planned or is there a more nice way with Drupal 8?
Comment #4
j-vee CreditAttribution: j-vee as a volunteer commentedYou can now use Twig inside Views and you can use that to create conditional view fields.
For example, I have a boolean field in my News item -content type that allows the users to highlight certain news items. I added that field to my view and then in the field's settings Rewrite Results -> Override the output of this field with custom text I added the following simple Twig code:
So now my view field prints out either highlight / no-highlight depending on what the user has selected for each news node.
Very simple and this Twig templating in Views should prove to be super useful!
Comment #5
joshi.rohit100I have started the D8 port. Initial version can be found here - https://github.com/joshirohit100/views_conditional
Comment #6
anand.toshniwal93 CreditAttribution: anand.toshniwal93 as a volunteer and at QED42 commentedHi all,
I have completed the porting of the module, here is code repo: https://github.com/anandtoshniwal93/views_conditional
This is a complete port to D8, please review. I would also like to maintain it in future :-)
Comment #7
purushotam.rai CreditAttribution: purushotam.rai at QED42 commentedLooks good to me. Nice work @anand.toshniwal93
Comment #8
anand.toshniwal93 CreditAttribution: anand.toshniwal93 as a volunteer and at QED42 commentedComment #9
devad CreditAttribution: devad as a volunteer commented