You are here: Foswiki>Tasks Web>Item69 (10 Nov 2008, ArthurClemens)Edit Attach
I have created a new form for PersonalInfoAddOn , part of which follows:

First name Garry
Last name Ferguson
Telephone 7727
Location Stockport
Department Infrastructure
Job title Systems administrator
Reports to KeithHall
Direct reports WendySwann MarkDuffin? AnnCurrie RogerWaters JackHiggins? BillGates?

If I use the normal "Edit" (in the top right hand corner) then the "Direct reports" appear as wiki words ( as shown here but without the ? ) and can be altered and saved ok.

If I use the PersonalInfoAddOn 's own "Edit data" then they appear in the edit area as follows:

WendySwann <span class="twikiNewLink">MarkDuffin<a href="/twiki-new/bin/edit/Main/MarkDuffin?topicparent=Main.GarryTest6" rel="nofollow" title="Create this topic">?</a></span> <a href="/twiki-new/bin/view/Main/AnnCurrie" title="off " class="twikiLink">AnnCurrie</a> <a href="/twiki-new/bin/view/Main/RogerWaters" title="off " class="twikiLink">RogerWaters</a> <span class="twikiNewLink">JackHiggins<a href="/twiki-new/bin/edit/Main/JackHiggins?topicparent=Main.GarryTest6" rel="nofollow" title="Create this topic">?</a></span> <span class="twikiNewLink">BillGates<a href="/twiki-new/bin/edit/Main/BillGates?topicparent=Main.GarryTest6" rel="nofollow" title="Create this topic">?</a></span>

If I save when using "Edit data" then it attempts to put all this lot in the field.

I hope this post is formatted oK? Many thanks for any help.

-- GarryFerguson - 03 Nov 2008

Without looking at a permanent solution, a quick fix would be to put the edit form table within <noautolink></noautolink> tags.

-- ArthurClemens - 05 Nov 2008 - 01:14

Thanks Aurthur but I'm afraid you will have to be more specific about how I make that modification.

-- GarryFerguson - 07 Nov 2008

In topic PersonalInfo, change section PersonalInfoFields by placing <noautolink></noautolink> around the table:

%STARTSECTION{"personalInfoFields"}%<noautolink><table cellspacing='0' cellpadding='0'>
%INCLUDE{"PersonalInfo" section="personalInfoDataRow" fieldName="WorkPhone" label="Work phone"}%
%INCLUDE{"PersonalInfo" section="personalInfoDataRow" fieldName="WorkPhoneMobile" label="Work phone mobile"}%
%INCLUDE{"PersonalInfo" section="personalInfoDataRow" fieldName="WorkEmail" label="E-mail"}%
%INCLUDE{"PersonalInfo" section="personalInfoDataRow" fieldName="WorkLocation" label="Location"}%
</table></noautolink>%ENDSECTION{"personalInfoFields"}%

Fixed with update 1.4.1.

-- ArthurClemens - 08 Nov 2008 - 19:50

Thanks Arthur but as far as I can tell this still does not fix the problem I originally attempted to describe. I am quite happy with wiki words in the displayed info for any user. In fact they are essentail for the way we want to use it. The problem is only when using "Edit data"; wiki words then appear surrounded by other formatting data. eg If a field contains: WendySwann RakeshTandon then in "Edit data" the field contains: WendySwann RakeshTandon This would totally confuse any user. This behaviour does not happen when the normal "Edit" in the top, right hand corner is used.

I really appreciate your help Authur and hope I'm not missing something here!?

-- GarryFerguson - 10 Nov 2008

I see, wikiwords should only be disabled on edit.

-- ArthurClemens - 10 Nov 2008 - 16:28

ItemTemplate edit

Summary PersonalInfoAddOn - wiki words break the layout
ReportedBy TWiki:Main.ArthurClemens
Codebase
SVN Range TWiki-4.2.3, Wed, 06 Aug 2008, build 17396
AppliesTo Engine
Component
Priority Normal
CurrentState Closed
WaitingFor
Checkins PersonalInfoAddOn:06723eaf0a89
ReleasedIn
Topic revision: r14 - 10 Nov 2008, ArthurClemens
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