ZMObject
└─ZMToolboxTool
└─ZMToolboxMetaTags
public class ZMToolboxMetaTags
extends ZMToolboxTool
| Fields inherited from org.zenmagick.toolbox.ZMToolboxTool | |
|---|---|
| request_, toolbox_ | |
| Fields inherited from org.zenmagick.core.ZMObject | |
|---|---|
| properties_ | |
| Constructor Summary | |
|---|---|
ZMToolboxMetaTags(string delimiter) Create new instance. |
|
| Method Summary | |
|---|---|
| protected void | |
| string | getDescription(boolean echo) Returns/echo'es the description meta tag value value for the current request. |
| string | getKeywords(boolean echo) Returns/echo'es the keywords meta tag value for the current request. |
| string | getTitle(boolean echo) 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.toolbox.ZMToolboxTool | |
|---|---|
| getRequest, getToolbox, setRequest, setToolbox | |
| Methods inherited from org.zenmagick.core.ZMObject | |
|---|---|
| attachMethod, get, getAttachedMethods, getPropertyNames, set, singleton | |
public ZMToolboxMetaTags(string delimiter)
Create new instance.
protected void formatCrumbtrail()
public string getDescription(boolean echo)
Returns/echo'es the description meta tag value value for the current request.
true, the meta tag value will be echo'ed as well as returned.public string getKeywords(boolean echo)
Returns/echo'es the keywords meta tag value for the current request.
true, the meta tag value will be echo'ed as well as returned.public string getTitle(boolean echo)
Returns/echo'es the page title.
true, the title will be echo'ed as well as returned.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.