Tags:
create new tag
view all tags

SID-01676: User profile

Status: Answered Answered TWiki version: 5.1.4 Perl version: 5.10.1
Category: NewUserPlugin Server OS: Cent Os 6 Last update: 10 years ago

Hi,

There is a table containing user profile information at the button on users profile page. Its repeating as same info is there on the profile page at top near users photo. I dont want to show that table at bottom. How can i remove that? But that is required in edit mode for user to enter their first name and last name. rest of the information users can edit by using edit link in info section near users photo.

Thank you, Sachin

-- Sachin Wable - 2013-04-09

Discussion and Answer

The form is required, e.g. you can't remove it. However, you can mark each field as hidden. That way, the form fields are not shown in view mode, only in edit mode. Do not modify the TWiki.UserForm, but clone the form definition and the NewUserTemplate to Main web, and customize there as described in TWikiInstallationGuide.

-- Peter Thoeny - 2013-04-09

its not working. if i make field hidden using "H" parameter its hiding from the view but if I edit the form and enter data in that field it starts appearing on view... What can be the problem?

-- Sachin Wable - 2013-04-16

The H flag only hides the form field in view. If you want to hide the form in edit you cam define a custom edit template. The profile topics already have a custom view template (PatternSkinUserViewTemplate), so you need to define an edit template called PatternSkinUserEditTemplate, then activate it with a preferences setting. Read TWikiTemplates.

-- Peter Thoeny - 2013-05-01

Yes it hides. but if there is data in the field then it again starts appearing even if it is flagged with H

-- Sachin Wable - 2013-05-01

As I wrote, to hide the whole form in edit mode, define a custom edit template (such as UserEditTemplate), and activate it in the topic preferences of the user profile template page and all existing profile pages using * Set EDIT_TEMPLATE = UserEdit (without the Template postfix). Compare with the existing VIEW_TEMPLATE setting.

Content of UserEditTemplate topic in Main web:

%TMPL:INCLUDE{"edit"}%
%TMPL:DEF{"formtop"}%%TMPL:END%
%TMPL:DEF{"formbottom"}%%TMPL:END%

-- Peter Thoeny - 2013-05-02

I want whole form in edit mode. But dont want to show in view mode below profile. Using H attribute its hiding from view mode but if user enter data in the field in edit mode which is marked as H starts getting displayed in view mode. If there is no data then it does not show that field in view mode.

-- Sachin Wable - 2013-05-02

If you mark a field as hidden, it is no longer shown in the form at the bottom in view mode. It will be shown in edit mode though.

If you want to hide fields in the header you need to modify the header template.

-- Peter Thoeny - 2013-06-17

      Change status to:
ALERT! If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
SupportForm
Status Answered
Title User profile
SupportCategory NewUserPlugin
TWiki version 5.1.4
Server OS Cent Os 6
Web server Apache 2.2.15
Perl version 5.10.1
Browser & version Firefox 10
Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2013-06-17 - PeterThoeny
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.