- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
HubDB - Filter results of a module snippet
SOLVEJan 24, 2020 5:21 AM
Hello,
Is it possible to filter results of a custom module if I added a snippet to a HTML/Hubl template for dynamic pages so I need to print specific rows on the spefic pages?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
Accepted Solutions
Jan 24, 2020 3:38 PM - edited Jan 24, 2020 3:38 PM
Hey @rainism
This sounds interesting, could you provide a little more detail? Maybe provide a scenario or business case?
But to guess:
With dynamic pages you can use an if statement to query the route level like this:
{% if dynamic_page_route_level == 0 %}
Then iterate through your rows:
{% set rows = hubdb_table_rows(XXXXXX) %} {% for row in rows %}
{{ printData }:
To get more specific you could add another column to your Tables and query against that too.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content