Tags:
create new tag
view all tags

Difficulty with URL Parameters

Question

In TWikiForms is found:

> Additionally a new topic can be given a Form using the formtemplate parameter in the URL. Initial values can then be provided in the URLs or as form values:
> other than checkboxes: name, ex: ?BugPriority=1

> checkbox: namevalue=1, ex: ?ColourRed=1.
> Boxes with a tick must be specified.

What I'm looking to do is have an easy to use Wiki word link that creates a new topic and sets parameters, but I'm beginning to suspect that this is not supported 8(

My main question is when URL parameters are mentioned it refers to full urls (http://... /SomeName?parameter=somevalue) and this syntax is not supported in any way using wiki words?

Is the only solution to use a full url or form input?

If so, how are the initial values passed. I've read the TWikiForms document, but there are no example of how to do this.

  • TWiki version: 01 Feb 2003
  • Perl version: 5.6.1
  • Web server & version: Apache/1.3.27
  • Server OS: Linux 2.4.20-13.7
  • Web browser & version: Safari 1.0b2
  • Client OS: Mac OS X (10.2.6)

-- GlenGyldersleve - 16 Jun 2003

Answer

Not sure I understand your question, but the ItemToDo sandbox example might give you the answer.

-- PeterThoeny - 18 Jun 2003


Well, I have figured out how to do a creation of a page via a web form that would set parameters for a wiki form and use a specific template.

What I really want to know is if its possible to do this via a wiki word..??

The tem URL parameters gets passed around a bunch in wiki documentation without a great deal of examples. I know that using a full url (as opposed to a wiki word) one can set parameters (ala GET). I just wanted to know if there was an equivalent with a plain ol wiki word..?


I agree - I'd like to understand how to create a wikiword link with parameters. Something like Web.PageName?fred=whatever would be excellent.

I have tried:

[[Web.PageName?fred=whatever][these sort of links]]
but can't make them work. Any ideas?

-- RossC - 01 Jul 2003

I think you need to do a full HTTP URL, as in EasierExternalLinking, even though it's just another TWiki page. See TWikiVariables (and most template files) for some %-variables that will help.

-- RichardDonkin - 02 Jul 2003

Thanks for the pointer, Richard. Actually I am trying to do this as part of an INCLUDE, and whilst I can construct the full HTTP URL fine, the INCLUDE portion doesn't work correctly. Please see HowToIncludeWithUrlParam for more info. (I would still like to be able to construct a wikiword with parameters, though)

-- RossC - 02 Jul 2003

It's best if you ask a new question starting from WebHome, with all the details in one place including any errors that you get on INCLUDE, and whether you have outbound proxies to get to the target of the URL. See SupportGuidelines for details.

-- RichardDonkin - 03 Jul 2003

Answer to creating wikiwords with parameters is at: LinkToDedicatedSkins

-- RossC - 10 Jul 2003

Edit | Attach | Watch | Print version | History: r8 < r7 < r6 < r5 < r4 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r8 - 2003-07-10 - RossC
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.