Re: [pmwiki-users] PmForm to create new pages

2009-05-19 Thread Oliver Betz
DaveG wrote:

Oliver Betz wrote:
 $Conditions['exists'] is already defined in pmwiki.php, so your
 suggestion can be simplificated (no php needed):
 
 (:template require if=!exists 'whatever variable' errmsg=The page
 already exists!:)
Good call. If this works, that simplifies BlogIt -- cool.

it works in my environment.

 In Site.ClogIt-CoreTemplate#blog-post-control I use this format:
   (:template defaults saveto={$$ptv_entryurl}:)

 Where entryurl is the name of the PmForm variable in which the user 
 enters the pagename.
 
 Are you using (:input text $:entryurl:), IOW PTV markup for the target
 page?
 
 I'm using (:input text newname:) and therefore get the same result (?)
 by $$something (without ptv_ prefix).
Interesting -- I seem to recall thinking you *had* to use a PTV as the 
form variable, and also wondering *why* I had to use the ptv_ prefix on 

I remember your comment about this in
http://www.pmwiki.org/pmform/PmForm/FmtDirectives

the template. I'll have to see if my use of the PTV has had any 
unintended (possibly useful!) side-affects.

This would be indeed very interesting.

IMO PmForm is a great thing, but it's hard to use because the
documentation tells only very little about the capabilities.

I have seen that you and Mateusz Czaplinski contributed a lot to the
PmForm pages, but the disclaimer (although adequate) could deter
people from using PmForms.

Since PmForm seems to work fine, it's documentation deserves some care
IMO. Sadly I'm not capable doing so - I'm glad if I get it working,
but I know/understand not enough to make a reliable documentation.

Oliver


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] PmForm to create new pages

2009-05-19 Thread DaveG


Oliver Betz wrote:
 DaveG wrote:
 
 Oliver Betz wrote:
 $Conditions['exists'] is already defined in pmwiki.php, so your
 suggestion can be simplificated (no php needed):

 (:template require if=!exists 'whatever variable' errmsg=The page
 already exists!:)
 Good call. If this works, that simplifies BlogIt -- cool.
 
 it works in my environment.
Actually, I suspect this wouldn't work in BlogIt's case. Specifically, 
the blog entry can be re-edited, in which case the page will exist (it's 
the page being edited). I needed to do a check specifically for this.

snip
 IMO PmForm is a great thing, but it's hard to use because the
 documentation tells only very little about the capabilities.
 
 I have seen that you and Mateusz Czaplinski contributed a lot to the
 PmForm pages, but the disclaimer (although adequate) could deter
 people from using PmForms.
 
 Since PmForm seems to work fine, it's documentation deserves some care
 IMO. Sadly I'm not capable doing so - I'm glad if I get it working,
 but I know/understand not enough to make a reliable documentation.
Unfortunately, I'm in the same boat, despite using it pretty 
extensively. I'll probably remove some of the open questions though.

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Breeak picture captions?

2009-05-19 Thread Oliver Betz
Update:

 Attach:foo.jpg | caption1 Attach:bar.jpg | caption2

the second picture with it's caption is used as caption of the first
picture.

How can I avoid this, IOW put two or more pictures with captions side
by side?

The fine manual says in PmWiki/Images that I have to use lframes, but
this doesn't work well if the gallery has to wrap.

As a workaround, I dropped the captions and use links now.

Nevertheless I'm still interested in a solution to place pictures with
captions side by side, with wrapping.

Oliver


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] pmwiki and Active Directory

2009-05-19 Thread Tom
_Tom skrev:_

  Peter Bowers skrev:
 
   
  Short comment:
 
  The error situation has been fixed, but I have another one (which is the
  REAL problem in this case):
 
  1) The user has got his access set to read:
  $idinfo[3] = 'read'
  $idinfo[1] = user ident
 
  $DefaultPasswords[$idinfo[3]] = id: . $idinfo[1];
  (which should be translated to: $DefaultPasswords['read'] = 'id:user
  ident).
 
  2) But I am still able to both change pages and store pages when 
logged in
  as this user (ident).
 
  How come ?
 
 Have you explicitly set $DefaultPasswords['edit'] to something else? If no
 edit password has been set then that tells pmwiki to allow edits without
 authorization. Since you have a read password it would cascade to the
 edit password, but your person is already authenticated and so it doesn't
 limit anything.
 
 $DefaultPasswords[$idinfo[3]] = id: . $idinfo[1];
 if ($idinfo[3] != 'edit'  $idinfo[3] != 'admin')
 $DefaultPasswords['edit'] = crypt('something-unlikely-to-be-discovered');
 
 That may do what you want.
 
 -Peter

Yes, the solution works as it should.
But I still have one other question:

Q1: Is there other possible values which could be put in the 
$DefaultPasswords-array?
What about i.e. upload access ?  Remember, I'm new on pmwiki...

Regards,
- Tom A.

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Breeak picture captions?

2009-05-19 Thread Dominique Faure
On Tue, May 19, 2009 at 19:52, Oliver Betz list...@gmx.net wrote:
 Update:

 Attach:foo.jpg | caption1 Attach:bar.jpg | caption2

the second picture with it's caption is used as caption of the first
picture.

How can I avoid this, IOW put two or more pictures with captions side
by side?

 The fine manual says in PmWiki/Images that I have to use lframes, but
 this doesn't work well if the gallery has to wrap.

 As a workaround, I dropped the captions and use links now.

 Nevertheless I'm still interested in a solution to place pictures with
 captions side by side, with wrapping.

 Oliver


 ___
 pmwiki-users mailing list
 pmwiki-users@pmichaud.com
 http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Please have a look at http://www.pmwiki.org/wiki/Test/Image to see if
it solves your issue

-- 
Dominique

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?

R: Parce que ça renverse bêtement l'ordre naturel de lecture!
Q: Mais pourquoi citer en début de message est-il si effroyable?

___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Pagelist not on trail

2009-05-19 Thread Oliver Betz
sorry, I posted too early again:

do I need a page list template to get a list of pages not on a
specified trail?

No, the following works:

(:pagelist if=! ontrail {*$FullName} {=$FullName} group={*$Group}
fmt=#simplename:)

to list the pages not explicitly listed on the current page.

Oliver


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users


Re: [pmwiki-users] Breeak picture captions?

2009-05-19 Thread Oliver Betz
Dominique Faure wrote:

 Attach:foo.jpg | caption1 Attach:bar.jpg | caption2

the second picture with it's caption is used as caption of the first
picture.

How can I avoid this, IOW put two or more pictures with captions side
by side?

 The fine manual says in PmWiki/Images that I have to use lframes, but
 this doesn't work well if the gallery has to wrap.

[...]

Please have a look at http://www.pmwiki.org/wiki/Test/Image to see if
it solves your issue

This works, thanks!

Strange, I did the same and got strange wrapping results. I will check
this tomorrow.

Oliver


___
pmwiki-users mailing list
pmwiki-users@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-users