Let's say you created a custom page type and the model class is "Test" and
then in your pages templates folder you placed your template at
pages/test.html. In that case you should be able to create a "test" page
anywhere in the tree and have it rendered using the test.html template
assuming that your test.html template extends the page template like {%
extends "pages/page.html" %}. Make sure and load mezzanine_tags and other
tags in that template as needed as well. It sounds like you aren't
extending the template so it's only overriding the specific page at that
URL.
On Tuesday, August 18, 2015 at 6:01:38 PM UTC-6, Avery Laird wrote:
>
> Hello,
>
> I've been creating some custom pages types, and templates to display them.
> I've been placing the templates in `pages/` and giving them the same name
> as the custom page. This works fine, except for when I place the page
> somewhere else in the tree. For example, if I have two custom pages (Page A
> and Page B) and place Page B under Page A in the page tree, the page is no
> longer rendered using my template. Looking at the docs, I'm not sure how to
> handle this. Any help would be great!
>
> Cheers
>
--
You received this message because you are subscribed to the Google Groups
"Mezzanine Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.