Support

  1. dlh
  2. Features Request
  3. Sunday, June 28 2020, 01:26 PM
Hi there,
I would like to replace the default "Description" field of a picture inside an album by some fields which will create the title.

I would like to get 3 fields :
- one which will be a select file field: "Aircraft type"; I would like to put a list of aircrafts (I will put the values by myself of course).
- one which will be another select file field: "Airline"; I would like to put a list of airlines (I will also put the values by myself).
- one which will be a text field called "Registration".

So, for example, I would like that, if I choose "Airbus A380-800" in the "Aircraft type" field, if I select "Lufthansa" in the "Airline" field and if I write "D-AIMA" in the "Registration" field, the title of this picture will be "Airbus A380-800 Lufthansa (D-AIMA)".

I already try something in the /plugins/jsn/socialnetwork/app/View/Albums/edit.ctp file but It doen't works.
Thanks in advance for your help,
Best regards,
Yann Arnould
dlh Accepted Answer
Any update ?
  1. more than a month ago
  2. Features Request
  3. # 1
admin Accepted Answer
Admin
Hi,
the file at /plugins/jsn/socialnetwork/app/View/Albums/edit.ctp is correct, you should add the new HTML fields after lines 27 and a Javascript code that hide and fill the description of the photo.

In order to have many photos you need to set different IDs for added fields, like:
<select id="aircraft_type<?php echo $photo['Photo']['id'] ?>">
<option value="1">1</option>
</select>
....


NOTE: this is a bit complex because you need to write a javascript function also to make a reverse action, basically you need to fill fields from description when the page is loaded
  1. more than a month ago
  2. Features Request
  3. # 2
dlh Accepted Answer
Hey,
Thanks for your answer.
I created the different fields as you told me but now I need to make the JavaScript part. However, I have some knowledges in HTML and php but not in JavaScript ? Could you please help me by the elaboration of this code.
Thanks in advance for your understanding and your help.
Best regards,
Yann
  1. more than a month ago
  2. Features Request
  3. # 3
dlh Accepted Answer
Hey, any update?
  1. more than a month ago
  2. Features Request
  3. # 4
  • Page :
  • 1


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

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.