[pmwiki-users] $PageUrl not being parsed

Ryan D'Baisse ryan.dbaisse at gmail.com
Sat Jan 28 07:47:11 CST 2006


Very cool!  It's working.  I looked at the variables area, within the  
docs, but did not notice anything that mentioned versions, so I never  
thought of looking there.  I just assumed there was something in the  
markup preventing it from being parsed.

I do have a couple of questions, related more to the forum and wiki,  
if I may.  I would probably be able to answer these if I had spent  
more time with the code, but I am out of time, so please forgive my  
ignorance...

1. HOW TO DISPLAY NEW THREAD TITLES WITHOUT THE HYPERLINK?
When a user enters the new topic, and they are brought to the next  
page, the top of the page has "Describe TestTopic01A here" in the  
same way that it would if you were creating a new page.  The words  
are all squashed together in a single camel-case word.  Also, the  
word is a hyperlink to edit the new page (default wiki behavior).  Is  
there any way to display simple words here, such as "Test Topic 01 A"  
without a hyperlink?

2. HOW TO DISPLAY THE TITLE OF THE TOPIC TO RETURN VISITORS?
When a user returns to the topic, they are presented with the  
chronological listing of replies and the comment box.  Unfortunately,  
there is nothing at the top of the page to show them the topic.  I  
THOUGHT there was a PmWiki variable that I could add here to display  
the topic name.  Could you point me in the right direction?  This may  
be similar to #1, so maybe I just need to display this variable and  
SUPRESS what is being displayed by default in #1?

Thanks for all of your help, Hans.  Great work on the forum!  =)

-- Ryan




On Jan 28, 2006, at 4:29 AM, Hans wrote:

> Saturday, January 28, 2006, 4:45:45 AM, Ryan wrote:
>> I am using v2.0.13... downloaded it yesterday.
>
>> Just for kicks I edited a page that is working properly (not one with
>> the forum) and added "{$PageUrl}" to the page.  I assumed that the
>> URL would be populated on the page.  It was not.  Is this what should
>> have been visible?
>
> {$PageUrl} is a page variables. Page variables were only introduced in
> 2.1 beta 15, so you need the latest beta for it to work.
>
> To have the form markup working with pmwiki 2.0.13 you would need to
> replace
>    (:input form name=cboxform action={$PageUrl} method=post:)
> with
>    (:input form name=cboxform "http://yoursite.com/pmwiki/ 
> pmwiki.php":)
>
> (replace this with the actual path to your pmwiki php, i.e. the  
> value of
> what may be written in config.php as $ScriptUrl.
> The method=post is not really necessary, it is implied.
>
> Now i am curious: was there a way to use $PageUrl or $ScriptUrl in the
> form markup prior to pmwiki 2.1.beta15 ?
>
>
> Best,
> ~Hans
>
>





More information about the pmwiki-users mailing list