Snippet or module for random oneliner on page

Hi
can somebody help me solve the problem.

//: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.

thanks for any tipp

Problem with protected files...

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 tried to fix it doing:

[Node:ID] to Linked Node Title via Text Filter?

Hi!

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.

File/Document Distribution

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:

Drupal 8 - New Field not showing

Hi,

I recently added a Field "Features" (Text:Formatted Long) to content type "Products".

So I now have 3 fields in "Products".

Two of the Fields show up> Text and Image

However - "Features" does not show up. "Features" is an unordered list.

I'm new to drupal but seem to be catching on okay. This has me stumped.

Any help is appreciated. Thanks!

Bandwidth Optimization options locked

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.

http://es.tinypic.com/view.php?pic=280jhvt&s=9#.V_5gE-jhCUk

my config:

http://es.tinypic.com/view.php?pic=2hxste&s=9#.V_5gZOjhCUk

Pages

Subscribe with RSS Subscribe to RSS - Drupal 8.x