hublify functions

The "hublify" twig object

Hublify automatically provides a global twig-variable "hublify" through which you can easily access your data within hublify.

For simplicity of writing, we want to refer to it as the "hublify object".

hublify functions

The hublify object provides following functions

  • hublify.appUrl(...) - Returns the base url for hublify (backend) app.
  • hublify.appUrlGotoModel(...) - Returns a model-related absolute url,  deep-linking into the Hublify-app.
  • hublify.appUrlGotoRecord(...) - Returns a model-related absolute url, deep-linking into the Hublify-app.
  • hublify.asset(...) - Querying the MAM. Getting asset-infos.
  • hublify.assetLinkData(...) - MAM
  • hublify.assetResourceUrl(...) - Returns the url of a resource.
  • hublify.category(...) - For getting PRODUCT-Groups.
  • hublify.content(...) - For getting CDB-records.
  • hublify.contentLinkData(...) - Gets a link-data-object pointing to a given content-record.
  • hublify.contentLinkUrl(...) - Gets an absolute URL for a given content. Pretty-URL / -aliasing and page-configuration of CDB is automatically regarded.
  • hublify.contentCategory(...) - For getting CDB-categories of a CDB-catalog (=category-tree).
  • hublify.contentCategoryLinkData(...) - Gets a link-data-object pointing to a given category.
  • hublify.contentCategoryLinkUrl(...)
  • hublify.contentCategoryNext(...) - Gets the next category from CDB-catalog for a given category.
  • hublify.contentCategoryPrevious(...) - Gets the previous category from CDB-catalog for a given category.
  • hublify.dataset(...) - Your live access data all data in your hublify-instance.
  • hublify.datareport(...) - This is basically doing very fancy and highly aggregating SQL SELECTs on your hublify datasets. Magical !
  • hublify.dump(...) - For dumping any kind of twig variables. The equivalent to PHP's print_r(...) / var_dump(...) .
  • hublify.log(...) - Writing a log-entry to the systems action-log.
  • hublify.menu(...) - For getting menue(-items)
  • hublify.pageLinkData(...) - Gets a link-data-object pointing to a HCMS page.
  • hublify.pageLinkUrl(...) - Gets an absolute URL for a given HCMS page. Pretty-URL / -aliasing and page-configuration of CDB is automatically regarded.
  • hublify.product(...) - For getting product-records.
  • hublify.productLinkData(...) - Gets a link-data-object pointing to a given product-record.
  • hublify.productLinkUrl(...) - Gets an absolute URL for a given product. Pretty-URL / -aliasing and page-configuration of CDB is automatically regarded.
  • hublify.url(...) - Returns the (base-) url of the current site.