


How do I access the first value of a multiple value text field using replacement patters inside a rule?
For example, lets say I have a list of objects each stored as separate values of a text field. How would I access the individual values? I have tried using delta and I have tried using entity token but nothing has worked. I hope my syntax was just a little off. read more
Ajax callback return 500 Internal Server Error
file mymodule.inc : $items[‘ajax/channel/%/get-program’] = array( ‘title’ => t(‘get channel program by ID’), ‘type’ => MENU_CALLBACK, ‘page callback’ => ‘get_channel_program’, ‘page... read more
Export sorted View to JSON
I need some expert help. I need to export data into JSON. Here are the steps I followed: 1> Created a draggable view to allow admin to provide appropriate sort order. ref (https://3cwebservices.com/drupal/creating-drag-drop-sorting-interface-drupal-view) 2>... read more
How to show cart with number of items in Ubercart?
For his cart, my client wants a cart icon with the number of items in it. Not a list of all items. I searched around a little bit but didn’t find anything. read more
Restrict a role to administer certain vocabularies and terms, and remove the access to creating vocabularies
I gave to users the Administer vocabularies and terms permission to let them access the page on admin/structure/taxonomy, but I want to restrict the access to that page to certain vocabularies. The only issue that remains is the Add vocabulary permission that comes... read more
Making File Field description required
My users always skip adding the “description” to the file field because they can. I tried implementing the code posted here: How do I make Drupal File Description Field Required? (and thank you) — but I have a question. My users now do see a red... read more
Views to Recognize my Custom Entity’s One-to-Many Reference
I have a drupal 8 custom entity and have it referencing another custom entity of a different type. It is a one-to-many relationship like a department with assets. It won’t recognize the assets relationship (but it will recognize the one-to-ones). How do I make... read more
How to make gmap marker tooltip display node title without tags?
My project uses gmap of nodes locations. When marker is hovered popup tooltip displays link to node with node title in it. Any possibility to display node titles in marker tooltips without any tags? read more
text input in datepicker
how can i add some default text in my datepicker ? I want to add text in the box. read more
How to create a confirm popup when delete item with field collection?
I have configured a field collection field (unlimited items) for a content type and I want create a confirm popup when user delete an item. For this, i found that i can directly go and modify 2 functions in the field_collection.pages.inc file. They are: 1.... read more
Can I have both Language and Country path prefixes?
On our site, paths are all prefixed by language and country. For example: http://example.com/en/us/about In Drupal 7, a previous vendor implemented this by using the Persistent URL module, which rewrites all on-page URLs to include the prefix of your choice. PURL was... read more
How do I redirect the unsubscribe link in a newsletter to a particular node?
I am using the Simplenews module for sending newsletters, and the Mandrill service for sending emails. When I send a test newsletter to the test user, the unsubscribe link should be redirected to particular node, for example to node/2. How can I achieve this? read more
Nivo Slider jQuery plugin Not installed
I´m trying to install Nivo Slider to my website. I was following this tutorial from the official plugin website. I have the folder “all” an inside it I have “libraries”, “modules”, and “themes”. I extracted the... read more
How to conditionally update and import nodes using Migrate?
I need to migrate new nodes and update others in the same time. 2 installations of the same project are out of sync, which means, that the same nid may not indicate the same node on both sides. But I’m sure they’re the same if their titles are equal. So I... read more
Drupal + nginx no CSS
I’m having issues with drupal on nginx. CSS is not displaying but the website is working and I have no clue why this is happening. I have installed nginx + php70-fpm on Mac OS El Capitan and I am using the configuration from drupal website with a slight mod: The... read more
How to have recurring date events?
It appears there is no End Date or Date Repeat options for the datetime field in Drupal 8. Are there any contrib options for recurring events in Drupal 8? read more
Configure inline images upload path per content type
There is a core feature that lets you configure where to save inline images uploaded using CKEditor: Here you can specify the path where you want store inline images. But this is global configuration, which works for all content types. I want to have ability to... read more
Access to referencing entity field from referenced entity template in Drupal 8
I’m building a custom block type with referenced nodes, on the “view” of the block type I configured to show the full node instead just links. And I want to access from the node–type.html.twig to some of the fields of the parent block (when the... read more