Load The database schema in PostgreSQL

Load The database schema in PostgreSQL

I am following Install Drupal with PostgreSQL to install Drupal 7 with PostgreSQL. I’m stuck with the steps that says to use a script called database.pgsql which should be found the Drupal files. I can’t find that file. The directory that should contain it... read more
Load The database schema in PostgreSQL

db_update after a submit button is clicked

I want to update a field. This the code I am using to write values in the database. $enrollment = array( ‘database’ => ‘enrollment’, ‘username’ => ‘postgres’, ‘password’ => ”,... read more
Load The database schema in PostgreSQL

OnClick Event not Captured [closed]

I am currently developing a module in Drupal. I made a button that show a dialog box whenever it’s clicked. function myid_init() { drupal_add_js(drupal_get_path("module", "myid") . "/js/jquery-1.11.2.min.js");... read more
Load The database schema in PostgreSQL

How can I execute a JavaScript function before the form submission handler is called?

I am trying to save an image using the following code. function mymodule_user_page_form() { $form = array(); $form[‘submit’] = array( ‘#type’ => ‘submit’, ‘#value’ => ‘Save’, ‘#attributes’... read more
Load The database schema in PostgreSQL

Providing menu route parameter values from url

Suppose I have the following route in my ej.routing.yml file: ej.form.user.profile: path: ‘/user/{user}/ej_profile’ defaults: _title: ‘EJ Profile’ _form: ‘DrupalejFormUserProfileForm’ requirements: _role: ‘authenticated’... read more
Load The database schema in PostgreSQL

Change the default upload file path for a content type

The default file upload path used by Drupal is sites/default/files. How can the default path be changed for a content type? Sponsored by SupremePR Spotify Promotion Services SoundCloud Promotion TIKTOK Promotion SoundCloud Repost Service SoundCloud Promotion Service... read more
Load The database schema in PostgreSQL

$language variable causes a lot of notices as non-object

I get a lot of notices on my site. f.e. Notice: Trying to get property of non-object in drupal_lookup_path() (line 77 of /home/srv/www/mysite/includes/path.inc). Notice: Trying to get property of non-object in template_preprocess_html() (line 2497 of... read more
Load The database schema in PostgreSQL

Apache Solr Search proper syntax in url?

Can anyone provide some info on how to properly execute a filtered apache sold search through the url? So far I’ve figured out that ?fq[]=bundle:type will return a results filtered by that bundle type. I’ve also noticed that ?f[0]=machine_name:value will... read more
Load The database schema in PostgreSQL

Add flag counter in views Module(Search API index)

I want to add flag counter of content in views field. Authenticated users can flag(bookmark) contents. I want to know how many users flaged a content, And I want to add this in views field(display the number of times a node is flagged by a certain flag by Users).... read more
Load The database schema in PostgreSQL

Views contextual filters taxonomy name 2 fields using same vocabulary

I have a content where two fields using the same vocabulary. I want to show nodes related content filtered by the these fields. I try with relation Relationships content:field_1 (term from field_field_1) Taxonomy term: Content using field1 (Relationship term from... read more
Load The database schema in PostgreSQL

Relationships Between Nodes on Field

I’m trying to work with some information out of our enterprise system to create an employee directory, and I have a question regarding how I can relate nodes together. I have a content type called Employees, and it has a number of fields, including Employee ID,... read more
Load The database schema in PostgreSQL

Using git to fetch changes from testing version to live website

I am maintaining and developing a Drupal website and have a testing/development version of the site in a subfolder of drupal instalation. I started to learn git and I am wondering about how could I use it in my development process. I came up with following solution:... read more
Load The database schema in PostgreSQL

True/False exposed Views checkbox for Computed Field

Imagine a user has ten fields of type “List(text)” which each have for their widget “Check boxes/radio buttons”. Each one is displayed to the user as a single value checkbox which asks the user to state whether they agree with something or not.... read more
Load The database schema in PostgreSQL

How to use drush site-lists alias?

I several folders containing symlinks to my drupal sites. I’d like to use this folder structure to create an alias so I can run commands on each group of sites. I’m trying to do what “drush @sites status” will do, but on a smaller subset. I... read more
Load The database schema in PostgreSQL

how to get all options values of simple hierarchical select in drupal $form?

i have writed this code to unset empty terms : function shs_selective_form_alter(&$form, &$form_state, $form_id) { if ($form_id == ‘views_exposed_form’ && $form[‘#id’] ==... read more
Load The database schema in PostgreSQL

How to add active class to title which is loaded via views in block

I have created content type XXX, via views I collected all titles of XXX content. That all titles works as links, I want to add active class to title which was clicked in block. It should works as menu item. Sponsored by SupremePR Spotify Promotion Services SoundCloud... read more
Load The database schema in PostgreSQL

Webflow Integration

Provides an integration with Webflow. More details to come. SoundCloud Repost Service SoundCloud Promotion Service Spotify Playlist Promotion Spotify Playlist Placements read more
Load The database schema in PostgreSQL

Get webform values in page which is action for this webform

I have created a form using webform in Drupal 6. I have set a action URL like node/15 a new node. When form is submitted it will be redirect this node. I want to display all values which are filled by user at this page. Please help. Thank you Sponsored by SupremePR... read more
Load The database schema in PostgreSQL

How to execute ajax action after image file upload with media widget?

I want to prepopulate some node fields with image metadata (using the EXIF module) right after an image is uploaded/inserted in a node image field with media browser widget and before the node is being saved. By default, the EXIF module updates the node fields with... read more