Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.




Section


Column
width50%

Table of Contents

Warning

Firefox user notice:

Please use another web browser to view this document.

Sorry for the inconvenience.



Column
width30%

                                                                                                                                                                                                   

Magento 2 Blog is an all-in-one solution for eCommerce blogging. It allows store admins to design and manage a blog on a retail web-site with respect to all the essential operations: publishing product-related articles, keeping a database of authors, answering comments and providing for posts self-promotion on the web. The extension boasts a WYSIWYG editor as well as a set of other features and integrations which help create speaking content and let readers scatter posts via social networks. To further bring customers to the brand, the extension has settings to enable cross-promotion, relating products to posts and vice versa.   

Magento 2 Blog as of version 2.8.0 supports Magento 2 PWA.

Compatibility: Magento Open Source 2.3.X - 2.4.X, Magento Commerce 2.3.X - 2.4.X

Product Page


...

Command Line InstallationComposer Installation


Panel
borderWidth2px
borderStylesolid

1. Backup your web directory and store database


Panel
borderWidth2px
borderStylesolid

2. Download the Blog installation package


Panel
borderWidth2px
borderStylesolid

 3. Upload contents of the Blog installation package to your store root directory


Panel
borderWidth2px
borderStylesolid

 4. In SSH console of your server navigate to your store root folder:

No Format
cd path_to_the_store_root_folder

run the following commands :

No Format
php -f bin/magento module:enable Aheadworks_Blog
php -f bin/magento module:enable Aheadworks_BlogGraphQl

then:

No Format
php -f bin/magento setup:upgrade

after:

No Format
php -f bin/magento setup:static-content:deploy


Panel
borderWidth2px
borderStylesolid

5. Flush store cache; log out from the backend and log in again


Note

Make sure you proceed to installation as an FTP administrator. Otherwise, set 775 permission to the store root directory after the extension is deployed.




Column
width50%


Panel
borderWidth2px
borderStylesolid

If you are installing an extension from Aheadworks for the first time, you need to add our composer repository to your Magento store:

Panel
borderWidth2px
borderStylesolid

1. Login to your ssh console and navigate to your store folder:

Panel
borderWidth2px
borderStylesolid
cd path_to_the_store_root_folder

Run the following command:

Panel
borderWidth2px
borderStylesolid
composer config repositories.aheadworks composer https://dist.aheadworks.com/

On successful execution of the command you will be able to use the composer to install the extensions.



Panel
borderWidth2px
borderStylesolid

To install the extension:

2. Login to your ssh console and navigate to your store folder:

Panel
borderWidth2px
borderStylesolid
cd path_to_the_store_root_folder



Panel
borderWidth2px
borderStylesolid

 3. Run the following command to install the latest version of the extension:

Panel
borderWidth2px
borderStylesolid
composer require aheadworks/module-blog

if you need to install a specific version, run this command:

Panel
borderWidth2px
borderStylesolid
composer require aheadworks/module-blog:<version>


Tip

Specify the desirable extension version in <version>.


Panel
borderWidth2px
borderStylesolid

When prompted, enter Public Key (Username) and Private Key (Password):


Note

Both Public Key (Username) and Private Key (Password) can be found in My Projects and Licenses in your personal account on our site:

Image Modified

Run the following command to install Blog GraphQl:

Panel
borderWidth2px
borderStylesolid
composer require aheadworks/module-blog-graph-ql



Panel
borderWidth2px
borderStylesolid

4. Enable the extension:

Panel
borderWidth2px
borderStylesolid
php -f bin/magento module:enable Aheadworks_Blog
php -f bin/magento module:enable Aheadworks_BlogGraphQl

Next, register the extension:

Panel
borderWidth2px
borderStylesolid
bin/magento setup:upgrade

Recompile your Magento store if you are in the Production mode:

Panel
borderWidth2px
borderStylesolid
bin/magento setup:di:compile

To verify that the extension is enabled, run this command:

Panel
borderWidth2px
borderStylesolid
bin/magento module:status

Clean store cache, by running the following command:

Panel
borderWidth2px
borderStylesolid
bin/magento cache:clean

Log out and Log in the backend again.


Panel
borderWidth2px
borderStylesolid

To upgrade the extension:

5. To update or upgrade an extension:

Download the updated extension file. Take note of the module-name and version. Export the contents to your Magento root.

If a composer package exists for the extension, run one of the following.


Code Block
titleUpdate per module name:
composer update aheadworks/module-blog


Code Block
titleUpdater per version:
composer require aheadworks/module-blog:<version>

Run the following commands to upgrade, deploy, and clean the cache.

Panel
borderWidth2px
borderStylesolid
php bin/magento setup:upgrade --keep-generated
php bin/magento setup:static-content:deploy
php bin/magento cache:clean




...

Introducing M2 Blog

Section

Magento 2 Blog enables a blog on Magento 2 stores. The extension brings about the following features:


Warning
titleHow to integrate Blog into Magento 2 PWA?

We recommend that a developer processes integration of M2 Blog into Magento 2 PWA.

Find the instructions here.

Store admins are suggested to refrain from the intricacies of the integration, unless otherwise is not beyond the qualification of the Store-admin.



Registering Disqus


Section

The Blog extension by Aheadworks uses the Disqus service to process and manage blog comments. Along with the comment management enhancements, Disqus allows defining if guest-customers can comment on blog posts and open discussions on Disqus forums; furthermore, it serves as another social platform to advertise your store.

Column
width50%


Panel

1. Create an account on Disqus;

Expand

a) Proceed to the Disqus website;

b) Click the  button in the upper right corner of the screen to proceed to the registration form.

You can create an account with your social network account or register via email. When registering via email, remember to check your inbox for the follow-up 'Confirm email address' message from the Disqus team to complete the registration.



Panel

2. Register a new application;

Expand

a) Proceed to the API Resources page and click the Image Modifiedbutton;

Decide on the Application Label, Description, Organization name, and Website fields. These are necessary to identify your Disqus application.

Once done, click the  button to create the application.

b) Navigate again to the API Resourses page and copy the newly generated Secret Key of your application;

Under the Application section, you can now see the newly created application. Copy the application's Secret Key and paste it to the Disqus Secret Key field (see 1227948850 for details).

c) The secret key is now set, and it's time to click the 'Admin' link to add your personal site to Disqus. This is where you will be able to manage all blog comments.


Panel

3. Add a new site;

Expand

a) Proceed to the Your Sites block at the top of the page and click the Image Modifiedbutton;

b) Decide on the Website name, copy the Unique Disqus URL below the Website Name and choose a category (optional).

Paste the UniqueDisqus URL to the Disqus Forum Code field (see 1227948850 for details).

c) Click the  button when done.


Info

Please note, the Website name you enter will be displayed above the Comments section of each blog post:

Image Modified




Panel

4. Configure comments policies.

Expand

a) Haveing added the site, navigate to the Settings section;

b) Proceed to the Community tab:

  • Guest Commenting - decide if you want to allow guest-customers to leave comments;
  • Pre-moderation - decide if you want to manually approve comments;
  • Links in Comments - decide if you want to manually approve only the comments that contain links;
  • Media Attachments - decide if you want to let your customers attach images and videos to comments;
  • Flagged Comments - decide on notifications on customer reported comments;
  • Automatic Closing - decide if you want a blog post to become unavailable for comments once time limit is reached;

c) You may also want to look through other settings available. When finished, click the button at the bottom of the page.




Note

Please note, we are not able to provide assistance with Disqus services beyond the points covered in this manual.

If you have any questions or require further assistance, please refer to the Disqus knowledge base.





Migrating from Magento 1 Blog


Column

Important Notes

Warning

Read carefully the information below, should you decide for migration. Carelessness here may result in accidental data loss.

  1. The Magento Data Migration Tool is required for migration.
    Instal the Magento Data Migration Tool. Please note, the migration script relies heavily on the Magento Data Migration tool. Understanding the principles of the tool may turn useful in carrying out flawless migration.
  2. Backup Magento 2 databases before migration to ensure safe recovery, if need be.
    Blog migration may involve rewriting database tables. Therefore, backup is strongly advised.
  3. Blog post images cannot be migrated automatically and should be migrated manually for best results.
    More information on migrating images can be found in the Magento instructions on manual migration.
  4. All widget references which include CMS blocks should be migrated manually.
  5. Pay close attention to the <aw_blog_updates> tag value. You will have to enter it when you already have some posts on your Magento 2 store and want to keep them.
    The "0" value set by default will overwrite all existing Magento 2 Blog posts, the "1" value will add new posts to the already existing ones.

Video Guide

The Video Guide (see Aheadworks Youtube channel) highlights all the stages of migration. At the same time, we advise reading the instructions below to make sure you do not miss anything.

Remember to enable subtitles in the video to follow the migration in details.

Migration Process

Below, you can find a detailed guide on migration

Panel

1. Log into your Magento server as file-owner and navigate to the directory where you have your Magento 2 store installed

Expand

For example:

No Format
cd /var/www/my_magento2_store/




Panel

2. Install the Magento Data Migration Tool

Expand

The instructions on installing the Magento Data Migration Tool along with some basic information can be found here: http://devdocs.magento.com/guides/v2.0/migration/migration-tool-install.html

Magento provides two ways of installing the Magento Data Migration Tool:

For the demo video we installed the Data Migration Tool from GitHub.

Once the installation is complete, you may navigate to vendor/magento/ to make sure the Migration Tool has been installed successfully.



Panel

 3. Download Blog migration distributive and unpack it to the desired location

