Drupal Tip

Submitted by D2D on Sat, 02/16/2019 - 19:44

The video course that I took to get started in Drupal did a wonderful job of showing me how to create a custom block and put it in an area on my webpage.  Unfortunately, I have since found that except in rare instances it's the wrong thing to do.

The "right" way, at least as far as I am concerned is to create a content type and then create a view as a block.  Then place the block where you would have placed the custom block.

Doing it this way allows anyone with permission to edit that content to edit the content of the "custom" block.

Of course if it's a block you don't want anyone messing with, you should create a custom block and not give anyone permission to edit custom blocks.

Comment

Thank you.  I do not have a mailing list, and everything here will be kind of random, based on things that I run into in developing websites or questions from my hardware/systems customers.  If I start getting a lot of real comments, I will probably post more often.

Add new comment

Restricted HTML

  • Allowed HTML tags: <a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id>
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.