Skip to content
Available for new work
Pages in Blog

ConfigurePremium

Sidebar and search settings in CoullWorks Blog for Magento 2

The Sidebar and Rail group: the listing sidebar widgets, recent posts, and every blog search setting.

Updated 17 November 2026Back to the package pageBuy

The group is called Sidebar and Rail. It holds the widgets shown beside blog listings and every search setting. It has no setting for the quick-access rail on an article: that rail comes from the article template, which is chosen under Article.

The fields whose labels start with Search: are saved under coullworks_blog/search/, not coullworks_blog/sidebar/. They sit in this group in the admin and nowhere else.

The Sidebar and Rail group with the widget list, Recent Posts To Show and the six Search fields

The Sidebar and Rail group on a fresh install: no sidebar widget selected, five recent posts, Automatic search engine, the blog section on catalog search shown with three articles above the products, three articles in the header dropdown and four products on the article results page.

The Sidebar Widgets On Blog Listings field in Sidebar and Rail

The Sidebar Widgets On Blog Listings field as it opens on a fresh install: the five widget names with none highlighted.

  • Where it is: Stores, Configuration, CoullWorks, Blog, Sidebar and Rail. Setting path coullworks_blog/sidebar/listing_widgets.
  • Scope: Default, website and store view.
  • Type: Multiple select.
  • Default: nothing selected (full-width listings).
  • Allowed values and checks: Any of Category tree, Recent posts, Tags, Archive, and Blog search box. Hold Ctrl (Cmd on a Mac) to pick several. The widgets always appear in that fixed order, whatever order you click them.
  • What it changes: Shows the chosen widgets in a right-hand column on the blog home, categories, tags, authors and the archive. With nothing selected the listings are full width. The blog search box is off unless you pick it, because the header search is the store's one search box.

Recent Posts To Show#

The Recent Posts To Show field in Sidebar and Rail

The Recent Posts To Show field as it opens on a fresh install: 5.

  • Where it is: Stores, Configuration, CoullWorks, Blog, Sidebar and Rail. Setting path coullworks_blog/sidebar/recent_count.
  • Scope: Default, website and store view.
  • Type: Text field that takes a whole number.
  • Default: 5.
  • Allowed values and checks: Digits only and greater than zero. A stored value that is not a positive number falls back to 5.
  • What it changes: The number of posts the Recent posts widget lists when the widget has no count of its own.

How to add a sidebar to the blog#

  1. Open Stores, Configuration, CoullWorks, Blog.
  2. In Sidebar and Rail, click Category tree, then hold Ctrl (Cmd on a Mac) and click Recent posts and Tags.
  3. Set Recent Posts To Show to the number you want.
  4. Press Save Config and flush the cache.
  5. Open /blog. The listing now has two columns, with the three widgets in the right one. To go back to full width, deselect every widget (Ctrl or Cmd and click each) and save.

Search settings#

These settings control which engine answers blog searches, and how blog articles show up in the store's own search.

Search: Blog Search Engine#

The Search: Blog Search Engine field in Sidebar and Rail

The Search: Blog Search Engine field as it opens on a fresh install: Automatic, with the help line saying that Automatic follows the store.

  • Where it is: Stores, Configuration, CoullWorks, Blog, Sidebar and Rail. Setting path coullworks_blog/search/engine.
  • Scope: Default, website and store view.
  • Type: Drop-down.
  • Default: Automatic.
  • Allowed values and checks: Automatic, OpenSearch (store search engine), Algolia or MySQL fulltext.
  • What it changes: Picks the engine that answers blog searches. Automatic uses Algolia when it is installed and enabled, otherwise the store's OpenSearch, otherwise MySQL fulltext. OpenSearch and Algolia are used only if available; if the one you choose is not, the blog falls back to the next one that is, ending at MySQL fulltext. If the chosen engine fails during a search, that search is answered by MySQL fulltext and the failure is logged.

