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 content field 16) Click "Save" button 17)VERIFY that the "Text block" is displayed as follows: a) Block title = [No title] ✔ b) 1 paragraph of text is displayed ✔ 18) Click the "Display page" button 19)VERIFY that the "Text block" is displayed as follows: a) No title is displayed ✔ b) 1 paragraph of text is displayed ✔ 20) run the above script for the following pages: a) portfolio pages ✔ b) profile pages ✔ c) dashboard pages ✔ d) group pages ✔ e) Institution pages ✔ f) Site pages ✔ Catalyst QA Approved ✔ -- You received this bug notification because you are a member of Mahara Contributors, which is subscribed to Mahara. Matching subscriptions: Subscription for all Mahara Contributors -- please ask on #mahara-dev or mahara.org forum before editing or unsubscribing it! https://bugs.launchpad.net/bugs/655443 Title: Make block titles optional Status in Mahara: In Progress 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 To manage notifications about this bug go to: https://bugs.launchpad.net/mahara/+bug/655443/+subscriptions _______________________________________________ Mailing list: https://launchpad.net/~mahara-contributors Post to : mahara-contributors@lists.launchpad.net Unsubscribe : https://launchpad.net/~mahara-contributors More help : https://help.launchpad.net/ListHelp