đģReference
General Module Reference
This reference gives you a quick guide to all the code you can use with the Blog, but some features are available to all Modules, see more:
Blog Fields
The Blog uses standard module fields as well as it's own core fields:
Blog Navigation & Filtering
As always, to use filtering on an included module layout, add the use_adv_search
parameter. To allow searching, add use_search
. These settings instruct this component to watch the URL for changes in URL parameters and will adjust results accordingly when the URL changes; forms, anchors or JS (for example, the SiteBuilder Live Updates API) can be used to change the URL and apply these.
By Date
(Requires use_adv_search
)
Include the Archive Layout (included in the default layout, or make your own) to list all available years or months containing blog posts.
Inside an archive layout, you have access to the following variables which can be looped over to find the months in which at least one blog post was published: blog_archive_years
and months_by_year
To apply filters, the URL must be given the following parameters:
A combination of
range_gt
,range_gte
,range_lt
,range_lte
to set the date range to "range greater than", "range greater than or equal to" etc., in the format: %Y-%m-%d.range_type
- an optional convention, you can set this to e.g. "between" or "month" so that you can interpret the URL accordingly when you arrive.range_field
- is used in Events module, but not needed here. Default is to use release date for range field
By Category
(Requires use_adv_search
)
Include the following liquid to dynamically get a list of available Blog Categories for the User to select:
To apply filters, the URL must be given the following parameters:
category - to be given the value of one or more category IDs to filter by, comma separated.
By Author
(Requires use_adv_search
)
To apply filters, the URL must be given the following parameters:
module_field_3_4
- set to a valid Author's module item IDauthor_name
- an optional convention making it easier to display this when arriving at the list.
Keyword Search
Link to the page with a keyword
parameter in the URL to perform a search. (Requires use_search
)
Authors
Fields:
Authors uses standard module fields as well as it's own core fields:
Last updated