Message from discussion
Template inheritance from page.parent
Received: by 10.224.215.194 with SMTP id hf2mr46988989qab.0.1342043551026;
Wed, 11 Jul 2012 14:52:31 -0700 (PDT)
X-BeenThere: mezzanine-users@googlegroups.com
Received: by 10.229.106.201 with SMTP id y9ls1526871qco.8.gmail; Wed, 11 Jul
2012 14:52:29 -0700 (PDT)
Received: by 10.224.215.194 with SMTP id hf2mr46988926qab.0.1342043549754;
Wed, 11 Jul 2012 14:52:29 -0700 (PDT)
Received: by 10.224.215.194 with SMTP id hf2mr46988923qab.0.1342043549738;
Wed, 11 Jul 2012 14:52:29 -0700 (PDT)
Return-Path: <brian.sch...@nimbisservices.com>
Received: from mail-qc0-f173.google.com (mail-qc0-f173.google.com [209.85.216.173])
by gmr-mx.google.com with ESMTPS id z30si921203qcd.3.2012.07.11.14.52.29
(version=TLSv1/SSLv3 cipher=OTHER);
Wed, 11 Jul 2012 14:52:29 -0700 (PDT)
Received-SPF: neutral (google.com: 209.85.216.173 is neither permitted nor denied by best guess record for domain of brian.sch...@nimbisservices.com) client-ip=209.85.216.173;
Authentication-Results: gmr-mx.google.com; spf=neutral (google.com: 209.85.216.173 is neither permitted nor denied by best guess record for domain of brian.sch...@nimbisservices.com) smtp.mail=brian.sch...@nimbisservices.com
Received: by qcab12 with SMTP id b12so1301801qca.18
for <mezzanine-users@googlegroups.com>; Wed, 11 Jul 2012 14:52:29 -0700 (PDT)
d=google.com; s=20120113;
h=content-type:mime-version:subject:from:in-reply-to:date
:content-transfer-encoding:message-id:references:to:x-mailer
:x-gm-message-state;
bh=pzI03kcVUg3ms4k4OkE0xuDyuaQIP1D2V1+5Kodh8sM=;
b=itr/juDlhoMbZTlf72RRVSAFTR5qPn12spRwm0q0rJUhgHsFRMnDOTPZlmvkvGIxtr
zWBx7x8XAXMo9vhYiT2TwQpXNmrA4F18fjqE8X3cRHkb34e5oal0VpWdd68d7DjnFblS
dQvltX6jdO+tX0dCcZ8d1MTUvWkcuD2g5FbcR8To3//KsdbUQTsluDMqfqyZuCo8dbh8
1MwC7iB45dMCkQ5g3HMIO1QPxlolVqSBgvywOjx1PFrQhzatRpSmbEhGNOaQ5MWJtyf/
JocbqDDvuTJYvY6ewye3wPrGAXWKcrU5ihXC/0wMiTeP/cvC4GvP3dfcbgeTcTeCFsjh
g3eA==
Received: by 10.224.117.13 with SMTP id o13mr90451829qaq.73.1342043549532;
Wed, 11 Jul 2012 14:52:29 -0700 (PDT)
Return-Path: <brian.sch...@nimbisservices.com>
Received: from [192.168.0.247] (173-10-139-210-BusName-washingtonDC.hfc.comcastbusiness.net. [173.10.139.210])
by mx.google.com with ESMTPS id cg7sm4571465qab.19.2012.07.11.14.52.28
(version=TLSv1/SSLv3 cipher=OTHER);
Wed, 11 Jul 2012 14:52:28 -0700 (PDT)
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0 (Apple Message framework v1278)
Subject: Re: [mezzanine-users] Template inheritance from page.parent
From: Brian Schott <brian.sch...@nimbisservices.com>
In-Reply-To: <1268079d-1683-4b40-8ae0-47bb4233bb94@googlegroups.com>
Date: Wed, 11 Jul 2012 17:52:27 -0400
Content-Transfer-Encoding: quoted-printable
Message-Id: <A16A05B2-2C11-4197-987B-85C7C26A3...@nimbisservices.com>
References: <1268079d-1683-4b40-8ae0-47bb4233bb94@googlegroups.com>
To: mezzanine-users@googlegroups.com
X-Mailer: Apple Mail (2.1278)
X-Gm-Message-State: ALoCoQnEuZ8OlywQc6iqPG8awaNyYO3QmntNdXW/Wjc88opqer0z24BhXSYo6OTk2f6IhYioQnix
Sounds like a great idea. Maybe you should look for {{ =
page.content_model }}.html since there are other page types?
"content_model": "richtextpage",
"content_model": "category",
"content_model": "form",
On Jul 11, 2012, at 5:38 PM, kenbol...@gmail.com wrote:
> I have a use-case where I want, for example, an "About" page with =
sub-pages. I want the sub-pages to use the same template as the "About" =
page. I can write templates for each sub-page, but that doesn't seem =
very DRY.
>=20
> The solution that I have in mind is to create a template at =
/pages/about/richtextpage.html. Sub-pages such as "About/Team" would =
check first for /pages/about/team.html, then try =
/pages/about/richtextpage.html, and finally fall back on =
/pages/richtextpage.html. Is this harebrained? Anyone have oter =
suggestions?
>=20