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