- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Workaround for Reordering HubDB Table Rows
Sep 18, 2019 9:50 AM - edited Sep 18, 2019 9:51 AM
At the moment it is not possible to reorder HubDB table rows to a custom order without having to export the table to a CSV/XLS file, making the order change in Excel and then re-import the table into HubSpot.
One potential workaround for this function is to create a new column in your HubDB table called, for example, 'Listing Order' and then sort your table rows by this column. Set the type for this column as 'Number' then edit the HTML where your HubL for loop is contained to include the following:
{% set table = hubdb_table_rows(module.select_table) %} {% for row in table|sort(False, False, 'listing_order') %} {# HTML #} {% endfor %}
By giving each row a number within your new 'Listing Order' table column your table will now display on each website page matching the number order that is set.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content