Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
I'm working on a feature, that allows adding content like YouTube videos, menus, carousels, etc. There's a field for selecting the style and another for selecting the number of columns for the content. I want the columns number field to change depending on the style the user chose.
Example:
I choose Caret as style, and the "number of columns" options must be three or four columns. Then, if i choose Hover, the number of columns must be one or two.
I need to make an entity reference field unique so that the referenced entity type can only be used once and gets deleted then from the list of available entities that can be referenced to. So for example:
I have the content types:
1.) "Bought items" with the field "product id"
2.) "Sold items" with an entity reference that references the field "product id" of "bought items"
How can achieve that when I make new content of "Sold items" the field product id can just select ids that haven´t been referenced to earlier
Even after exploring and experimenting with drupal 7 and view with its numerous setting , contrib modules I couldn't find how to get count of nodes without any tags(term ref)/Entityreference.
setup with plain Drupal 7 vanilla
1. create some contents of type article with tags(sports,tech,politics) and lets have content without tags
2.create view of type articles with fields as format
i would love to know if it's possible to create a taxonomy termi automatically (inside a node) when i save this node, copying the term from another field, ex. from the title.
i explain:
i have 2 different content types: ARTIST and ARTWORK
when i create an artist i would love that the system will create automatically an entry with the name of the artist in the vocabulary "artist names"
so when i create an artwork i can select which artist created it.