歡迎光臨, 訪客. 請先 登入註冊一個帳號.
十一月 23, 2024, 09:44:39 上午
19595 文章 在 3865 主題 由 4579 會員
最新註冊會員: aa123aa1
LifeType 中文開發論壇  |  支援  |  使用與操作  |  How to use CustomField « 上篇主題 下篇主題 »
頁: [1]
作者 主題: How to use CustomField  (閱讀 9957 次)
HonestQiao
新手見習
*
文章: 1


檢視個人資料
« 於: 五月 10, 2005, 02:09:11 下午 »

/plog/admin.php?op=newCustomField

Use the url , you can add a new CustomField.

But i don't know where use it????

But it show only in posting.php!
other place???

Menu
recently
calendar
Categories

can show in Index.php.

if Custom Field???
已記錄
Momo
新手見習
*
文章: 5


檢視個人資料
« 回覆文章 #1 於: 五月 10, 2005, 08:26:33 下午 »

go to http://forums.lifetype.net/ and search  "CustomField"  
you will find more infomation
已記錄
markwu
系統管理員
超級會員
*****
文章: 3928


Mark Wu


檢視個人資料 個人網站
« 回覆文章 #2 於: 五月 11, 2005, 10:12:46 上午 »

引用自: HonestQiao
/plog/admin.php?op=newCustomField

Use the url , you can add a new CustomField.

But i don't know where use it????

But it show only in posting.php!
other place???

Menu
recently
calendar
Categories

can show in Index.php.

if Custom Field???


Okay, I think here are some conpet need to clarify first:

1, CustomField only available in aritcle object. That means in current version, only aritlcecan have the custom field function.

2. U can use custom filed in any where if the template page (For example, post.template) has article object. U can use the following script to get the custom filed information:

{$post->hasField("field_name")}==> To check the custome field exist or not
{$post->getFieldDescription("field_name")} ==> Get the description of custom field
{$post->getField("field_name")} ==> Get the value of custome field

We plan to add custom field to all object, like resource and link. But need time to work out.

** BTW, if you come from China, you can type Simplified Chinese. This forum use UTF-8, so, it should be okay to accept other languages here.

Mark
已記錄

頁: [1]
LifeType 中文開發論壇  |  支援  |  使用與操作  |  How to use CustomField « 上篇主題 下篇主題 »
    前往: