Join Now

Click here to join our
growing community:

JOIN LOGIN



Docs

Welcome Tour
Handbook
      Markups
      Variables
      Conditions
      Functions
      Forms
      Commands
      Concepts
Extensions
Pro Modules
Developers



Copyright © 2020
Terms of Use
Privacy Policy
BoltWire

Handbook

Inpage

The inpage conditional checks whether some text exists on a specified page.

The first parameter (or parameter 'page') determines what page we are checking. It defaults to the current page.

The second parameter (or parameter 'find') tells what we are looking for on the page. It defaults to the current user

Here are some examples of how it is used:

[if inpage some.page 'pink elephants']true[else]false[if]
[if inpage page=some.page find='pink elephants']true[else]false[if]
[if inpage some.page find='pink elephants']true[else]false[if]
Checks to see if the phrase 'pink elephants' is on some.page.

It should be noted the following conditional will check to see if the current user's id is on the current page:

[if inpage]true[else]false[if]

Note: the following conditional will fail because BoltWire expects the find parameter to be in position two, but BoltWire sees it as being in parameter one. Instead, it will look for the default current user id

[if inpage page=some.page 'pink elephants']true[else]false[if]

A case=false parameter can be added to make the check case insensitive. In the first example, the case must match perfectly to pass. In the second, the case is irrelevant.

[if inpage some.page 'pink elephants']true[else]false[if]
[if inpage some.page 'pink elephants' case=false]true[else]false[if]

Note: spaces in your find parameter will produce unexpected results unless they are enclosed in quote marks. The first example will return true if 'pink' is found on the page. The second example will cause BoltWire to look for the word 'elephants' as that is what appears to be in the second parameter position. Only the third example will search for the intended phrase.

[if inpage some.page pink elephants]true[else]false[if]
[if inpage page=some.page pink elephants]true[else]false[if]
[if inpage some.page 'pink elephants']true[else]false[if]

Searching Data

Sometimes page content is stored as a data variable like a title or description. If you want to include these in the page search, set data=true and the conditional will look for your specified phrase in the data values as well as the

Note: This function takes into account BoltWire's UTF conversions of internationalized page names and checks for both versions.