简体   繁体   中英

How to call Plugin within a plugin call in PyroCMS

I have a plugin called "query" and it is called via the format: {{ query:run query="SELECT * FROM table" }} I want to make repetitive call to the same plugin depending on the output of the previous call. The code is as follows:

{{ if { query:run query="SELECT left_bar form default_blog_meta where blog_id == {{query:run query='SELECT id from default_blog where slug = {variables:seg4}' }} "} }}
  {{ code }}
{{ else }}
  {{ code }}

It always goes to else condition as inner calls are not getting executed.

NO!

Lex is not a replacement for PHP. If you want to do that, put your query into your own plugin so you have a programming language to play with, instead of trying to make a tag representation system do it for you.

Please. Stop it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM