incubator-jspwiki-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dirk Frederickx" <dirk.frederi...@gmail.com>
Subject Re: Hyperlinks starting with file:
Date Mon, 19 May 2008 17:47:25 GMT
Here's a quick solution  (didn't test it ;-)

1) go to PageContent.jsp

2) find the first </wiki:Tab> element

3) Insert this line just before that line

    <wiki:Include page="AttachmentTab.jsp"/>


Hit refresh on your browser to see the attachment table on the front page too.

good luck

dirk


On Mon, May 19, 2008 at 11:32 AM,  <sakari.aaltonen@tkk.fi> wrote:
> Quoting Gavin Goldsmith <ggoldsmith@pnp.co.za>:
>
>> Perhaps JSPWiki/tomcat has no permissions to save the attachments. Take
>> a look at the following 2 items in the jspwiki.properties file:
>>   jspwiki.attachmentProvider = BasicAttachmentProvider
>>   jspwiki.basicAttachmentProvider.storageDir =
>> /JSPWiki/user_attachments
>>
>> See that they are set and that the relevant permissions are set.
>
> Indeed, this seems to have been the root cause, as the jspwiki.properties
> file's relevant line read
>    jspwiki.basicAttachmentProvider.storageDir = /p/web/www-data/jspwiki/
> which (obviously) did not point to anything useful on my machine.
>
> Once I corrected it, attachments started working in the way I expected them
> to. However, Janne J mentioned <templates> in an earlier mail as being the
> cause of the attachments being "hidden" under the Attach button/tab. But
> which <template> is responsible for this?  How can attachments be listed on
> the page itself, immediately visible?
>
>
> Thank you,
> Sakari Aaltonen
>
>
>

Mime
View raw message