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.
//:Create a random oneliner on your page
//:Use: [[OneLiner]]. The file with the oneliner data is located in /modules/droplets/example/oneliners.txt
$line = file (dirname(__FILE__)."/example/oneliners.txt");
shuffle($line);
return $line[0];
with this snippet i was able to display sentences out of the oneliner.txt file
random one sentence a time
is there a Drupal Modul oder a code snippet for this.
Hi... I'm having trouble with some files in the "Status report" in "Reports" link at the back end...
In the configuration section I got this message
Not protected
Protection disabled
The file sites/default/settings.php is not protected from modifications and poses a security risk. You must change the file's permissions to be non-writable.
The file sites/default/settings.local.php is not protected from modifications and poses a security risk. You must change the file's permissions to be non-writable.
I'm looking for a text filter module that will effectively replace something like:
[node:1234]
with something like
<a href="url-alias-to-node">Node 1234's Title</a>
My intention is to minimize the required inline code when editing content that links to internal resources. I believe a filter is the best way to achieve this, as it will also allow the node title and path to be updated when they change.
New to Drupal (been a trial by fire). Everything is set up and working fine (Windows10/Apache2/MySQL/Drupal8). This is an in-house machine and files would be moved directly to the web server. What is the easiest way to dynamically display all files available to my users for download (the goal is to be able to simply add a file(s) to a directory and have it/them available for the client immediately)? Everything is in Directory/File hierarchical order already. For example:
I'm running Drupal 8.1.5 site. At /admin/config/development/performance the "Bandwidth Optimization" settings for "Aggregate CSS Files" and "Aggregate Javascript files" are disabled, so I cannot change their state. Can you help me, please.