Deprecated HubL Supported Functions

Last updated:

The following is a list of HubL supported functions that are deprecated. While these functions still operate as intended, newer functions have been created to replace them that are more streamlined and optimized. These new functions are indicated below. This page is for historical reference. 

For all new and future projects we encourage using our current HubL functions instead of deprecated ones.

blog_post_by_id

This function has been replaced by content_by_id().

{% set my_post = blog_post_by_id(4715624297) %}
<ul>
    <li>
        <a href="{{ my_post.absolute_url }}">{{my_post.title}}</a>
    </li>
</ul>

blog_topics

This function has been renamed to blog_tags().

{{ blog_topics('default', 250) }}

{% set my_tags = blog_topics('default', 250) %}
<ul>
{% for item in my_tags %}
  <li><a href="{{ blog_tag_url(group.id, item.slug) }}">{{ item }}</a></li>
{% endfor %}
</ul>

blog_recent_topic_posts

This function has been renamed to blog_recent_tag_posts().

HubL
{{ blog_recent_topic_posts('default', 'culture', 5) }}

get_public_template_url

This function has been replaced by get_asset_url().

{{ get_public_template_url("custom/page/Designers_2015/designer-doc-2105.js") }} 

include_css

This function has been replaced by require_css().

{{ include_css('custom/page/Designers_2015/designers-doc-2015.css')  }} 

include_javascript

This function has been replaced by require_js().

{{ include_javascript('custom/page/Designers_2015/designer-doc-2105.js') }} 

page_by_id

This function has been replaced by content_by_id().

{% set my_page = page_by_id(4715624297) %}
<ul>
    <li>
        <a href="{{ my_page.absolute_url }}">{{ my_page.title }}</a>
    </li>
</ul>