Hello, please sign in or register
You are here: Home

Querystring

Some of the widgets take advantage of the URI querystring to display results. The main use is for sharing search results by passing a URI around. Please note that these will only affect elements within the main-content section of a page.

Search parameters.

  • q: string. Used to search title and body of a items, see list or feed widgets
  • l: string Name of a location, see list.
  • c: point Coordinate Longitude Latitude, see list.
  • page: int Results page, see list and feed.
  • limit: int Number of results to display on the page, see list and feed.
  • t: string|int Is yet to be implemented but will search for tags 

Form Pre-populating

Pre-populating a form value is simple. It enables us to reuse forms changing certain element values. For instance the /contact is the default contact form browsers can use to talk to the sites administrator. We can change the default value of each of the elements by specifying their name. E.g.
  • title string 
  • email string
  • descr string
  • par integer   Deprecated
  • category integer The parent to which this will be defined.

Exceptions

This only change elements where the form permits. If a form element type is defined as FIXED then this can not overwrite it.

Example

An example of this in action please view /contact?title=It+Works

Categories




Search




Help support the Knarly project

Where does the money go?