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: users-bounces(a)xwiki.org [mailto:users-bounces@xwiki.org]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
<edward(a)eldon.gotadsl.co.uk> 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
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users