{% set SAFE_BLOG = 232829990938 %}
{% set SAFE_LIMIT = module.number_of_posts %}
{% set SAFE_TAG = module.blog_filer_options.tag_field.slug %}
{% set POST_TYPE = module.blog_filer_options.select_post_type %}
{% set posts = [] %}
{% if POST_TYPE == ‘blog_recent_posts’ %}
{% set posts = blog_recent_posts(SAFE_BLOG, SAFE_LIMIT) %}
{% elif POST_TYPE == “blog_popular_posts” %}
{% set posts = blog_popular_posts(SAFE_BLOG, SAFE_LIMIT, ”) %}
{% elif POST_TYPE == “filter_by_tags” %}
{% set posts = blog_recent_tag_posts(SAFE_BLOG, SAFE_TAG, SAFE_LIMIT) %}
{% endif %}
in my module whenever i use hardcoded blog id like
{% set SAFE_BLOG = 232829990938 %} this my code works perfect
but there is a dropdown field in my module where to select the blog.
so I used this
{% set SAFE_BLOG = module.blog_filer_options.select_blog %}
and getting this error ( DisabledException: ‘module’ is disabled in this context )
can anyone tell me.
{% set SAFE_BLOG = 232829990938 %} why this working
{% set SAFE_BLOG = module.blog_filer_options.select_blog %} why not this one. even both are numaric data.