Je pense que cette réponse doit fonctionner : getk2.org/community/English-K2-Community/190565-override-the-administrator-edit-page où il est dit qu'il faut placer le fichier modifié dans...
Bonjour, je souhaite modifier l'onglet K2Plugins qui apparaît lorsqu'on installe un plugin K2 qui rajoute des champs à l'intérieur (ou en général qui déclare en avoir besoin). Si je sais : - ajouter des champs avec le fichier .xml...
And BTW for filetype you have to rely on PHP mimetypes function or on (better) FIDO python script to find the filetype. lenny
Hi, I don't think you can use "$attachment->filesize" (I did not see it available anywhere in the code), but you can achieve this with something like : <?php $filetotest = JPATH_SITE.'/media/k2/attachments/'.$attachment->filename;...
Works like a charm :-) Thanks a lot !
Hello, since I am in the backend, will return the item id correctly ? I am planning to append it to savepath, such as : in the third occurences found in the item.php file. Thanks a lot.
Thanks, I will try again and I'll post results.
Hello, I am using K2 2.6.8, Joomla 3.2.3 and PHP 5.4.4-14+deb7u7.5 Since, it happens only on .csv files, thats just, .csv are textfiles so k2 is adding the proper extension. I merged mimetype and usage, but it is different things... lenny
Hello, I'm looking to override the administrator/components/com_k2/models/item.php file to add a specific attachement directory per item (having everything in the same directory is not right for what I'm doing). I think I should modify...
Hello, when I upload some .csv files as attachments for an item, a .txt extension is added to the filename. Resulting in some "foobar.csv.txt" Any idea how can I avoid this ? Thanks a lot
More