Now that I've looked at this a bit I have a couple more things that I
would like to suggest ...
1. If the template is required (or tied to a specific action in the
upcoming code) then we don't show the Name, Link, and Description
elements as form fields. Instead we just provide targeted help text to
explain exactly how the specific template relates to the weblog design.
2. I am starting to think that we don't really need the 'description'
property of a template. How many people actually want to put in a
description for their template? I think that the template name serves
as enough of a description and the less form fields users have to deal
with the better.
3. I don't think the content type controls need to be available for
templates that are required. It wouldn't make much sense to change the
content type for the Weblog template, for example.
Just some small tweaks really. I think the way the templates section
works now is much nicer than it was before, so we are definitely moving
in the right direction.
-- Allen
Dave wrote:
On 3/19/07, Allen Gilliland <[EMAIL PROTECTED]> wrote:
4. I think the content-type control should work differently than you
described. I think the only 2 options should be "automatic" and
"manual". So for automatic content-type it would work exactly how it
does now where we ask the appserver for the content type based on the
link value and text/html is the default. For manual we just provide a
textfield for the user to specify whatever they want. Default would be
for automatic content-type detection. And with the automatic
content-type detection we would actually do that at the time the form is
submitted rather than at rendering time like we do now.
OK. I committed this work and got your change #4 in, but...
We need some way to determine that a WeblogTemplate uses a "manual"
vs. an "automatic" content-type. I mean, if we fill in the
content-ype field at form-post time how will we know that it's an
automatically detected one or a manually entered one?
If we really want the content-type to be determined at form post time
rather than content rendering time, then we'll need a new field
WeblogTemplate.autoContentType. I didn't go that route. Instead, a
null content type indicates that automatic content type detection
should be done. Or maybe you've got another idea.
Think this warrants a new autoContentType database field?
- Dave
Dave wrote:
> This is a proposal to make some minor usability and functionality
> improvements to the UI of the Template Editor pages. The functionality
> improvements allow a user to set the content-type and language for a
> page, with together make it possible to take advantage of the Roller
> rendering system's pluggable renderers.
>
> Screen-shots included in proposal:
>
http://cwiki.apache.org/confluence/display/ROLLER/Proposal_TemplateEditorEnhancements
>
>
> Please review, I'd like to commit this work this week.
>
> - Dave