LifeType 中文開發論壇

支援 => 使用與操作 => 主題作者是: HonestQiao 於 五月 10, 2005, 02:09:11 下午



主題: How to use CustomField
作者: HonestQiao五月 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???


主題: How to use CustomField
作者: Momo五月 10, 2005, 08:26:33 下午
go to http://forums.lifetype.net/ and search  "CustomField"  
you will find more infomation


主題: Re: How to use CustomField
作者: markwu五月 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