[pmwiki-users] Lithuanian - $AuthorGroup

Patrick R. Michaud pmichaud at pobox.com
Sun Dec 4 11:41:21 CST 2005


On Sun, Dec 04, 2005 at 12:35:26AM +0200, Andrius Kulikauskas wrote:
> * the sidebar would disappear when I went to a group, I think because 
> the $Group variable was being called unsuccessfully.  I erased this but 
> it continued to be a problem because our main section has special 
> characters in its name.  So I gave the sidebar a group name with no 
> special characters.

That's odd, I think it really ought to work even if there are
special characters in the group name.  Could be a bug somewhere.

> * upon going directly to index.php the variables $Group and $Name are 
> not resolved, they just show up like that.  So I got around this by 
> checking if there's no pathinfo for index.php and in that case 
> redirecting to the URL for what I want to be the default page.

Again, strange -- PmWiki is supposed to automatically redirect to
$DefaultPage if none is given.  But having an explicit redirect 
will work.

> The problem that I don't know how to get around is how to set the 
> $AuthorGroup variable (default=Profiles) which I want the ~ prefix to 
> send to a section whose name has special characters.  What's happening 
> is that the "%" signs in the Unicode are getting dropped.  

Try setting $AuthorGroup to the utf-8 value of the group, without 
url encoding:

    $AuthorGroup = "\xc5\xa0viesuoliai";

Pm




More information about the pmwiki-users mailing list