Make block titles optional

Bug #655443 reported by Richard Mansfield
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mahara
Won't Fix
Wishlist
Kevin Dibble

Bug Description

In some blocks, like 'blog', the title defaults to the title of the blog if you leave the title blank, but others (like text box) let you have no title just by leaving it blank (and the view editor helpfully shows "[No title]").

I think we need a "No title" checkbox for the blocks that don't already allow you to have no title by leaving the title blank. Or maybe instead, a blank title should really mean 'no title' and there should be a checkbox on some of the blocks saying stuff like "use the blog's title".

See some other discussion on https://bugs.launchpad.net/mahara/+bug/617159

Changed in mahara:
status: New → Confirmed
importance: Undecided → Wishlist
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

In his two plugins, Facebook Like and Tweet This ( http://mahara.org/view/view.php?id=35645 ), Gregor included the option to suppress the title. That way, no title is necessary and the line that usually separates the block title from the rest is not show.

tags: added: blocks
tags: added: bite-sized
Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

Certain block types can already have empty titles, e.g. text, images. When in edit mode, they show up as "No title" because we need something to hold onto for moving the block or have the icons, but other blocks still default to a title.

Revision history for this message
Mahara Bot (dev-mahara) wrote : A patch has been submitted for review

Patch for "master" branch: https://reviews.mahara.org/9670

Changed in mahara:
assignee: nobody → Kevin Dibble (digitalskill)
status: Confirmed → In Progress
Revision history for this message
Steven (stevens-q) wrote :
Download full text (3.7 KiB)

TITLE: Make block titles optional

BUG SUMMARY: In some blocks, like 'blog', the title defaults to the title of the blog if you leave the title blank, but others (like text box) let you have no title just by leaving it blank (and the view editor helpfully shows "[No title]"). See some other discussion on https://bugs.launchpad.net/mahara/+bug/617159

ACCEPTANCE CRITERIA:
1) Added a switch to the form to allow Block titles to be hidden. If it is not set, it will default to false to show the blocks title.
2) The following blocks are not configurable and will not have the ability to use this "Hide title" functionality
    a) Comments block
    b) Signoff block
    c) Wall block (profile page)
    d) My friends block (profile page)
    e) My Groups (profile page)
    f) My portfolios (profile page)
3) Functionality should work on the following pages:
    a) portfolio pages
    b) profile pages
    c) dashboard pages
    d) group pages
    e) Institution pages
    f) Site pages

==============================================

Commit hash: 5a981ed236b87c02d7b8d79fbcbdc5264d853f88
Environment tested: Master
Browser tested: Chrome
Theme used: Primary school

PRECONDITIONS:
------------------------
1) Mahara User exists (User4)
2) Mahara User4 has a journal with 3 journal entries
3) Group exists

TEST STEPS:
------------------------
1) Log in as Mahara User4 (no roles)
2) Create a portfolio page give it a name, and description text - use default settings (3 column layout)
3) Add a "Journal block" - use default title
4)VERIFY the Block title field default value is "Set block title" ✔
4)VERIFY there is a Yes/No toggle switch labelled "Hide title" ✔
5)VERIFY that the default setting for the "Hide title" toggle is "No" ✔
6) Set the "Hide title" switch to = Yes (leave the rest of the fields as they are)
7) Click "Save" button
8)VERIFY "Journal block" is displayed as follows:
    a) Block title = "<users name> Journal" ✔
    b) existing journal entries also displayed ✔

NOTE: while user is in edit mode the block titles will display - User must view the displayed page to see effects of hiding block titles

9) Click the "Display page" button
10)VERIFY that the "Journal block" is displayed with NO title but the existing journal entries are displayed ✔

# Add a Text Block with a title - do not use the "Hide title" field

11) Go back to edit mode for the page and - Add a "Text block" as follows:
    a) Add a title in the title field
    b) Ensure "Hide title" field is set to = Yes
    c) Add 1 paragraph of text in block content field
12)VERIFY (in edit mode) that the "Text" block is displayed with a title and 1 paragraph of text is also displayed ✔
13) Click "Save" button
14)VERIFY that the "Text block" is displayed as follows:
    a) Block title = [No title] ✔
    b) 1 paragraph of text is displayed ✔

# Add a Text Block with NO title - do not use the "Hide title" field (leave as default value)
NOTE: This is existing functionality

15) Go back to edit mode for the page and - Add a "Text block" as follows:
    a) Delete the title field
    b) Ensure "Hide title" field is set to = No
    c) Add 1 paragraph of text in block co...

Read more...

Revision history for this message
Kristina Hoeppner (kris-hoeppner) wrote :

The block titles are going to change and won't be auto-populated anymore, thus making this wishlist item redundant. The project to implement the new block types has just been confirmed and thus the wishlist item could not have been closed before then.

See https://wiki.mahara.org/wiki/Developer_Area/Specifications_in_Development/Basic_magic_block for more information on the changes to the entire block selector.

Changed in mahara:
status: In Progress → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.