Modifier le bouton edit dans item.php

6 years 9 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:
flexicontent_html::editbutton( $this->item, $this->params );

ce qui donne
[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.

6 years 9 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
a.editlinktip.hasTip img { display: none !important;}
2. Set your custom image edit button:
a.editlinktip.hasTip {
background: url("../images/myeditbttn.png") no-repeat 0 0;
height: 16px;
width: 16px;


-- 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 review. Thanks!

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

Moderators: vistamediajoomlacornerggppdk
© 2018 Flexicontent. All Rights Reserved.