Now, we have a dynamic content page using Hubdb and we would like the same custom feed module to display posts from a different topic depending on the url.
Question is: is it possible to change the topic dinamically calling a Hubdb row instead in the following statement? (something like '{{ row.topic }}' instead of 'sentencia-incapacidad-invalidez-absoluta'
{% set topic_posts = blog_recent_topic_posts('all', 'sentencia-incapacidad-invalidez-absoluta', 6) %}
{% set topic_posts = blog_recent_topic_posts('all', '{{ row.topic }}', 6) %}
That way, each url set through Hubdb would have a different feed topic indicated in that row.
I didn't manage to get it to work so I am not sure if this is possible.
Using Hubdb to set the topic in a custom blog feed Hubl module
SOLVE
So I figured out the issue, when trying to call the hubdb row indicated value in the statement, the '' marks were causing it to fail working. It also failed if adding any {{ }} which is, in the end, unnecessary when inside another {{ }} . So I ended up using the following statement:
{% set topic_posts = blog_recent_topic_posts('all', dynamic_page_hubdb_row.tag, 6) %}
Using Hubdb to set the topic in a custom blog feed Hubl module
SOLVE
So I figured out the issue, when trying to call the hubdb row indicated value in the statement, the '' marks were causing it to fail working. It also failed if adding any {{ }} which is, in the end, unnecessary when inside another {{ }} . So I ended up using the following statement:
{% set topic_posts = blog_recent_topic_posts('all', dynamic_page_hubdb_row.tag, 6) %}