Allow custom templates to be added to all themes

Bug #898437 reported by Richard Mansfield
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mahara
Fix Released
Wishlist
Richard Mansfield

Bug Description

Sometimes a with multiple themes in use wants to add a custom template (for example, a custom sideblock) that appears in all themes, including the core themes and raw.

It is usually possible to achieve this by putting the custom template into the raw theme, but it is cleaner to keep custom templates outside raw, and custom themes should not be required to inherit from raw anyway.

We should add a new directory under local/ to store these custom templates.

Tags: newfeature
Revision history for this message
Mahara Bot (dev-mahara) wrote : A change has been merged

Reviewed: https://reviews.mahara.org/905
Committed: http://gitorious.org/mahara/mahara/commit/2ab3ed094e612234e8c1ad7adaeb1c79cf1c8ac5
Submitter: Richard Mansfield (<email address hidden>)
Branch: master

commit 2ab3ed094e612234e8c1ad7adaeb1c79cf1c8ac5
Author: Richard Mansfield <email address hidden>
Date: Thu Dec 1 14:06:16 2011 +1300

    Allow custom templates to be added to all themes (bug #898437)

    Sometimes it is useful for a site which has multiple themes in use to
    be able to add a custom template (for example, a custom sideblock)
    that appears in all themes, including the core themes and the raw
    theme.

    This patch adds local/theme/templates/ to the template search path, as
    a fallback for when a template is not found in any of the theme
    directories.

    It is usually possible to achieve the same thing by putting the custom
    template in the raw theme, but it is cleaner to keep them outside the
    raw theme, and custom themes should not be required to inherit from
    raw anyway.

    Change-Id: I4f188ae3985741183d1c04f71c6c42e3ca4675cf
    Signed-off-by: Richard Mansfield <email address hidden>

Changed in mahara:
status: In Progress → Fix Committed
tags: added: newfeature
Revision history for this message
Melissa Draper (melissa) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

 status fixreleased
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPjrZVAAoJECXBtiziiXdcS3oIAJgrwXm2JGD/y1azBwhHoMLL
x7gg30QpnnlKu2Cnz9FQBBNXS3c3avtDysNR6UAmXmtO4IHvrcl8QZB4NP2j31Qd
WbtmXSjKFijA1wGhqhIJXrRxTDZQBEHNLIRnIUIPqny+YRJtqHIR3a5rSRYUEiiR
UreRpHjMubPyNKbJSHclRKK4LzOZAng7c8CwL0f+y1GnmUoFVy8gZweasWtq0pwk
XWHYlOxf+i11rrEyV3abVFsWGn/F7Fj2uI00V3E5U/15cYb0+WQ9eiSDnDpKC7l0
QvcNHx6w9vuN21ROyjBrOfhfD+s6aBow046EMBpR7SFbR7vCOdxwxh4WYcqIKVM=
=bsqZ
-----END PGP SIGNATURE-----

Changed in mahara:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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