You are here: Foswiki>Tasks Web>Item13408 (27 Sep 2016, MichaelDaum)Edit Attach

Item13408: Very confusing behaviour when an edit template topic is created

pencil
Priority: Normal
Current State: Proposal Required
Released In: n/a
Target Release: minor
Applies To: Engine
Component:
Branches:
Reported By: CrawfordCurrie
Waiting For:
Last Change By: MichaelDaum
If you have a topic with a form named "XxxxForm" and another topic "XxxxEdit" (as might happen in a user web) then AutoViewTemplatePlugin will pick up "XxxxEdit" as the template for an edit, resulting in very confused users shouting and crying on IRC (yes, that was me).

http://irclogs.foswiki.org/bin/irclogger_log/foswiki?date=2015-05-18,Mon&sel=73#l69

Personally I think this is unusable. At the very least this has to have the life documented out of it.

-- CrawfordCurrie - 18 May 2015

The template topic should be (IMHO) called, either
  1. FormnameEditTemplate
  2. or simply EditTemplate (with the stripped Formname for the general template for the Editing in the given web)

but sure not the plain FormnameEdit - (without the Template suffix) e.g. any template topics should be has the suffix Template always. (just IMHO).

-- JozefMojzis - 18 May 2015

This is exposing the way templates are looked up while following the template search path. You can disable AutoViewTemplatePlugin an simulate the same behavior using url params. Changing the way templates are looked up needs a feature proposal. It surely is not an urgent task as normal operations aren't broken.

-- MichaelDaum - 27 Sep 2016
 

ItemTemplate edit

Summary Very confusing behaviour when an edit template topic is created
ReportedBy CrawfordCurrie
Codebase 1.2.0 beta1, 1.1.9, trunk
SVN Range
AppliesTo Engine
Component
Priority Normal
CurrentState Proposal Required
WaitingFor
Checkins
TargetRelease minor
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release02x01Checkins
Release02x00Checkins
Release01x01Checkins
Topic revision: r4 - 27 Sep 2016, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy