This question about Missing functionality: Answered

Removing "Edit data" link of the PersonalInfoAddOn

How can the "Edit data" link be removed in favor of the default edit links that ship with the installation?

The reason for that question can be looked up in http://foswiki.org/Tasks/Item1277.

-- IngoKappler - 13 Mar 2009

You can customize the view templates used by PersonalInfoAddOn. Starting with Main.PersonalInfoUserViewTemplate, which is set as the view template on each user homepage, you can track down a few includes down to Main.PersonalInfoModule. On this topic you can modify or remove the link.

-- OliverKrueger - 08 Apr 2009

Now I removed the "Edit data" and "Set inactive" links from the home topic as both can be handled when normally editing the form data and I planned to disable at least the "Edit data" link anyway, since it caused some issues for me when using macros in the form data (http://foswiki.org/Tasks/Item1277).

To disable the links some code was commented in PersonalInfoModules:
%IF{"not defined editUserData" then="<div class='personalInfoFormDataActions twikiUnvisited'> <!-- [[%SCRIPTURL{view}%/%BASEWEB%/%BASETOPIC%?editUserData=on][Edit data]] <span class='twikiSeparator'>|</span> --> [[%SCRIPTURL{view}%/%BASEWEB%/%BASETOPIC%?template=PersonalInfoPictureView][Change picture]] <!-- <span class='twikiSeparator'>|</span> %IF{"$'FORMFIELD{WorkStatus}'!='Current'" then="<a href='%SCRIPTURL{save}%/%BASEWEB%/%BASETOPIC%?WorkStatus=Current'>Set active</a>" else="<a href='%SCRIPTURL{save}%/%BASEWEB%/%BASETOPIC%?WorkStatus=Former'>Set inactive</a>"}% --> </div>" }% %IF{"defined editUserData" then="<div class='personalInfoFormDataActions'><input type='submit' class='twikiSubmit' name='action_save' id='save' value='Save' /> <input type='submit' class='foswikiButton' name='action_cancel' id='cancel' value='Cancel' /></div>" }%" }% </form></div><!--/pIparagraphFrame-->%ENDSECTION{"personalInfo"}%

-- IngoKappler - 22 Jul 2009

QuestionForm edit

Subject Missing functionality
Extension PersonalInfoAddOn
Version
Status Answered
Topic revision: r4 - 22 Jul 2009, IngoKappler
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