Posts by Topic in HubDB

{% set tableId = module.hubdb_table %} {% set my_tag = module.select_category %} {% set page_size = '5' %} {% set myfilter = "&tag__in="+my_tag|urlencode+'&limit='+page_size%} {% set table = hubdb_table_rows(tableId, myfilter+"&date__gt="~local_dt|unixtimestamp)|sort(False, False, 'date') %} {% if table == [] %}

Sorry, no listings found for that Search. Try changing your fiter and search again.

{% else %}

{{ module.select_category }}

    {% for item in table %} {% if item.date %} {% if (item['date']|datetimeformat('%Y-%m-%d')) >= (local_dt|datetimeformat('%Y-%m-%d')) %}
  • {{ item.date|datetimeformat('%b') }}
    {{ item.date|datetimeformat('%e') }}
    {% if item.address %} {{ item.address.name }} {% endif %}
  • {% endif %} {% endif %} {% endfor %}
{% endif %}

Comments

Popular posts from this blog

Numbered Pagination in HubDB

Dynamic Pages Number Pagination in HubDB (Listing)

Tabber in Tabber