- Posts: 86231
- Thank you received: 14224
adding more info click to custom fields?
Please Log in or Create an account to join the conversation.
Could the following parameters be added to custom field definitions:
Help Text
Help Link
Help Image
How these are used could be left to the customised views.
This will allow text / link / image changes to be made through the admin screens and not in the code.
As a further refinement the default shipped views could be enhanced as follows:
* this is the one I have an immediate requirement for.(1) Help text - entered, link - null, image - null
Hover over label displays text in popup.
* (2) Help text - entered, link - null, image - entered
Hover over (or click) image displays text in popup.
(3) Help text - null, link - entered, image - entered
Show image after field.
Click image opens help page (further options needed?).
(4) Help text - entered, link - entered, image - entered
Show image after field.
Click image opens help page (further options needed?).
Hover over image shops the text.
(5) Help text - entered, link - entered, image - null
Show text as a link after field.
Click text opens help page (further options needed?).
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
For now I have implemented it using the following PHP functionSee later post for latest version:
The ideal solution would be if the text and icon image came from the $oneExtraField object.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Would it be useful to add into Hikashop core?
Can be left to custom views to decide how they are used.
Changes attached.
This attachment is hidden for guests.
Please log in or register to see it.
Please Log in or Create an account to join the conversation.
Satisifies my current requirements, may need more refinement later on.
The ideal solution would be if the text and icon image came from the $oneExtraField object.[/strike]
Please Log in or Create an account to join the conversation.
We will probably want to include the showFieldHelp function in the file administrator/components/com_hikashop/classes/field.php
so that getFieldName and display can directly use it without having to change all the views.
For the translation, it should also be able to use the trans function of that same file in order to translated the text via the translation files.
Please Log in or Create an account to join the conversation.
It has since occurred to me that the ability to add custom fields to the field table itself (probably a confusing concept :woohoo: ) could be quite a powerful feature - up to view coders to decide what they might want to do with any such fields.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.