Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By arebacollins on
Hello,
I am talking about a long text field, complete with a WYSIWYG editor that is used to create a chapter in a long document, and that has an "Add more" at the bottom so the document can have as many of those as possible. Is it possible to insert a switch, say to the right of the field in edit mode that has boolean option to either publish or unpublish just that instance? so that I only display text blocks whose status is "published".
Many thanks.
Comments
I would like to add that
I would like to add that switch at this point. to enable / disable display of that paragraph, and if this is possible then import some content and map those respectively in the same manner.
Field Collection
You need to use a field collection module.
https://www.drupal.org/project/field_collection
You need to create one long text field and and on/off publish there.
Then you need to get in you content type with unlimited values.
---
Kind regards,
Thank you,
Rakesh James
Thanks: But importing with feeds module....
Thanks @Rakesh, This solves one problem, creates another though. It seems feeds doesn't work with field collection...
Can this be added to the code direct?
I really don't need it to be fancy, all I need is a switch to make it invisible, or not. and the ability to update it on feed import.