0
votes
0answers
2 views

Imce file/image browser not showing any buttons tab

I am using imce as image browser. I installed imce for filefield module to select files from imce repository and i have given all permissions as in below image When it will go to imce repository ...
0
votes
0answers
6 views

How can i add new action for selected users

I would like to add a new action within the With selection field and i don't know how to alter that data, i have tried with hooks but i can't find something that's working. If you ever done ...
0
votes
0answers
4 views

Adding attachments to drupal forum

I have migrated phpbb forum to D7 advanced forum. I missed to migrate the phpbb forum attachments to D7. Now i want to upload all the attachments to the forum postings. Can you suggest the best way to ...
0
votes
0answers
5 views

How to sort taxonomy facets alphabetically in views?

I have created an expose filter using facet indexed field. Added an sort expose filter to it. There is a taxonomy term field. User need to sort that field ASC/DESC alphabetically order. But it sort ...
1
vote
1answer
7 views

How can I list all the IP address and referrers of visitors of a specific node?

The tracker module is active on the website and I want to get all the Track statistics of a node created. www.example.com/node/3/track lists all the redirection etc. But what I want to do, is to get ...
0
votes
0answers
8 views

change font size for displayed code [on hold]

How to change the font size for a piece of code that is displayed as part of a web page? Specifically, my web page contains a Python script, displayed using SyntaxHighlighter. The default font size ...
1
vote
1answer
16 views

Insert a form to a Basic Page

I created a contact form in Drupal 8 and would like to use that form on several pages across my website. Can I do something like Insert / Form or use some sort of shortcode to display the form?
0
votes
1answer
13 views

How to get content node link url in twig template

I am struggling on getting the node url link on my template. {{ content.node_link }} returns the full link but I only need the url. Any idea on retrieving only the url?
0
votes
0answers
5 views

Login success but logout fails Drupal 7

I'm trying to customize login, logout functionality in my drupal site. My custom login function works fine by using the below code: function my_module_custom_login() { $username = ...
0
votes
0answers
5 views

Redirect the page after login with using modal form

I want to redirect the page after user login. for login i have using modal form. I already use the Login designation module but its not working. Any idea how do this?
0
votes
0answers
6 views

In view adding entity reference relationship - throws an error (Multifield Contrib Module)

Multifield Contributed Module - https://www.drupal.org/project/multifield Company Content Type has multifield 1) Company Division - Entity reference 2) Company Categroy - list While adding ...
1
vote
3answers
36 views

set default timezone, date first day and date format medium via drush

Is there is away to set : default timezone date first day date format medium via drush instead of doing it via drupal web interface ?
0
votes
1answer
15 views

How to get a link to entity_reference in ListBuilder?

I have a custom entity (Person) with these fields: ID, nom, prenom, telephoneportable, estactive, adherentid, userID, created, changed. I created it with baseFieldDefinitions. adherentid is a ...
0
votes
1answer
15 views

Adding two contextual filters (Content : nid)

I want to display two type of contents : News and Events. So I added them in the filters criteria. This works great. Now I want them to be further filtered on the basis of the category the News and ...
-1
votes
0answers
11 views

Add method or entity in commerce. store

Hi all i am using market place module in drupal commerce problem is that how the store user add their payment method on store there is an add entity option but i want option that user can ...
0
votes
1answer
8 views

Import excel in field collection items

I m using field collection items in my content type for particular upload function. I want to use import excel feature to bulk upload with field collection item fields. when i click on import excel ...
0
votes
0answers
10 views

Add two or more aggregation to a single column

Is there a way to add an aggregation , say sum to a column and on the next row add another aggregation say average to the same column, using views aggregator Plus as what i have been able to achieve ...
1
vote
2answers
29 views

How to disallow node authors to change node content if comments were submitted for that node?

On my site we have enquiries (nodes) and price offers (comments). So if there's at least one price offered (a comment submitted) the enquiry details (node) shouldn't be changed. Is there any way to do ...
0
votes
0answers
16 views

How to render form elements using form alter

I need to render contact form field elements using form_alter function. When I print $content variable in tpl file, the contact form loads entirely, instead of that I need to render fields separately ...
0
votes
1answer
25 views

How do I show a view item as grid and view item as list, dynamically?

I have created a view to display list of user with their details, and I want to display a widget on views display page which shows item as view item as grid and view item as list dynamically. How ...
0
votes
0answers
15 views

How do I create sub-directory-based multisite sites?

I have a www.abcd.com website in Drupal 8.0.5. I want to create www.abcd.com/subsite1 using the same theme and a different database. I looked at ...
0
votes
0answers
7 views

Entity is in queue for solr

We are using Search Api, Facet Api and Search api solr in website. We have configure solr at our server but we are getting issue that content is not indexing properly. We have also check in error ...
0
votes
2answers
20 views

Search box label

I am using the code found on https://www.drupal.org/node/154137, and I added this code to my template.php file. function sample_theme_form_search_block_form_alter(&$form, &$form_state, ...
0
votes
0answers
7 views

Mark added to cart products in listing of products [on hold]

In my list of products view, I would need to display a text in every product when the product is in the cart. For example, I want to display the text "WAS ADDED", below every product that was added ...
0
votes
0answers
6 views

Views list content from different content types

View is setup to list content from content type B and C. Content B has title, image and date field. Content C has title and date field, and i want to pull image field from content creator. When ...
0
votes
0answers
7 views

Programmatically detect panelizer columns layout

Can you give me some directions how to properly detect the panelizer current layout. My idea is when one pane is added to the page to programmatically detect is it 1, 2 or 3 columns wide and based on ...
0
votes
0answers
17 views