Expand

The Blog migration distributive can be downloaded via the following links: https://s3.amazonaws.com/aheadworks_cdn/Blog/data-migration-tool.zip (for Magento 2.1) and http://s3.amazonaws.com/aheadworks_cdn/catalog/Blog/data-migration-tool.zip (for Magento 2.2 and 2.3).

Unpack the contents of the distributive to find the /etc and /scr folders inside.



Panel

4. Copy the contents of the Blog migration distributive to the Magento Data Migration Tool main folder

Expand
Copy the /etc and /scr folders included in the Blog migration package to: vendor/magento/data-migration-tool/

Rewrite on prompt.



Panel

5. Edit the config.xml file of the Magento Data Migration Tool

Expand
Navigate to vendor/magento/data-migration-tool/etc/aw_blog/ and open config.xml to edit.
Please find more information on the values of the tags, and learn which of them are to be used, here: Magento Data Migration Tool configuration instructions.


Note

Pay close attention to the <aw_blog_updates> tag value. You may enter it when you want to keep the posts you already have on your Magento 2 store.
The "0" value set by default will overwrite all existing Magento 2 Blog posts, the "1" value will add new post entries to the already existing ones.




Panel

6. Run the migration script in the console

Expand

Run the following command considering the path to config.xml to start the migration process:

No Format
bin/magento migrate:data [-r|--reset] {<path to config.xml>}

In the demo video, we are using the following command:

No Format
bin/magento migrate:data -r vendor/magento/data-migration-tool/etc/aw_blog/config.xml




Panel

 7. Data migration is complete. Make sure to migrate images and widget-related items manually.


Panel

8. Once migration is complete, the Blog extension will create new database tables and mark the obsolete ones with the _old postfix.

Expand

On successful migration, you may want to remove the old database tables:

DROP TABLE IF EXISTS `aw_blog_cat_old`;
DROP TABLE IF EXISTS `aw_blog_cat_store_old`;
DROP TABLE IF EXISTS `aw_blog_post_old`;
DROP TABLE IF EXISTS `aw_blog_post_cat_old`;
DROP TABLE IF EXISTS `aw_blog_post_store_old`;
DROP TABLE IF EXISTS `aw_blog_post_tag_old`;
DROP TABLE IF EXISTS `aw_blog_tag_old`;





...

Section

Configuring the Extension

Once you are done with installing the extension and registering the Disqus application, proceed to your Magento 2 backend to finalize the setup of the Blog extension.

Before creating your first blog post, we suggest walking through the settings of the Blog extension. This will help you then keep complete control over your blog. Go to Stores > Configuration > AHEADWORKS EXTENSIONS > Blog.

General Settings

This is where you configure the behaviour of the blog: its accessibility, content layout, and etc.

Please refer to the following configuration options:

  • Enabled - defines if the Blog extension is enabled in your store;

  • Add Blog to Navigation Menu - enables/disables the Blog tab on the frontend in the navigation menue;
  • Blog Title - defines the name of the blog page; 
  • Route to Blog - defines the direct link to the main blog page of your store;
  • Route to Authors Page - defines the link to the authors page of the blog;
  • Posts per page - defines how many posts will be displayed per a blog page;

  • Quantity of related posts - defines the number of related posts will be displayed on a page;
  • Display Sharing Buttons At - defines where the social network sharing buttons should be displayed at;

  • Comments enabled - defines if customers can comment blog posts;
  • Disqus Forum Code - paste here the Disqus URL from Step 3 of the Disqus setup above;

  • Disqus Secret Key - paste here the Disqus Secret Key from Step 2 of the Disqus setup above;

  • Facebook App ID - allows you to take benefit of Facebook Insights and explore the traffic from Facebook to your site;
  • Default Twitter site account - the Twitter card markup required to determine the official company's Twitter account;

You have just configured the main blog page and enabled access to it. Scroll down the General Settings window to proceed to adjusting the sidebar of the Blog and SEO metadata.

Sidebar

This configuration section reflects the Blog sidebar's functional aspects. These settings define the post tags look, let you add a CMS block and configure the recent posts to display.

Here, you have access to the following configuration options:

  • Number of Recent Posts to Display - defines how many most recent blog posts are to be displayed in the Blog sidebar;
  • Number of Most Popular Tags to Display - defines how many popular tags are to be displayed in the tag cloud of the blog sidebar;
  • Highlight Popular Tags - defines if the most popular 1227948850 are to be highlighted with bold or increased font size;
  • Sidebar CMS Block - allows choosing a CMS block to be displayed on the blog sidebar;
  • Display Categories List in a Sidebar - enables blog categories to be displayed on the sidebar;
  • Maximum Number of Categories to Display - the number of categories visible above the 'Show X More' link on the sidebar.

SEO

Scroll down the Sidebar configuration, and find the SEO metadata settings block. This is where you optimize your blog for best search outcomes with modern search engines. 

The options here come as follows:

  • Enable Meta Tags - leave 'Yes' (by default) should you not opt for a stand-alone third-party SEO solution; 
  • Blog Meta Descriptiona brief description of the content of the Blog Home page (an element in the HTML code of the page to be displayed by a search engine in search results);
  • Blog Meta Keywords - a list of phrases to tell the search engine the topic of the page (an element in the HTML code of the page);
  • URL structure - one of the two options for the structure of a blog post url (including or excluding the category name);
  • Post URL Suffix - the character(s) to close a URL of a blog post (usually a '/', '.html' or empty);
  • Author Page URL Suffix - the character(s) to close the Author Page (aka the 'All Authors' page) URL;
  • URL Suffix for all other pages - the character(s) to close the URL of the blog Home page, categories page, authors page and search by tag page.
  • Create Permanent Redirect for URLs if URL Key Changed - select 'Yes' to avoid confusing customers with pages differing in content and URL suffixes; 


Info

URL Suffix - to forward-slash or not?

This is mostly the question of a forward slash, which is often automatically added to a url by many blog platforms like Wordpress, for example. The addition of a slash at the end of a URL (aka trailing slash) instructs the web server to search for a directory. This speeds the web page loading because the server will retrieve the content of the web page without wasting time searching for the file. However, this is not the rule, but a recommendation of the present day. You may either use the trailing slash or not, but make sure the choice is consistent.

It is important to stick to the preferred version and enforce a common policy for all the URLs of the website, including those in the site map. In some cases, the non-trailing slash and trailing slash version don’t redirect to the same version of a page. This can be the case when you migrate your blog from Wordpress to Magento. Wordpress deliver the same content with and without the trailing slash. Migration may break the ties. To prevent showing multiple results to the visitors, set up redirection to the preferred URLs. In the latest version (2.7.0) of the extension this could be done with the help of the Create Permanent Redirect for URLs if URL Key Changed selector. 


Image Modified

  • Use Canonical Link Meta Tag For Categories - decide whether you are using canonical link meta tag for category pages;
  • Use Canonical Link Meta Tag For Posts - decide whether you are using canonical link meta tag for post pages;
  • Use Canonical Link Meta Tag For Authors - decide whether you are using canonical link meta tag for author pages;
  • Title Prefixthe text line to start the title of a blog page (as included into the <title> tag);
  • Title Suffixthe text line to close the title of a blog page (as included into the <title> tag);
  • Organisation - the name of your company (as included into structured data (JSON-LD) markup).

Info

Canonical tags

A canonical tag (aka "rel canonical") is a way of telling search engines that a specific URL represents the master copy of a page. Using the canonical tag prevents problems caused by identical or "duplicate" content appearing on multiple URLs. Practically speaking, the canonical tag tells search engines which version of a URL you want to appear in search results.

For example, if your blog is configured to include the category path in post URLs, your store will generate multiple URLs that point to the same product page:

http://site.com/blog/health_and_lifestyle/food_and_diet/recipes/sample_recipe/
http://site.com/blog/sample_recipe/
When canonical meta tags for categories are enabled, the category page of your blog includes a canonical URL to the full category URL:
http://site.com/blog/health_and_lifestyle/food_and_diet/recipes/sample_recipe
When canonical meta tags for posts are enabled, the post page includes a canonical URL to the domain-name/post-url-key because post URL keys are globally unique.
http://site.com/blog/sample_recipe/

Canonical tags vs. redirects

One common SEO question is whether canonical tags pass link equity like 301 redirects. In most cases, they seem to, but this can be a dangerous question. Keep in mind that these two solutions create two very different results for search crawlers and site visitors.

If you 301 redirect Page A-->Page B, then human visitors will be taken to Page B automatically and never see Page A. If you rel-canonical Page A-->Page B, then search engines will know that Page B is canonical, but people will be able to visit both URLs. Make sure your solution matches the desired outcome.


Tip

Title tags

Having a strong, relevant, clickable title can have a major impact on rankings, click-through rates and overall traffic numbers. Include key-words in your title prefix and company name in the suffix, for example. 

The title tags set herein will then be added as a title-tag automatically, to all subpages, that do not have absolute title-tags. 

The settings above echo those in Stores->Config->Catalog->Catalog->Search Engine Optimization. For more details on SEO practices in Magento 2 refer to the official Magento 2 use guide.

Related Products

Scroll down  the extension settings page to reach the Related Products block.

Starting 2.0 version of the Blog extension, store administrator can add related product to a blog post page. In addition, a Blog tab is added to the product pages. Under the Blog tab customers can find blog posts where the product is mentioned as related.

This configuration section defines the behavior and layout of the product block related to the blog posts:

  • Display Blog Posts Tab on Product Page - defines if the Blog tab should be displayed at product pages;
  • Display Related Products Block on Post Page - defines if and where the related products block should be displayed at the blog post page;
  • Related Products Block Layout - defines the related product block's layout;
  • Display "Add to Cart" Button - defines if the Add to Cart button should be displayed on the products featured in the related product blocks at blog post pages.

Once done with the settings click the Save Config button at the top of the Configuration page, or proceed to the next step.

Wordpress Import

Go to Stores > Configuration > Aheadworks extensions > Blog and scroll down the page to reach the settings for Wordpress blog import. Starting from 2.2.0 version of the Blog extension, store administrator can import blog posts from a WordPress blog.

The process behind the migration is the following:

  1. Navigate to Tools > Export in the Wordpress administrator area;
  2. Choose 'Posts' option and click the Download export file button. An XML file containing all blog posts should be downloaded;
  3. Navigate to your Magento backend Stores > Configuration > aheadWorks extensions > Blog;
  4. In the 'Wordpress Import' section of the Blog settings upload XML file via 'Import file';
  5. Set 'Override existing posts with the same URL' if you want the existing Magento 2 posts with the same URL overridden;
  6. Click 'Import Posts' button to begin post import;
  7. If imported successfully copy contents from the Wordpress folder:
    wp-content/uploads/ 
    directly to the Magento folder:
    /pub/media/wp-content/uploads/
    If this directory doesn't exist - create it manually. Make sure file permissions are set up properly.

Post migration is now complete.

RSS Feeds

To add blog post updates to your store RSS feeds go to Stores > Settings > Configuration > Catalog > RSS Feeds.

Enable RSS Feeds for Aheadworks Blog.



Blog Categories

Categories Grid

To create and manage blog categories please navigate to Content > Blog by Aheadworks > Categories. This is where you will see the Categories grid to collect the categories available in the blog.


The Categories grid will include the following columns:

  • ID - identification number of the category;
  • Category Name - the name of the category;
  • URL Key - the uniform resource locator of the category;
  • Meta title - the title of the category as shown by a search engine in search list;
  • Meta Keywords - the words to tell a search engine the key ideas of the category;
  • Meta Description - the description of the category as shown by a search engine in search list below the title;
  • Status - the status of the category (enabled/disabled);
  • Store view - the view of the store to feature the category in the blog;
  • Sort order - the whole numeric to suggest order of the categories in the category tree.

You can edit categories one after another by clicking the name of the category or in bulk. The latter is possible with the Actions folding list on the left just below the table.

Create/Edit Category

Click the Create Category button to add a blog category to the store. This window will come open:

To create a new category please proceed to the three steps below:

Set-up the hierarchy - step 1

To assign a place for a new category in the hierarchy use the block on the left of the customisation fields. There you will see the Categories Tree, which you can expand or collapse via the active links in blue above the tree. Further above you will see two gray buttons Add Root Category and Add Subcategory which act out respectively to their names.

  • First category created will start the hierarchy;
  • To add a subcategory, choose the category which will be expected to be the root one in the tree and click the Add Subcategory button.
  • To add a root category, choose the category which will be expected to be the subcategory and click the Add Root Category button.

Please note, when you do not refer to the hierarchy tree after clicking the Create Category button, and proceed straight on to the category customisation fields, the newly created category will be added as a root one to the bottom of the tree. You will later be able to sort out the order of categories in the Categories table as described in the section above.

Customize the category - step 2

Refer to the following fields:

  • Name - the name of the category speaking for its content;
  • URL-key - the url-key to the category (is generated automatically as you fill-in the field above, but at the same time may be adjusted manually when clicking on the field);
  • Status - enable or disable categories with this field;
  • Image - upload an image to visually support the category page;
  • Image title - suggest the title for the image which will appear when hovering the mouse cursor over the image;
  • Image text - suggest the text for the image which will appear should the picture be not displayed;
  • Description - type-in a description of the category to make the page more informative.

Tweak SEO settigns - step 3

The options for configuration here come as follows:

  • Meta Title - add a meta title to the category (this will be shown as a title line by a search engine in the search list)
  • Meta Keywords - add keywords for search engines to know what the category page is about;  
  • Meta Description - add a description as it will appear below the meta title in the search list; 
  • Prefixthe text line to start the title of the category page (when left blank the Title Prefix value will be used as set in the Extension Settings);
  • Suffixthe text line to close the title of the category page (when left blank the Title Suffix value will be used as set in the Extension Settings).
Tip

SEO tips:

  1. Add keywords to the prefix
  2. Add action and power words to the title
  3. Drop in keyword variations and secondary keywords into the title
  4. Remember to mention your company/blog name in the suffix.

A suggested example of a Blog/category tag will be: [Keyword] - [Category title or tighter version of the category title] | [Blog/site name]


Info

