ZMObject
└─ZMToolboxTool
└─ZMToolboxMetaTags
public class ZMToolboxMetaTags
extends ZMToolboxTool
| Fields inherited from org.zenmagick.mvc.toolbox\ZMToolboxTool | |
|---|---|
| request_, toolbox_ | |
| Fields inherited from org.zenmagick.core\ZMObject | |
|---|---|
| properties_ | |
| Method Summary | |
|---|---|
| void | __construct(string delimiter) Create new instance. |
| protected void | |
| string | Returns/echo'es the description meta tag value value for the current request. |
| string | Returns/echo'es the keywords meta tag value for the current request. |
| string | getTitle() Returns/echo'es the page title. |
| protected void | Set up all required internal structures. |
| protected void | Load category info. |
| protected void | Load category crumbtrail. |
| protected void | Load product info. |
| protected void | Load top categories. |
| Methods inherited from org.zenmagick.mvc.toolbox\ZMToolboxTool | |
|---|---|
| __construct, getRequest, getToolbox, setRequest, setToolbox | |
| Methods inherited from org.zenmagick.core\ZMObject | |
|---|---|
| __construct, attachMethod, get, getAttachedMethods, getProperties, getPropertyNames, set, singleton | |
public void __construct(string delimiter)
Create new instance.
protected void formatCrumbtrail()
public string getDescription()
Returns/echo'es the description meta tag value value for the current request.
public string getKeywords()
Returns/echo'es the keywords meta tag value for the current request.
public string getTitle()
Returns/echo'es the page title.
protected void initMetaTags()
Set up all required internal structures.
protected void loadCategory()
Load category info.
protected void loadCrumbtrail()
Load category crumbtrail.
protected void loadProduct()
Load product info.
protected void loadTopCategories()
Load top categories.
Page meta tag data generator.
Based on zen-carts
../modules/meta_tags.php.In contrast to the zen-cart implementation, however, keywords are build entirely by looking at category and product id in the request.
All other pages will get served default values base on the store configuration. Only exception is the homepage where the keywords will include the top categories.