Forums | Mahara Community

Developers /
Editing folder heading display


Gordon McLeod's profile picture
Posts: 197

09 February 2013, 3:27

Hi,

I'm looking for a way to hide header elements when displaying a folder block on a page (ie Content: and title/description heading), as they take up space and don't add anything to how we tend to use folders. I don't think it's a theme specific question as I'm guessing the default settings are pulled in from a template somewhere - but I can't work out exactly where to modify the settings. I've tried using Firebug, but don't see anything that points me to where these items are being defined.

The title text that I want to remove is highlighted in green in the example screenshot I've added here - https://mahara.org/view/artefact.php?artefact=251256&view=74184

Any advice on where to find and/or edit these header elements would be much appreciated.

Regards, Gordon.

Gregor Anželj's profile picture
Posts: 349

09 February 2013, 5:47

Gordon hi.

I believe the answer to your question is to comment lines 7 and 9-16 in the folowiing tmeplate file: {htdocs}/artefact/file/theme/raw/folder_render_self.tpl

Gordon McLeod's profile picture
Posts: 197

09 February 2013, 11:46

Hi Gregor,
Many thanks - will try that.
Regards, Gordon.
Gordon McLeod's profile picture
Posts: 197

11 February 2013, 23:01

Hi Gregor,

Once I figured out the curly bracket commenting syntax for.tpl files it worked a treat.

For reference for anyone else wanting to do this -

{*        commented code     *}

Many thanks, Gordon.

4 results