The above text fields are backed with hints on line length in characters. You will be able to see the number of characters in your text-line as you type it in.

Once finished, click the Save button on top of the page. You will be redirected to the Categories page.

Info

Your customers will be able to see and navigate along the categories on the frontend. Check out the snaphshot below as an example.



Authors

Authors Grid

To add and manage blog authors please navigate to Content > Blog by Aheadworks > Authors. This is where you will see the Authors grid to collect the authors featured in the blog.

The Authors grid will come in the following columns:

  • ID - the identification number of the author;
  • Image - the thumbnail avatar of the author;
  • Name - the name of the author;
  • Meta title - the title of the author page as shown by a search engine in search list;
  • Meta Keywords - the words to tell a search engine the key ideas in the author page;
  • Meta Description - the description of the author page as shown by a search engine in search list below the title;
  • Twitter ID - the name of the Twitter account of the author;
  • Facebook ID - the name of the Facebook account of the author;
  • LinkedIn ID - the name of the LinkedIn account of the author;
  • Qty of Posts - the whole numeric to tell the number of posts made by the author;
  • Action - an active link to select between the two actions: Edit and Delete.

You can edit authors individually by clicking the active link in the correspondent cell of the Action column, or in bulk. The latter is possible with the Actions folding list on the left just below the table.

Create/Edit Author

To add a new author, click the Create New Author button in the top right of the page. You will be redirected to the New Author page.

To complete the authors page, follow the two steps below:

Suggest general information about the author - step 1

The page has the following fields, which speak for their target content: Image File, First Name, Last Name, URL-key, Job Position, Short Bio, Twitter ID, Facebook ID, Linkedin ID

Fill-in the mandatory fields marked with an asterix (*). You may also opt for the ones which are not.

Use the rich-text formatting bar to make the content of the author's biography visually appealing to readers.

Note

Text is only supported in "Short bio" on the Authors page. Widgets are not supported


Tip

It is suggested you use a square image of 200x200 pixels minimum (400x400 pixels is recommended) for the avatar of the author.

Tweak SEO settings for the Author Page - step 2

The options for configuration here come as follows:

  • Meta Title - add a meta title to the author page (this will be shown as a title line by a search engine in the search list)
  • Meta Keywords - add keywords for search engines to know what the author page is about;  
  • Meta Description - add a description as it will appear below the meta title in the search list; 
  • Prefixthe text line to start the title of the author page (when left blank the Title Prefix value will be used as set in the Extension Settings);
  • Suffixthe text line to close the title of the author page (when left blank the Title Suffix value will be used as set in the Extension Settings).
Tip

SEO tips:

  1. Add keywords to the prefix
  2. Add action and power words to the title
  3. Drop in keyword variations and secondary keywords into the title
  4. Remember to mention your company/blog name in the suffix.

A suggested example of a Blog/Author tag will be: [Keyword] - [Category title or tighter version of the category title] | [Blog/site name]


Info

The above text fields are backed with hints on line length in characters. You will be able to see the number of characters in your text-line as you type them in.

Once finished click the Save button. You will be redirected back to the Authors page.

Info

Authors' names will be clickable on the frontend. In your blog thus, readers will be able to follow the authors they like most.



Blog Posts

Posts Grid

To add and manage blog posts, navigate to Content > Blog by Aheadworks > Posts. The page will feature a grid to aggregate all posts created/migrated into the blog.

The grid contains the following columns:

  • ID - the identification number of the post;
  • Title - the title of the post as it will appear on the frontend;
  • Image - the thumbnail of the head image in the post; 
  • Status - the status of the post (published, drafted);
  • Publish Date - the date of publishing of the post;
  • Published Comments - the whole numeric to tell the number of comments published to the post;
  • New Comments - the whole numeric to tell the number of comments not yet confirmed by the admin for publishing on the frontend;
  • Categories - the categories the post belongs to;
  • Tags - the phrases to tell readers/customers what the post is about;
  • Author - the author of the post;
  • Store view - the store view the post belongs to;
  • Meta title - the title of the post page as shown by a search engine in search list;
  • Meta Keywords - the words to tell a search engine the key ideas in the post page;
  • Meta Description - the description of the post page as shown by a search engine in search list below the title;

You may edit posts individually by clicking the active link in the Title column, or in bulk. The latter is possible with the Actions folding list on the left just below the table.

Create/Edit Post

To add a new post, click the Create New Post button in the top right of the page. You will be redirected to the New Post page.

To complete the post page, follow the two steps below:

Add content and suggest general information about the post - step 1

Refer to the block on the left.

At this step you are suggested to:

  • Type-in the blog post title;
  • Decide on the URL-key of the post;
  • Upload an image and suggest details to it: image title (appears when hovering a mouse cursor over the image) and Alt Text (appears instead of the image when the latter is not displayed);
  • Type-in the body of the post and format it to your needs and taste (the Show/Hide Editor button hides/enables the WYSIWYG editor as part of the Bluefoot Magento page builder and allows for HTML/CSS markup of the post text);

