Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 300827

Views blocks' machine names do not fit the standard Drupal pattern

$
0
0

Coming at you from #1957276: Let users set the block instance title for Views blocks in the Block UI . Here's a follow-up from that issue:

"Recent content" block in HEAD:

Bock title is editable, machine name is hidden

"Content" block created via adding a block display to the Front page view:

Machine name is visible and wide, title is hidden

...and with Override title checked:

Title fieldset expands, with description pointing to view edit page.

The one remaining visual problem here is the machine name field does not follow the standard pattern (also, that extra fieldset around the title is something non-standard we don't do elsewhere). So, would it be possible for this instead to look like so (standard machine name pattern with text field simply disabled):

Use standard machine name pattern, but with name field disabled at first

...and with Override title checked (field becomes non-disabled, description shows up):

Field becomes un-disabled, description shows up below.

...because then there is pretty much literally no difference between the two and so all UX concerns around Views vs. normal blocks are addressed.

And actually, now that I think about it, that dynamic description thing is probably more trouble than it's worth. So it'd just be the checkbox toggling the disabled property (and possibly some CSS; Firebug didn't seem to change it to grey when I did that) on the text field then.


Viewing all articles
Browse latest Browse all 300827

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>