[pmwiki-users] Attach form field type (was: More answersto:More Wikiforms)

Sameer Kumar skumar at eharch.com
Mon Aug 13 19:27:53 CDT 2007


> 

><snip>

>>If the url generated by the title link is 

>>www.mysite.com/wiki/Projects/Museum, the page link generates 

>>www.mysite.com/wiki/Projects/Museum?action=

> 

>Hmmm. action is blank.

>It looks as if your clean url may be causing this. Try adding this to 

>the start of local/config.php:

> 

>if ($action=='') $action='browse';

><snip>

> 

>This did not work either. No change in the action link70;

> 

I wouldn't expect it to change the link, but I would expect the 

link to invoke the desired view template. I suggest you

revert to pmwiki's default link format and see if the problem

goes away. If not we'll try something else.

 

The problem, I think, is that the forms script invokes the

view template only when $action=='browse' -- if it's anything

else, the view template is ignored.

 

I had earlier told you that I had my Discussion tab in the Monobook skin
problem resolved with 

    if ($action=='view') $action = 'browse';

in my local/config.php. I have just realized that it does not work
anymore. I have no idea why!

I have reverted back to the default 'pmwiki' skin to make it work.

 

To debug this, experiment with $echo "action=$action.";

in local/config.php, before including wikiform.php. Click

on one of the page number links and see what comes back.

 

Now, with the pmwiki skin, when I add $echo "action=$action."; to the
config.php file, it gives me a parse error on that very line:

Parse error: syntax error, unexpected '"' in
C:\web\wiki\local\config.php on line 97

 

One of the problems with using the pmwiki skin with wikiforms is that
the table generated by wikilist is not formatted correctly. The skin
does not respect the font-size: smaller; directive laid out in the
wikiform.php, which Monobook does. I have been unable to modify the font
sizes etc. for the wikilist. Do you have any ideas regarding that?

 

Thanks again!

S

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070813/785258a8/attachment.html 


More information about the pmwiki-users mailing list