The image can be taken from the existing media files or uploaded from your device. Click the Upload button next to the Image field. With Magento 2 Blog 2.6.0, featured images are used as thumbnails for the display of blog posts in a category, recent posts, and related posts. 

Info

Best parameters for sharing on Facebook and Twitter:
Minimum 600x315px, 1200x630px is recommended.
Maximum 4096x4096px, less than 5Mb.
Try to keep aspect ratio close to 2:1 to avoid image cropping.

Decide if your post should have a Short Content, set the post to a particular category and decide on tags.

Short Content can prove useful if your post is content heavy and takes a couple of pages. What it does is instead of displaying the whole post on a Blog page it allows displaying only the contents of the Short Content field, thus saving blog page space and making it look neat.

Info


Expand

Without Short Content field enabled:

With Short Content field enabled:


Tweak SEO settings for the Author Page - step 2

The options for configuration here come as follows:

  • Meta Title - add a meta title to the post page (this will be shown as a title line by a search engine in the search list)
  • Meta Keywords - add keywords for search engines to know what the post page is about;  
  • Meta Description - add a description as it will appear below the meta title in the search list; 
  • Prefixthe text line to start the title of the post page (when left blank the Title Prefix value will be used as set in the Extension Settings);
  • Suffixthe text line to close the title of the post page (when left blank the Title Suffix value will be used as set in the Extension Settings).
Tip

SEO tips:

  1. Add keywords to the prefix
  2. Add action and power words to the title
  3. Drop in keyword variations and secondary keywords into the title
  4. Remember to mention your company/blog name in the suffix.

A suggested example of a Blog/Author tag will be: [Keyword] - [Category title or tighter version of the category title] | [Blog/site name]


Info

The above text fields are backed with hints on line length in characters. You will be able to see the number of characters in your text-line as you type them in.

Add products related to the post - step 3

Scroll down the page to the Related Products block to add products related to the content of the post. These will appear on the frontend behind the post.

To specify the products for relation to the post, use the Conditioning section. This is where you can set a combination of conditions to the attributes of the products, which will then be filtered for relation to the post.

Click the green '+' to add a condition, and the red 'x' to delete one. Click the words in bold to unfold the options of the condition or the options of the product attribute.  

Info

Products related to blog posts will in turn automatically receive the Blog Posts tab on the product page  featuring the posts they are related to.

Image Modified

Configure the post for publishing - step 4


Refer to the block on the right.

This block opens up the following features to be configured before you complete the post:

  • Post scheduling;
  • Assigning an author;
  • Selecting a category for the post;
  • Typing-in tags relevant to the content of the post;
  • Enabling comments;
  • Setting-up Twitter site account;
  • Selecting groups of users who will be able to see the post.

 Schedule the post for successive publishing.

Info

Scheduling posts can prove vital in various situations. Very often it is useful for posts to appear not later or earlier some occasion like the following:

  • Start of the sale;
  • New product/service release;
  • Holiday (to greet);
  • etc.

With the scheduling functionality, you can choose the date, hour, and even second you want the draft to be published.

Whenever you click the Calendar icon  next to the Publish now field a Calendar will fold out where you can select the date and time. To fix the selection click Close, the data and time will appear in the Publish now field. If you want your post to be published today click Go Today, current date and time will appear in the Publish now field. There is another opportunity to set current date and time to your post. It saves a great deal of time! Do not click the Calendar icon in the Publish now field, leave it blank, and your post will be published instantly once you finalize customisation.

Expand


Tags are one of the navigation tools provided by the Blog extension. Every post is suggested to be tagged with relevant words or phrases to simplify subsequent search performed by customers via the search field of your Magento store. Tags are gathered in a tag cloud displayed in the blog Sidebar.

Info


Expand

The more relevant your tag is, the more highlighted it is. See the image above, the 'sport' and 'fashion' tags have been used three times on our blog, all other tags were used only once. As you can see from the tag cloud the tag 'sport' is larger than the others.


The default Twitter Card tag of the shop can be customized herein. Do that with the 'Twitter site account' text-field.

The 'Enable post for customer groups' makes it possible to hide posts from particular customers when necessary.

To complete creating/editing the post, click the Publish Post button at the top of the page.

Magento 2 PageBuilder - step N

Release of Magento 2 PageBuilder has been an important landmark in store content creation. The Magento 2 Blog extension supports the PageBuilder functionality. The drag-and-drop composer is available for Magento 2 Commerce stores and can be found on the new post page in the backend.

Image Modified

For the PageBuilder details, please, follow the link

Save/Preview Post

