[réglé] Personnaliser l'affichage d'un fichier à télécharger

More
11 years 3 months ago - 11 years 2 months ago #39139 by Claire39
Bonjour!

malgré une recherche approfondie dans l'ensemble des fichiers Flexicontent de mon site, je ne trouve pas où est codé l'affichage d'un fichier à télécharger.

j'ai un champ "file" dans mon article pour uploader un pdf, mais je souhaite que le texte du bouton dans mon article soit non pas le nom du fichier, mais "télécharger la fiche".

quel fichier dois-je modifier?

merci :)
Last edit: 11 years 2 months ago by Claire39.

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

More
11 years 3 months ago #39141 by ggppdk
Hello,

never modify FLEXIcontent core files, only customize template files after copying them

For displaying filename there is a parameter in the file field configuration


-- 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.

More
11 years 3 months ago #39146 by micker
tu pesu peu être utiliser rereplacer de nonumber
et tu reperes le debut du code de ton champs pour le changer à la volé

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
11 years 3 months ago #39301 by Claire39
@ggppdk:
thank you for your answer.
I've seen the parameter, but there is 2 choices:
- a download button like in a form, with "Download" text,
- or a link with the name of the pdf file.

if I choose to set the 2 parameters to "no", the name of the pdf file is considered as "yes"...

@Micker:
je n'ai rien compris! ça donne quoi sans les fautes de frappe? :lol:

Ma solution :

c'est dans le fichier plugins/flexicontent_fields/file/file.php que se trouve le code de ce lien, vers la ligne 397.
je remplace :
Code:
$str = $icon . '<a href="' . $dl_link . '" class="'.$class_str.'" title="'. $alt_str .'" >' . $name_html . '' ." ". $text_html;
par :
Code:
$bouton = 'Telecharger la fiche'; $str = $icon . '<a href="' . $dl_link . '" class="'.$class_str.'" title="'. $alt_str .'" >' . $bouton . '' ." ". $text_html;
et pour finir, je fais une copie de mon fichier modifié pour le cas où il y ait une maise à jour de Flexicontent :D

Merci à tous les deux pour vos réponses
Thank you both for your reply

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

More
11 years 2 months ago #39322 by micker
y a pas tant de faute que ca fait une recherche sur rereplacer de nonumber qui te permet de changer du code à la volésur ton site ... ;)

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.362 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