[pmwiki-users] fox auto-upload again. Still doesn't work as expected.

Hans design5 at softflow.co.uk
Mon Mar 31 08:14:01 CDT 2008


Monday, March 31, 2008, 12:47:27 PM, martin at kerz.org wrote:

> Attach:Index/Larifari 1. Grade in der Zeit/test.gif

> As I have set $UploadPrefixFmt = '/$Group/$Name';, and (even more  
> complicated) want to show the graphics on another page, I have to  
> specifiy the complete path before the file name. The  
> (:wikiword:)-markup didn't work, even with your suggested corretion. :-/

> Moreover, as you can see, I add another upload form to the target  
> page, to let users upload further images. In the specified template, I
> use the ($$foxpage}-Variable to get the full path of the page. This  
> results in something like e.g. this: Index.Diagnose, which is a markup
> that is not compatible with the imgpopup recipe, that is enabled, too.

You need to get wikiword expressions working.
Does  {(wikiword "Müller's schöne Töchter")} work in a page?
It displays as:   MuellersSchoeneToechter

Try this as a form:
>> neuediagnose<<
(:messages:)
(:fox neuereintrag template=Site.Vorlage foxgroup="Index" redirect=1  
pagecheck=1 upload=1 formcheck=1 target={$$name} :)
(:input hidden name {$$(wikiword "{$$diagnose}")} :)
'''Diagnose:''' (:input text diagnose "Diagnose" size=20:)
'''Bild''':  (:input file upfile:)\\
'''Dateiname auf der Diagnoseseite:''' (:input text upfile_name :)\\
[-''Weitere Bilder müssen auf der Diagnose-Seite hochgeladen werden''-]
'''Beschreibung'''\\
(:input textarea beschreibung rows=20 cols=60:)
(:input submit post "Diagnose erstellen":)
(:foxend neuereintrag:)
>> <<


im template:

>> galerie<<
Attach:Index/{$$name}/{$$upfile_name}
>> <<


> Moreover, as you can see, I add another upload form to the target  
> page, to let users upload further images. In the specified template, I
> use the ($$foxpage}-Variable to get the full path of the page. This  
> results in something like e.g. this: Index.Diagnose, which is a markup
> that is not compatible with the imgpopup recipe, that is enabled, too.

use in the second template:

Attach:Index/{$Name}/{$$newup_name}



    ~Hans




More information about the pmwiki-users mailing list