Skip to content
Available for new work
Pages in Blog

ConfigurePremium

General settings in CoullWorks Blog for Magento 2

Enable Blog and the draft preview link lifetime, with what each one does today.

Updated 17 November 2026Back to the package pageBuy

The General group has two fields: Enable Blog, which switches the blog on or off for a store view, and the draft preview link lifetime.

General group#

The General group with Enable Blog set to Yes and the preview lifetime set to 60

The General group on a fresh install: Enable Blog is Yes and Draft Preview Link Lifetime is 60.

Enable Blog#

The Enable Blog field in General

The Enable Blog field as it opens on a fresh install: Yes, with the store view scope label under the name.

  • Where it is: Stores, Configuration, CoullWorks, Blog, General. Setting path coullworks_blog/general/enabled.
  • Scope: Default, website and store view.
  • Type: Yes or No (Magento's Yes/No list).
  • Default: Yes.
  • Allowed values and checks: Yes or No.
  • What it changes: Switches the blog on or off for a store view. With No, that store view answers 404 on the blog home, a post, a category, a tag, an author page, the archive pages, blog search and the feeds. The store view's sitemap has no blog rows, the search suggestions list no blog articles, and catalog search shows no "From the blog" section. The blog widgets and the sidebar render nothing. The admin screens under Content, CoullWorks Blog stay available, so you can keep managing posts for a store view whose blog is off. A public domain with no licence also switches the blog off, as described on the Licence page.
  • Scope in practice: The setting is read per store view, so you can leave the blog on for one store view and off for another.
  • After changing it: Flush the full page cache (System, Cache Management, or bin/magento cache:flush), because pages already cached keep their old answer until then.

The blog home with Enable Blog set to No: a 404

The blog home with Enable Blog set to No: a 404

The Draft Preview Link Lifetime (minutes) field in General

The Draft Preview Link Lifetime (minutes) field as it opens on a fresh install: 60, with a one-line help text under it.

  • Where it is: Stores, Configuration, CoullWorks, Blog, General. Setting path coullworks_blog/general/preview_ttl_minutes.
  • Scope: Default only (the admin shows it as global).
  • Type: Text field that takes a whole number.
  • Default: 60.
  • Allowed values and checks: Digits only and greater than zero. If a value that is not a positive number is stored anyway, the blog uses 60.
  • What it changes: How many minutes the signed link from a post's Preview button stays valid. The link has the form blog/post/preview/id/<post id>/token/<token> on the first store view of the post. Anyone holding it can read the draft until it expires, so treat it as a secret. After it expires the address answers 404, and pressing Preview again makes a new one. The preview page is NOINDEX,NOFOLLOW, and is sent with headers that stop any cache keeping it.

How to change the draft preview lifetime#

  1. Open Stores, Configuration, CoullWorks, Blog at Default Config.
  2. In General, set Draft Preview Link Lifetime (minutes), for example 1440 for one day.
  3. Press Save Config.
  4. Open a draft under Content, CoullWorks Blog, Posts and press Preview. The new link is valid for the time you set.

Links you made before the change keep the lifetime they were made with.

Available for new work

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