Modifier le bouton edit dans item.php

More
11 years 8 months ago #26504 by gauthier
J'aimerais modifier l'aspect du bouton edit pour un type de donnée, pour ce faire j'édite le fichier item.php du template concerné.

J'ai ceci:
Code:
flexicontent_html::editbutton( $this->item, $this->params );

ce qui donne
Code:
[url=/index.php?view=items&amp;cid=137%3Atop-clients&amp;id=5605%3Afnac&amp;task=edit&amp;typeid=16&amp;4c319a916200297bb2b61b14f2ce315f=1&amp;option=com_flexicontent&amp;Itemid=210" class="editlinktip hasTip]<img src="/images/M_images/edit.png" alt="Edit item">[/url]

J'aimerais pouvoir gérer le bouton moi-même. Mettre mon texte et mes styles. Attention uniquement pour un type de donnée.

Please Log in or Create an account to join the conversation.

More
11 years 8 months ago #26528 by ggppdk
There is no need to hack anythig.
Why don't you just use CSS?

(please correct my sample CSS, it is only a quick suggestion)

1. hide the image button
Code:
a.editlinktip.hasTip img { display: none !important;}
2. Set your custom image edit button:
Code:
a.editlinktip.hasTip { background: url("../images/myeditbttn.png") no-repeat 0 0; height: 16px; width: 16px; }

Regards


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.250 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline