1. zielwasser
  2. General
  3. Wednesday, February 20 2019, 11:05 AM
Hi.

Is it possible to add some title field to the file field?
Some users like to upload some files and give them custom titles.

Looking forward your andswer

Best regards

Manni
Accepted Answer
admin Accepted Answer
Admin
Hi,
to do this you can use HTML delimeter field type, it will support also our content plugin.

For example:
in edit profile/registration page I have 6 fields (3 text and 3 files) with following alias
- title_file1 (text)
- file1 (file)
- title_file2 (text)
- file2 (file)
- title_file3 (text)
- file3 (file)

Instead show file fields in profile page I will show 3 HTML delimiter field types with a content like this
Delimiter for file1
Alias: html_file1
Description:
<a href="/{user file1 displayed raw}">Download file called: {user title_file1 displayed raw}</a>

Delimiter for file2
Alias: html_file2
Description:
<a href="/{user file2 displayed raw}">Download file called: {user title_file2 displayed raw}</a>

Delimiter for file3
Alias: html_file3
Description:
<a href="/{user file3 displayed raw}">Download file called: {user title_file3 displayed raw}</a>


So basically in profile page you will see HTML delimiter field type that load content from other fields.

Of course if the user does not upload a file then the corresponding HTML delimiter should be hidden. To have this behavior you can use conditions like:
- Condition for field "file1": if equal to custom value empty (leave empty custom value parameter) then hide html_file1 field
- Condition for field "file2": if equal to custom value empty (leave empty custom value parameter) then hide html_file2 field
- Condition for field "file3": if equal to custom value empty (leave empty custom value parameter) then hide html_file3 field

Docs about HTML delimiter field type at: http://docs.easy-profile.com/index.php/article/html-delimiter-field-type
Docs about Content plugin at: http://docs.easy-profile.com/index.php/article/content-plugin
  1. more than a month ago
  2. General
  3. # Permalink
admin Accepted Answer
Admin
Hi,
can you please explain me better? maybe this is already possible with some workaround.
  1. more than a month ago
  2. General
  3. # 1
zielwasser Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. General
  3. # 2
zielwasser Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. General
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.