[vQmod] Hide Information & Category Pages + On/Off Site Map
Posted: Sun Sep 02, 2012 12:31 am
This vQmod essentially allows certain pages to be hidden from the standard navigation (modules & footer etc.) but also offers the choice to list these pages in the Site Map (both on site and the XML feed) or not.
Some may want to hide specified pages from standard locations such as navigation modules and the footer but still have these pages visible in the Site Map to maximise SEO efforts and to encourage indexing by the search engines.
This vQmod performs two main functions:
1) Adds the option to remove visibility of Information and Category Pages from your site (links are removed but the page is still accessible via the URL).
2) Adds the option to remove visibility of Information and Category Pages from your site (Category Module, Information Module and Footer Links) but still leave these pages visible in the Site Map (both on site and XML).
Note: As of OpenCart v1.5.2, the option to remove Information Pages with a negative sort order is no longer in the core. This module includes version tolerance and should work for all versions from v1.5.1.3 to 1.5.4.1. Please report any errors in this thread.
How This Works
To remove from site completely: Set sort order to negative figure (-1).
To remove from site but still retain visibility in Site Map: Set sort order to be greater than 1000.
Normal sort order will still function as is (for sort orders assigned between 0 to 1000).
This method also ensures that the links/pages you would like visible in the Site Map remain at the bottom (important pages/links first).
Tested to work on OpenCart versions from 1.5.1.3 through to v.1.5.4.1. However, this mod may work on older versions. Please post if you have success with older versions to help others.
Note: If you have a store with more than 1000 categories or information pages, you will need to adjust all instances of 1000 to the quantity you require in the vQmod accordingly.
Some may want to hide specified pages from standard locations such as navigation modules and the footer but still have these pages visible in the Site Map to maximise SEO efforts and to encourage indexing by the search engines.
This vQmod performs two main functions:
1) Adds the option to remove visibility of Information and Category Pages from your site (links are removed but the page is still accessible via the URL).
2) Adds the option to remove visibility of Information and Category Pages from your site (Category Module, Information Module and Footer Links) but still leave these pages visible in the Site Map (both on site and XML).
Note: As of OpenCart v1.5.2, the option to remove Information Pages with a negative sort order is no longer in the core. This module includes version tolerance and should work for all versions from v1.5.1.3 to 1.5.4.1. Please report any errors in this thread.
How This Works
To remove from site completely: Set sort order to negative figure (-1).
To remove from site but still retain visibility in Site Map: Set sort order to be greater than 1000.
Normal sort order will still function as is (for sort orders assigned between 0 to 1000).
This method also ensures that the links/pages you would like visible in the Site Map remain at the bottom (important pages/links first).
Tested to work on OpenCart versions from 1.5.1.3 through to v.1.5.4.1. However, this mod may work on older versions. Please post if you have success with older versions to help others.
Note: If you have a store with more than 1000 categories or information pages, you will need to adjust all instances of 1000 to the quantity you require in the vQmod accordingly.