[xwiki-users] attachement names
Hi My client has asked if there is anyway to increase the maximum number of characters in an attachment name. It appears to display up to 25 characters and then a ~.jpg or whatever. He wants the full name displayed. Thanks Edward
Hi, To do this you can increase the variable maxnamelength in the macro packName (macros.vm). JV. On Thu, Sep 11, 2008 at 3:14 PM, Edward Laptop <[email protected]> wrote:
Hi
My client has asked if there is anyway to increase the maximum number of characters in an attachment name. It appears to display up to 25 characters and then a ~.jpg or whatever. He wants the full name displayed.
Thanks
Edward _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
-- Jean-Vincent Drean
Would be a good faq enrty to add on xwiki.org... Thanks -Vincent On Sep 11, 2008, at 3:41 PM, Jean-Vincent Drean wrote:
Hi,
To do this you can increase the variable maxnamelength in the macro packName (macros.vm).
JV.
On Thu, Sep 11, 2008 at 3:14 PM, Edward Laptop <[email protected]> wrote:
Hi
My client has asked if there is anyway to increase the maximum number of characters in an attachment name. It appears to display up to 25 characters and then a ~.jpg or whatever. He wants the full name displayed.
Thanks
Edward
Jean-Vincent Drean wrote:
Hi,
To do this you can increase the variable maxnamelength in the macro packName (macros.vm).
Actually you shouldn't change macros.vm. Instead, you should override attachmentsinline.vm and redefine this variable in there. More specifically, copy attachmentsinline.vm from templates/ to your skin folder, and add at the start of it: #set($maxnamelength = 1000) Or, just remove the call to packName from the file, just use $attach.filename
JV.
On Thu, Sep 11, 2008 at 3:14 PM, Edward Laptop <[email protected]> wrote:
Hi
My client has asked if there is anyway to increase the maximum number of characters in an attachment name. It appears to display up to 25 characters and then a ~.jpg or whatever. He wants the full name displayed.
Thanks
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Thanks for reply. I see how what you wrote would work, and thanks for it, but why can't I just do it Jean-Vincents's way? That seemed to work fine. Edward -----Original Message----- From: [email protected] [mailto:[email protected]]On Behalf Of Sergiu Dumitriu Sent: 12 September 2008 00:03 To: XWiki Users Subject: Re: [xwiki-users] attachement names Jean-Vincent Drean wrote:
Hi,
To do this you can increase the variable maxnamelength in the macro packName (macros.vm).
Actually you shouldn't change macros.vm. Instead, you should override attachmentsinline.vm and redefine this variable in there. More specifically, copy attachmentsinline.vm from templates/ to your skin folder, and add at the start of it: #set($maxnamelength = 1000) Or, just remove the call to packName from the file, just use $attach.filename
JV.
On Thu, Sep 11, 2008 at 3:14 PM, Edward Laptop <[email protected]> wrote:
Hi
My client has asked if there is anyway to increase the maximum number of characters in an attachment name. It appears to display up to 25 characters and then a ~.jpg or whatever. He wants the full name displayed.
Thanks
-- Sergiu Dumitriu http://purl.org/net/sergiu/
users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
participants (5)
-
Edward Eldon -
Edward Laptop -
Jean-Vincent Drean -
Sergiu Dumitriu -
Vincent Massol