"Subscribe to newsletter" headline should be left out, and then let the user give the block a headline and print that instead.

CommentFileSizeAuthor
#8 example-formtitle.JPG41.81 KBKoCo
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

dboulet’s picture

Category: feature » support

If I understand correctly, you can do this already—just enter your headline into the 'Block Title' field on the block settings page.

levelos’s picture

Status: Active » Closed (works as designed)

dboulet is correct

lsolesen’s picture

Status: Closed (works as designed) » Active

You are right. But if I leave the title blank it default to "Subscribe to newsletter", which does not make sense. I do not want a title on the block, and I should decide, not some default :)

dboulet’s picture

Status: Active » Closed (works as designed)

Hi lsolesen, that is how all blocks work in Drupal—they all have default, or "suggested" titles. You can turn it off by entering "<none>" as the title for the block.

lsolesen’s picture

Doh!

KoCo’s picture

Component: Code » General
Priority: Normal » Minor
Status: Closed (works as designed) » Active

It still is somewhat valid, if you want do downsize the form.

In the list settings page, the label is required. Which acts as title for the form.
When using the form in a block, you can choose the block title.
But many themes use different css tags and styling for different titles.
In this case the title for a block or form could be totally different.
A lay-out with several blocks in a row, ...

Off course, you could css the title away, but wouldn't it be nicer to leave out un-needed html code.
So, Is it possible to create a simple switch, that triggers some form hook to delete the title?

Sorry, but I'm fairly new at working with entities and the form API.
If it's too much of a hassle, please kill the status of this issue again.

thx
Koen

dboulet’s picture

Hi Koen, please see my comment in #4. Does that not accomplish what you are wanting?

KoCo’s picture

FileSize
41.81 KB

Hi dboulet,

Actually it doesn't, both elements get different css classes.

A block title is a standardized element throughout a Drupal site.
The form title maybe styled to look like it, but that's usually a lot of hassle.

I attached a simple example, when blocks are in a row.
The standardized block title would suffice and lay-out nicely with blocks next to it. The form title would be overkill here.

Off course the simplest of solutions is to set style 'display: none;' on the form title id.
So this is definitely not a major issue ;-)

thx
Koen

Perignon’s picture

Issue summary: View changes
Status: Active » Closed (outdated)