Many Disps (pages displayed by b2evolution) can vary depending on URL Parameters.
Most of the time you won’t have to do anything about it, but if you want to know how it works, here’s some info…
A few examples of URL params
Name
|
Type
|
Description
|
Default
|
---|
blog
|
integer
|
ID of the blog to be displayed.
This is for RSS generation mainly.
In the front-office, the ID of the collection to be displayed will generally be determined by the URL.
|
|
disp
|
string
|
This can accept one out of many possible values, such as comments , front , login , etc. See: Disp Reference.
|
|
paged
|
integer
|
Page number
|
1
|
Each Disp may in turn accept additional params specific to that disp. For example, see disp = posts (List of Posts / Items).
To pass parameters in the query string, precede the first param name with a ?
question mark and every other param with a &
sign.
On disp=single, b2evolution will (with default ) redirect to the canonical page in case unrecognized params are passed.
If you want specific params to not trigger a redirect, like ?utm_source=twitter
for example, then add those params to the config variable $noredir_params
. For example, add the following in your _local.php:
$noredir_params[] = `utm_source`;
I’m trying to find a way to allow a reader to toggle between ascending and descending order display. Any ideas? (I’m building something somewhere between multiple blogs for multiple bloggers and "chapters" in a knowledgebase–a first-time visitor would need to start at the beginning, while someone returning would just want to catch up.)