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 need a field to get a page url or a file, template loops this field content and if contains file will show Download button else shows View button, so in dashboard if user uploads any file, template ignores the text field
currently I used default drupal media file contains description, so if description field filled it ignores file rendering but the problem is that user must upload a file to access description field means at least must upload a file on server
I tried to use my custom module contains AJAX behavior and also using Webform module that works as dialog. both of them working locally but on the host i get console error as below and both of this module navigate to the module relevant path instead open up as dialog
I made page view and added Content: Translation language (= Interface text language selected for page) and Rendering Language: Interface text language selected for page and needed override default views-view-unformatted-list template so in my template have
unfortunately to have different header banner for each page made by view we have to use additional elements like blocks as header, so first i created content type for my page, and collect them by view page, then created a custom block for banner image and add it as header.
the first weird thing is admin has to create and modify contents and banner image in different area!!! i have no idea about this concept
the main question is how can i access the field value of custom block put inside header of this view?