Skip Navigation

[Gelöst] Custom user field for link or file

This support ticket is created vor 4 Jahren, 4 Monaten. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Dieses Thema enthält 4 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von upD vor 4 Jahren, 4 Monaten.

Assistiert von: Shane.

Author
Artikel
#1720557

upD

Tell us what you are trying to do?
I want the user to be able to upload their portfolio as a file or link to a website.

How can I achieve that using only a single field?

#1721087

Shane
Supporter

Sprachen: Englisch (English )

Zeitzone: America/Jamaica (GMT-05:00)

Hello,

Thank you for getting in touch.

Can you provide a little more clarity on what you mean by "I want the user to be able to upload their portfolio as a file or link to a website."

Thanks,
Shane

#1721433

upD

Hello Shane,

Yes, sorry, I hope this helps:
On my page users are able to share their work and some info about themselves.
To showcase their previous work they should be able to upload their portfolio.
The portfolio in this case is provided as either a pdf file or, if that does not exist as a link to an external website.
I do not want to clutter the frontend form with unnecessary fields.
The user would go into an editing form for their profile and should only be able to see a single field labeled as "portfolio".
In this field I want the user to upload their pdf file or provide a link.

#1721843

Shane
Supporter

Sprachen: Englisch (English )

Zeitzone: America/Jamaica (GMT-05:00)

Hello,

A solution to this is that you can create a repeatable field group for the user profile page to add their portfolio items. In this repeatable field group you will have the fields that would make up the portfolio items.

Then you can create a form for this field group only and then add it to the user's portfolio page. From there they can use the form to add a new portfolio item.

You can have a short look at our documentation below.
https://toolset.com/course-lesson/creating-and-displaying-repeatable-field-groups/

https://toolset.com/course-lesson/front-end-forms-for-repeatable-field-groups/

Please let me know if these were able to help you out.

Thanks,
Shane

#1722741

upD

My issue is resolved now. Thank you!