Custom translatable content entity appears twice when choosing the entity type to create a view

I'm Developing a custom module with custom content entities that needs to be translatable. The problem is that when they are made translatable by adding: translatable = TRUE in the @ContentEntityType ...
1
vote
0answers
11 views

finding a route to form mode and add it local tasks

I have a content type named "film" and a form mode named "film_artistic" in my_module.routing.yml, I have added this entry: my_module.film.artistic: path: 'node/{node}/artistic/edit' defauts: ...
0
votes
0answers
15 views

Make a node field read only after the node has been created

I'm building a Drupal 8 module which will create several content types (with several fields) when the module is installed. The content types, field storages field instances, form displays & view ...
0
votes
0answers
15 views

Load custom fields with entityQuery

I'm trying to load a user by it's uid via an Entity Query, this seems to work, however i'm missing my custom fields defined on the Entity User. I'm getting all the default fields like 'username', ...
0
votes
0answers
23 views

How to copy Drupal website to CD or USB for offline use? [on hold]

My cPanel subscription will come to an end soon and I want to move my site to a USB stick or CD and still be 'runnable' / executed. It is currently on a cPanel server... I have seen these options but ...
0
votes
1answer
34 views

Apply a style to the price

I created a newsletter with the module "Simplenews". I also created a custom template for my newsletter : <table border="0" cellspacing="0" cellpadding="0" width="100%"> <tr><td ...
0
votes
1answer
12 views

Select form, write selected item to database

I'm using Drupal 7 and Form API. My Problem: I want to load rows from my Database and put them in a Select Form(Form API). After this form is submitted I want to write the selected option in my ...
0
votes
0answers
12 views

Filter taxonomy terms view by a term of another taxonomy of the same node

I have a content type "Product" with 2 taxonomies attached - "Brands" and "Product Types". Brands: - Brand 1 - Brand 2 - Brand 3 Product Types: - Glasses - Sunglasses - Contact Lenses ...
0
votes
0answers
20 views

Which button id triggered the form submission

My module hade a form and the form have 5 buttons: create, edit, save, etc.. also my module form use ajax to send the requests, and the function look like this: $form['dialogCreateButton'] = array( ...
0
votes
1answer
13 views

Select nodes based on entity reference value

I have a content type student, and it has an Entity Reference field named as "field_offline_course_reference" and a email field "field_offline_course_student_ema" I need a list of all emails of ...
1
vote
1answer
19 views

How do I get rid of the <h1>Search</h1> at the top of the search results page?

A customer of mine insists on having Search Results as a heading. I can set this on the block I have created using the Custom search module. How do I get rid of the <h1>Search</h1> at the ...
2
votes
2answers
22 views

How to display custom data array via Twig

I've created service which gets the raw data from custom content type. It looks like this : Array ( [front_page_slider] => Array ( [1] => Array ( ...
0
votes
0answers
11 views

Help me build a ISRC module [on hold]

Background I'm running a record label site and one of the key identifiers of digital songs are ISRC codes - it's basically a unique identifier for a particular recording of a song that's used across ...
0
votes
1answer
12 views

Display users created only by the current user in Admin/People

I have created a user myid_administrator which has a role MYID ORGANIZATION ADMINISTRATOR. I enabled 'Administer users' to enable the user, create users. In the url admin/people. I can see users ...
0
votes
0answers
16 views

Minify php could I optimize code here? [on hold]

I search and found https://abbseo.com/php-minify Could I optimize code here? <?php echo 'test'; //comment //newcmt ?> To result : <?php echo 'test'; ?>
0
votes
0answers
11 views

Change text in popup exposed date filter

I have an exposed popup date filter that selects by day. When a user sees it, it looks has this text: May 28 2016. Would I be able to edit it so that it would look like "May 28th, 2016"? Thanks in ...
0
votes
0answers
12 views

User order views does not display orders for user despite permission

The user order views' access permission is "View own orders of any type". I have given this permission to authenticated users yet the user sees only this message "You have not placed any orders with ...
0
votes
1answer
27 views

Bind click event to ajaxify form button

how the title says I would like to trigger javascript (jQuery) event from generated Drupal form button. I already add an id to the button and added the javascript in theme file like so: ...
0
votes
1answer
17 views

Libraries Not Loaded After Cache Clear / Reload [on hold]

I'm experiencing a problem with drupal 8 whenever I clear the cache, my custom theme's libraries(ex: the css and js) will not be loaded and I must reinstall the whole drupal to make it works again ...
0
votes
0answers
25 views

Refreshless doesn't work

I just tried to setup the RefreshLess module for my Drupal 8 site; after enabling it, I just see that some meta information is added to the DOM, but switching pages using links seems not to be ...
3
votes
3answers
64 views

How do I theme a link with twig for a specific content type?

I'm trying to create a custom file-link.html.twig for a particular content type. I've looked at https://www.drupal.org/node/2354645 which doesn't link plugin theme twigs like file-link but tried ...
0
votes
0answers
10 views

Rest OPTIONS route

I have a custom route defined which needs to respond differently to different types of request methods. It works with GET, POST, PUT and DELETE, however for some reason an OPTIONS call never reaches ...
0
votes
0answers
22 views

Update database/dom after dialog button submitted with jQuery

Clicking a dialog button I want to update Drupal database using jQuery .ajax() function! I want to know if in first place is secure to do so or is another method to handle the synchronous requests? ...
1
vote
1answer
43 views

Get whole node by post type

Is there any way of getting a node by its post type? I've tried with entity query but it doesn't really work. EDIT: So far I've tried do it like this: $query = ...

15 30 50 per page