b2evolution b2evolution

  • Sign in
  • Sign up
  • About
  • Downloads
  • Hosting
  • Docs
  • Support
  • Sign in
  • Sign up
  • Manuals Home
  • Latest Updates
 
  1. b2evolution CMS User Manual
  2. Developer Reference
  3. Technical Reference
  4. URL Parameters

URL Parameters

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.

Redirects

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`;
Created by fplanque • Last edit by fplanque on 2020-03-30 00:09 • •

3 comments

Comment from: martha

martha

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.)

2006-04-24 @ 04:24

Comment from: amoun

tried forums.b2evolution.net/index.php?author=4943

I suppose that wouldn’t work generally to expose peoples post but sadly also when I’m logged in.

On my own site when logged in ie. calstock.org.uk/index.php?author=1 doesn’t work so I’m not sure how to use this in a URL or can’t I.

I can use http://calstock.org.uk/?disp=useritems&user_ID=1 but trying to use the current user ID

2018-10-09 @ 15:01

Comment from: fplanque

Most of the params above work only on disp=posts.

2018-10-09 @ 16:47

On this page

  • Redirects

Search the Manual

Content Hierarchy

  • b2evolution CMS User Manual
  • User's Guide
  • Installation / Upgrade
  • Front-office Reference
  • Back-office Reference
  • Developer Reference
    • Website Skins/Themes
    • Email Skins/Themes
    • b2evolution Files
    • Website Integration
    • Plugins
    • Debugging
    • Technical Reference
      • Plugin API for item settings
      • URL Parameters
      • Roadmap & Unified Process
      • Charset Handling
      • Date Format
      • Technical Documentation
      • Image Sizes
      • Database Diagram
      • Username Autocomplete
      • Helper CSS Classes
      • Responsive images
    • Hacks
    • Credits
    • Development
    • How to... (Customize)
    • Scheduled Tasks Reference
  • Operations Reference
  • Advanced Topics
  • Glossary
  • Archives
b2

This online manual is powered by b2evolution CMS – A complete engine for your website.

About b2evolution

  • What is it?
  • Features
  • Getting Started
  • Screenshots
  • Online demo
  • Testimonials
  • Design philosophy
  • Free & open source
  • Terms of service

Downloads

  • Latest releases
  • Skins
  • Plugins
  • Language packs

About us

  • About us
  • Contact

Webhosting Guide

  • Web hosting blog
  • Best web hosting
  • Cheap web hosting
  • Green web hosting
  • Hosting with SSH
  • VPS hosting
  • Dedicated servers
  • Reseller hosting
  • Int'l: UK / France

Docs & Support

  • Online manual
  • Forums
  • Hire a pro !

Other

  • Adsense
  • Press room
  • Privacy policy

Stay in touch

  • GitHub
  • Twitter
  • Facebook
  • LinkedIn
  • News blog
  • RSS feed
  • Atom feed

Founded & Maintained by François Planque