网络营销电子商务研究中心  
How to buy the best prescription safety glasses in Canada? Let's study!
Go Back   网络营销电子商务研究中心 > 网站建设 > PHPCMS
User Name
Password
 
FAQ Members List Calendar Cheap Glasses

Reply
 
Thread Tools Display Modes
  #1   IP: 49.87.3.169
Old 2015-11-25, 08:48 AM
Hahnaman Hahnaman is offline
初级会员
 
Join Date: 2005-03-20
Posts: 1
Hahnaman 现在声名狼藉
Default phpcms v9调用自定义字段显示的问题

今天在phpcms v9的模型管理里面的文章模型里面增加了一个字段“videourl”,但是在调用的时候发现调用的值确实“空”的。

找了半天才发现,调用自定义字段需要使用“moreinfo”属性才行:

{pc:content action="lists" catid="2" num="1" order="id DESC" page="$page" moreinfo="1"}
{loop $data $r}
<embed src="{$r[videourl]}" allowfullscreen="true" quality="high" width="347" height="298" align="middle" allowscriptaccess="always" type="application/x-shockwave-flash"></embed>
{/loop}
{/pc}

moreinfo的“1”的时候显示,为“0”的时候不显示。

见moreinfo="1"文字部分。这样重新生成页面就看到内容读出来了。
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHPCMS v9实现二级下拉菜单的实例代码 Haddock PHPCMS 0 2015-11-25 08:46 AM
Phpcms V9网站从本地上传到服务器需要修改的地方小结 Jadyn PHPCMS 0 2015-02-03 09:14 PM
phpcms v9 变更域名时应做的一些操作 Jacksboro PHPCMS 0 2015-02-03 09:13 PM
Phpcms 被酷6网收购 创始任人联盟事业部负责人 yahoo 建站交流 0 2008-01-24 08:46 PM
Phpcms免费开源将成CMS系统未来趋势 sunshine 建站交流 1 2007-08-08 01:20 AM

Prescription-glasses.com offers prescription glasses online at discount prices.
All times are GMT +8. The time now is 11:05 AM.


Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.