New answers tagged 7
0
votes
trigger('RefreshView') problems with pagination
This is a long time bug in views. I remember I just had a lot of trouble with it on a web site years ago. Take a look at this: https://www.drupal.org/project/drupal/issues/3100826
1
vote
Accepted
Do I need to apply changes in default.settings.php to settings.php?
Speaking specifically about the last change done for the default.settings.php file: No, you do not need to apply that change to the setting.php file, except in the case you need to change the default ...
- 95.6k
2
votes
Accepted
How to upload .webp to Image field?
Drupal Core 7 does not yet support WebP but there are reportedly working patches on this in-progress issue: https://www.drupal.org/project/drupal/issues/3179554.
- 4,539
0
votes
How do I mimic Pathauto transliterated output for an alias in my custom PHP code?
On Drupal 8/9, you can use the Pathauto Alias Cleaner service :
/** @var Drupal\pathauto\AliasCleaner $cleaner */
$cleaner = \Drupal::service('pathauto.alias_cleaner');
$cleaner->cleanString($node-&...
- 719
0
votes
Advagg Bundler would NOT spit out same size CSS bundles
It appears that the only option is to add template CSS via drupal_add_js and give it a higher priority so that aggregates have similar sizes.
This is the code I added to template.php to get some files ...
- 7
1
vote
Limit the number of nodes per User
To limit users from adding more than one node for a specific content type, you can use the hook hook_form_alter() to alter the node form and disable the submit button if the user has already created a ...
Top 50 recent answers are included
Related Tags
7 × 26461views × 4470
theming × 2740
entities × 2666
nodes × 2390
users × 2152
forms × 2096
taxonomy-terms × 1119
database × 1020
javascript × 995
rules × 926
commerce × 919
hooks × 876
media × 859
ajax × 830
blocks × 811
files × 797
routes × 711
webforms × 617
i18n-l10n × 555
search × 540
emails × 465
datetime × 404
navigation × 401
panels × 376