On completing the above three steps (or anytime along the process) you will be able to save the post. Do that with one of the options available in the control bar at the top of the page.

  • Save as draft (save and get redirected to the Posts Grid);
  • Save and Continue Editing (save and stay on the Create/Edit Post page).

Alternatively, you can preview the post. The preview page will not save the post, but will open in the new window of the browser. The Preview page will have all the main page elements. 

Info

The Preview Post page will not be indexed by search engines and will not be added to the sitemap.

The Publish (Update) Post button also saves the post, at the same time confirming its publication on the front. The action redirects you to the Posts grid.



Commenting, Sharing, Relating

Once your post is ready and published, customers may see it as shown in the three pictures below. Check out the tags, social networks sharing buttons, categories field, related posts, related products, and finally the block for comments.

  • Social network sharing buttons - available right after installation and do not require additional setup;
  • Tags - are clickable for quick blog navigation;
  • Related Posts block - is displayed below the post body and contains post selected based on similar tags


  • Related Products - add the related products to the blog post page to boost your sales (the Add to Cart button will be added to each related product to motivate customers for quick response );
  • Blog post category - represents a category of the post (store only);
  • Disqus account login - promts your customers to log in to Disqus forums;
  • Disqus forum name and link - navigates to your store forum on Disqus.

How to comment

In order to comment, customers need to have a Disqus account or log in via Facebook, Twitter, or Google+. Once logged in, they can leave comments and enter any open discussions on Disqus.

By clicking on the Disqus forum name, customers are redirected to the corresponding Disqus forum of your store. Here, all active blog posts will be represented as different forum topics that customers can join.

Customers can like, share, flag, and reply to comments. Every customer's action is reflected on the Blog page of your store.

How to manage comments

As a store admin, you can manage all customer comments to your blog posts. To do so proceed to Content > Blog by aheadWorks > Comments.

Сomment management takes place on the Disqus side. Here, you can approve, mark as spam, and delete comments along with managing the Disqus forum settings.

For more information on how to manage the comments and set up Disqus, read the Disqus knowledge base.



OpenGraph

In order to make social media sharing convenient and attractive for your customers, the extension uses both Open Graph markups.

The Open Graph markup acts behind the scenes and includes the following tags:

  • “og:site_name” content="Store title" - store title;

  • “og:type” content="article" - the type of marked-up object. ‘Content’ in this particular case;

  • og:locale - the locale to be used;

  • og:image - an image representing blog post;

  • og:title - blog post title;

  • og:description - blog post short description;

  • og:url - canonical blog post URL.



GraphQL

GraphQL is a query language for your API, and a server-side runtime for executing queries by using a type system you define for your data. GraphQL isn't tied to any specific database or storage engine and is instead backed by your existing code and data.

GraphQL API support starts with version 2.5.0 of the Blog. The GraphQL acts behind the scenes and allows the following types and fields for markup:

  • list of blog categories;
  • list of blog posts in the category;
  • list of tags;
  • list of posts which have a tag;
  • blog post and all its properties,
  • and other (see module configuration).



JSON DL

JSON-LD is a way to transfer linked data (Linked Data, LD) using the JSON text format (JavaScript Object Notation).  Pages with JSON-LD markup facilitate the structuring of data by machines and the recognition of concepts, which is important for you in the context of search engine promotion. 

The JSON DL acts behind the scenes too. The support of the markup starts as of Blog version 2.7.0.

It is only one field value that you set yourself herein for JSON DL - Organisation (see Extension Settings).



...

Known Issues


Section
  1. Changing the Route To Blog option is not creating correct URL redirects. Currently the behavior of the extensions is the following:
  • Change "Route to Blog" in the extension config (e.g. blog -> blog_new);
  • Go to the old URL;
  • 404 page.



Uninstalling Magento 2 Blog


Section


Column
width50%

Manual Removal

Panel

1. Disable the module by executing the following commands:

No Format
php bin/magento module:disable Aheadworks_Blog
php bin/magento setup:upgrade



Panel

2. Remove the extension files from the following folder:

No Format
app/code/Aheadworks/Blog




Column
width50%

Automatic Removal (via Composer)

Panel

1. Disable the module by executing the following commands:

No Format
php bin/magento module:uninstall Aheadworks_Blog

Please note: the uninstall script works correctly only if the module was installed via Composer

Info

Note for a developer:

To use the uninstall script in a standard workflow, see Magento\Setup\Console\Command\ModuleUninstallCommand::validate(). For correct operation the function should return an empty array. You can simply comment out the lines 319-338.





Product Page

Need Customization?

Image Modified

You can always find the latest version of the software, full documentation, demos, screenshots, and reviews on http://aheadworks.com
License agreement: https://aheadworks.com/end-user-license-agreement
Contact Us: https://aheadworks.com/contact
Copyright © 2021 Aheadworks Co. http://www.aheadworks.com

...