disp = single
This Disp is used to display a single post, typically with its comments below.
This applies to regular posts as well as custom Post Types that have no special behavior. See disp=page for an example of a special behavior. For example, the disp=single
display typically displays Previous & Next links, whereas the disp=page
template doesn’t.
The display of the comments below the post is influenced by settings found in Features > Comments.
This, of course, only applies as long as the particular skin you are using doesn’t completely override the behavior of b2evolution’s default disp=single
handler or the default feedback display templates.
Additional URL params
Name |
Type |
Description |
Default |
---|---|---|---|
blog |
integer |
ID of the blog to be displayed. In the front-office, the ID of the collection to be displayed will generally be determined by the URL. |
|
p |
integer |
ID of the post to display |
|
page |
integer |
Number of the page to display (in case of multipage posts) |
1 |
Examples
To pass parameters in the query string, precede the first param name with a ?
question mark and every other param with a &
sign.
-
index.php?p=50
will display the post with ID #50 in the database. -
index.php?p=50&page=1
will display the first page of post #50. this, again, should be used only with p=, for individual entries.
Default Container and Widgets
Below is the default main Container and Widgets of this $disp
that comes with b2evolution. Yours may look different depending on the particular skin in use and the widgets currently installed and how they are configured.
_single.disp.php
file in the currently used skin’s folder.