Is hyperlink attribute overriding "custom attributes"?

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
amiens80
User
Posts: 450

Is hyperlink attribute overriding "custom attributes"?

Post by amiens80 »

hi,

i have a basic text , i had the hyperlink attribut (it work fines). my field is also in readonly and viewable in edit page.

in the other custom attributes option (input tag attribut panel) , i added "style='cursor: zoom-in;'" to change the mouse pointer.

i checked the html content, and my ""style='cursor: zoom-in;'" does not appear in the code.

is there a reason ? i guess the hyperlink render option is overriding the custom attributes ?
i just want my link cursor be a "zoom icon", not the classic pointer link icon.

best regards


mobhar
User
Posts: 11702

Post by mobhar »

amiens80 wrote:

""style='cursor: zoom-in;'"

Double check your code. There are double " character at the beginning of that code.

Your code should be:
"style='cursor: zoom-in;'"

(with only single " character at the beginning).

I tested the modified code above, and it works properly. I can see the cursor mouse changed to the zoom-in icon.

You may also refer to the docs, and see the Custom Attributes section.


amiens80
User
Posts: 450

Post by amiens80 »

hi,

i added double-quotes around because it must be a php string expression (as said by the alert).
in fact, i remove the "read only" property and it works .
once i active readonly property , it did not work anymore. Problem is with readonly override, not with hyperlink override.


Post Reply