Title for block and title for content

Description

Currently the block title (for content and text blocks) is used in the backend as well on the front-end. It should be possible to separate these titles.

Edit pages:
/admin/block/new?class=Integrated\Bundle\ContentBundle\Document\Block\ContentBlock
/admin/block/new?class=Integrated\Bundle\BlockBundle\Document\Block\TextBlock

Views:
IntegratedContentBundle/Resources/views/themes/default/blocks/content/default.html.twig
IntegratedBlockBundle/Resources/views/themes/default/blocks/text/default.html.twig

New field: Published title

Checkbox: "Use title". When the checkbox is unchecked, it is replaced by a text field and a "Published title" can be entered:

When Title and Published title are exactly the same the checkbox should appear again.

It should be possible to use an empty "Published title". So an empty string in the database should be an an empty "Published title", while a null should use the "Title" (this also makes sure this feature is backwards compatible).

Technical tasks

None

Deployment actions

None

Activity

Show:
Jeroen van Leeuwen
December 3, 2015, 10:40 AM

there is one comment for you in the block bundle: I want to merge the PR in the 0.4 branch instead of the develop.

Marijn Otte
December 10, 2015, 1:23 PM

Last comment has been fixed by vp

Marijn Otte
December 23, 2015, 8:06 PM

Two small bugs:

Label "Published title" should be visible before the "Use title" checkbox:

When typing in the "Title" field the "Use title" checkbox disappears and the textfield appears. This is not OK, this should only happen when unchecking the "Use title" field.

Marijn Otte
January 11, 2016, 6:40 PM

Does not work correctly yet:

  • When I start typing in the Title field the Published title field disappears. This is not OK: the field should not change when changing the title.

  • The label is now Usetitle but should be Use title

Marcel
May 4, 2016, 8:45 AM

You can't go back to the checkbox 'Use title'. What if a user first wants to type a published title, but then changes his mind and wants to use the title?

Assignee

Unassigned

Client

None

Fix versions

Configure