Search: Show "From the blog" On Catalog Search Results#

The Search: Show "From the blog" On Catalog Search Results field in Sidebar and Rail

The Search: Show "From the blog" On Catalog Search Results field as it opens on a fresh install: Yes.

  • Where it is: Stores, Configuration, CoullWorks, Blog, Sidebar and Rail. Setting path coullworks_blog/search/catalog_section_enabled.
  • Scope: Default, website and store view.
  • Type: Drop-down (Yes or No).
  • Default: Yes.
  • Allowed values and checks: Yes or No.
  • What it changes: When Yes, the store's catalog search results page (/catalogsearch/result/) shows a From the blog section with matching articles. When No, the section is not shown and the two fields below are hidden.

Search: Articles In The Section#

The Search: Articles In The Section field in Sidebar and Rail

The Search: Articles In The Section field as it opens on a fresh install: 3.

  • Where it is: Stores, Configuration, CoullWorks, Blog, Sidebar and Rail. Setting path coullworks_blog/search/catalog_section_count.
  • Scope: Default, website and store view.
  • Type: Text field that takes a whole number.
  • Default: 3.
  • Allowed values and checks: Digits only and greater than zero. Shown only when the section is on. A stored value that is not a positive number falls back to 3.
  • What it changes: How many articles the From the blog section lists.

Search: Section Position#

The Search: Section Position field in Sidebar and Rail

The Search: Section Position field as it opens on a fresh install: Above the products.

  • Where it is: Stores, Configuration, CoullWorks, Blog, Sidebar and Rail. Setting path coullworks_blog/search/catalog_section_position.
  • Scope: Default, website and store view.
  • Type: Drop-down.
  • Default: Above the products.
  • Allowed values and checks: Above the products or Below the products. Shown only when the section is on.
  • What it changes: Where the From the blog section sits on the catalog search results page.

Search: Articles In The Header Dropdown#

The Search: Articles In The Header Dropdown field in Sidebar and Rail

The Search: Articles In The Header Dropdown field as it opens on a fresh install: 3.

  • Where it is: Stores, Configuration, CoullWorks, Blog, Sidebar and Rail. Setting path coullworks_blog/search/autocomplete_count.
  • Scope: Default, website and store view.
  • Type: Text field that takes a whole number.
  • Default: 3.
  • Allowed values and checks: Digits only and greater than zero. A stored value that is not a positive number falls back to 3.
  • What it changes: How many articles appear, under an Articles heading, in the dropdown that opens as a visitor types in the header search box. With Algolia the same number is the number of hits asked for.

Search: Products On The Article Results Page#

The Search: Products On The Article Results Page field in Sidebar and Rail

The Search: Products On The Article Results Page field as it opens on a fresh install: 4.

  • Where it is: Stores, Configuration, CoullWorks, Blog, Sidebar and Rail. Setting path coullworks_blog/search/products_row_count.
  • Scope: Default, website and store view.
  • Type: Text field that takes a whole number.
  • Default: 4.
  • Allowed values and checks: Digits only and greater than zero. A stored value that is not a positive number falls back to 4.
  • What it changes: How many matching products are shown in a row on the blog search results page (/blog/search), for the same words the visitor searched. It is the store's catalog search that supplies them.

How to choose the search engine#

  1. In Sidebar and Rail, set Search: Blog Search Engine to the engine you want. Leave it on Automatic unless you have a reason.
  2. Press Save Config.
  3. Run bin/magento indexer:reindex coullworks_blog_post once. The engine's settings (for Algolia, its index settings) are written on a full reindex, not on each save.
  4. Run bin/magento cache:flush, then search the blog at /blog/search?q=... to check.
  1. Set Search: Show "From the blog" On Catalog Search Results to No.
  2. Press Save Config and flush the cache.
  3. Search the store. The results page lists products only.

Available for new work

UK based · PHP · Python · JS · TS. Every first call is free.