Error:"module" is disabled in this context

zeshanshani
Member

I've created a global module and when I try to use it inside another module like this:

{% module "module_1533298233409297" module_id="3476458" label="EACD2018 - Social" %}

it always gives me the following error: 

 

Error:"module" is disabled in this context

 

I've searched a lot even tried to use the "export_to_template_context=True" parameter, but no luck. 

 

Thanks in advance for your help. 

7 Replies 7
lgerodiaz
Contributor

Interesting. I'm thinking that we couldn't really embed global modules as snippets for other modules as of this moment.

rcarey
Member

This is a pretty large bummer.  It would definitely allow those of us who are designing more modern templates to design more accessible and editable code in complext layouts.

 

+1 vote to allow for nested modules

rcarey
Member

I would also add that a similar error occurs when trying to include partial templates in a global module.   Weird since this seems like EXACTLY the kind of thing you would want to do with a partial template.

0 Upvotes
fabianj
Contributor

I have the same issue! Just that it seems that I cannot even include local modules into other modules... G.

Very hard to build a modular system with current COS functionality... I have many other issues too btw.

0 Upvotes
fabianj
Contributor

Still not possible... so what is this moduel snippet thingy for anyway?!

0 Upvotes
Mohesh_Borah
Participant

Really, still this is not possible I guess.
As I am also facing the same issue.

0 Upvotes
dennisedson
Community Manager

Hey @Mohesh_Borah !  Actually, hello everyone.  I am curious to know how big of a deal this is now that we have partials and blocks available in local development.

 

Thanks,

Dennis


We are excited to announce that the Community will be launching a weekly newsletter on November 2, 2020!
Sign up today!
0 Upvotes