From: Andreas Stenius <andreas.sten...@astekk.se>
Date: Fri, 31 Aug 2012 20:56:10 +0200
Local: Fri, Aug 31 2012 2:56 pm
Subject: Re: [Zotonic-Usr] How admin section, templates and modules works together questions.
templates is quite different from resources (pages).
A resource holds data, but no presentation. The template is used to
> 1. If I create this page as a template, can I edit the template using theThere is currently no way to edit the templates via the web GUI. The
> editor from the admin section e.g. to correct any typos or the whole copy or
> header without opening the template file?
idea is that the templates are rarely changed,
after they've been developed; but resources are created and edited
> 2. Can I create the page using the HTML editor from the admin section andI would have the design in a template, and get the data from pages. So
> somehow include the call to the module to include the dynamic table?
you create the content in the admin.
No need to call a custom module.
> 3. Say I would like to have a few configuration options for generating theThere's a config model you can use from your template if you need
> table (e.g. number of rows for the sake of an example). Can I somehow
> include such configuration option in the admin section of the site once the
> module to generate the table has been enabled?
configuration per site: http://zotonic.com/documentation/719/m-config
> 4. Sometimes a page is build using only a template, but I can still edit theIt depends on the what the template does with the content of the page.
> page in the admin section (e.g. the homepage of the blog exemplary site).
> The HTML editor doesn't show any text, it's empty. What is the purpose of
> showing that editor for a page that is shown only from a template?
In the case above,
maybe the content isn't used at all. But it could be to put a
temporary notice on the front page, for instance.
I'm sure this didn't answer all your questions, but hopefully
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.