How to modify the content of custom fields on the mobile Homepage

Source: Internet
Author: User

The mobile system provides a powerful custom list tag ([articlelist (parameter list)] list content [/articlelist]), allowing us to design our own pages more freely and individually.

At the same time, the custom segments provided provide us with powerful expansion space.

Today, a friend asked me that the custom field cannot be parsed when I call the custom list tag on the homepage. The field name is displayed on the page.

In the past, I seldom used custom fields, and I used a custom list on the homepage to call custom fields.

Test it temporarily. The modification is made so that it can be parsed on the home page. The following describes the modification method:

ToArticleModule as an example, modifyInclude/powereasy. Article. aspFile:
Search first:

CodeFragment
Private function getcustomfromlabel (strtemp, strlist)

Then look:

Code snippet

Row 2,524th,
Set rsfield = conn. Execute ("select fieldname, labelname from pe_field where channelid =-1 or channelid =" & channelid &"")
Changed:

Code snippet

Set rsfield = conn. Execute ("select fieldname, labelname from pe_field where channelid =-1 or channelid = "&
IChannelid &"")
What have you seen? In fact, a field I is added. Because the channelid is resolved to the current channel ID when the tag is parsed, And the ichannelid is resolved to the channel Id set in the tag.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.