### [织梦runphp=yes标签中怎么调用其他field值](https://www.prosaas.cn/article/3003) **Published:** 2020-01-07T01:46:27 **Author:** 5201314 **Excerpt:** 织梦runphp=yes标签中怎么调用其他field值?织梦runphp=yes标签中调用其他field值的方… **![](//zhiqipro.oss-cn-beijing.aliyuncs.com/2023/12/20231212121421646.jpg)** **织梦runphp=yes标签中怎么调用其他field值?** 织梦runphp=yes标签中调用其他field值的方法 推荐学习:织梦cms 织梦的标签里可以通过runphp=yes的方式来执行php代码,但有些时候我们需要在一个标签的runphp=yes中调用其他的field值来作为条件,那么该如何做呢? 上网搜索了下,以下办法可以实现: 用全局变量来解决 {dede:php}$GLOBALS\['xxoo'\]=$refObj->Fields\['fieldname'\]{/dede:php} {dede:field.xxxx runphp="yes"}@me="test".@me."-test".$GLOBALS\['xxoo'\];{/dede:field.xxxx} 即,先开一个PHP的标签,把想赋的值替换给global变量。然后在另外的运行中将field值赋值给他。 以上就是织梦runphp=yes标签中怎么调用其他field值的详细内容,更多请关注知企PROSAAS其它相关文章! **Categories:** DEDECMS ---