On 29/12/06, Rory Campbell-Lange (rory campbell-lange.net) wrote:
> I'd like to hold the 'help' for each template in a
block called
> 'helptext' within each html file. I'd like to include
the relevant html
> files from the main /help/ template, so that
/help/sites shows the help
> from the sites.html page, for example.
I've managed to make embedding help in each page of the site
work very
well -- once I had fixed my urls conf so that the system
wasn't
redirecting to the associated page instead of embedding it
.
Essentially each page has a 'helptext' block at the bottom.
For /help/ the help page renders all the help text for each
page on the
site. For /help/about, just the help text for the about page
is
rendered.
The system works through a simple system of switching the
template from
which each normal page is derived from the 'generic'
template to a
'generichelp' template by using a variable for the argument
to the
{% extends %} block, and using 'include' directives in the
main help
template.
Hope this is of help to someone.
Rory
--
Rory Campbell-Lange
<rory campbell-lange.net>
<www.campbell-lange.net>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-users googlegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribe googlegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---
|