Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall
Recently a long time did not respond to the Shiyan Real Estate Network (www.0719ol.cn) carried out a toss, loaded with the latest dedecms5.7, ready to use a classified information model to do a place small real estate site. After about 6 hours of debugging, the necessary functional adjustment is basically completed. Because the classification information model is not as perfect as the article model, now I have to share some of the major problems and solutions that I have encountered during the construction of the station for reference.
DEDECMS Classification Information for keywords and description fields blank
dedecms5.7 This version of the release of classified information, seemingly no keywords and descriptions, this will lead to the last page missing these 2 content.
Solution:
1. In the background of the Model Management of new 2 fields, respectively, for keywords and descriptions, model field configuration (text mode) under the New keyword and Description section of the code is as follows:
The red highlight above is the custom field that you created when you were new (OK, as the system requires, can write casually, the first need to correspond), can modify the added here after the completion of the release of classified information will have to fill in the keyword and description, but the page call will be wrong, Because the default keywords and descriptions are called as follows:
Its fields are not the same as the ones we created, so we need to modify it as follows:
When you publish your message, the keyword and description will come out!
DEDECMS Classification Information Model the next article does not show
This is also a very common problem, you may habitually take the article model of the label to use, in fact, after the writing of the label need to modify a system file (path is/include/arc.archives.class)
Find inside
$next = (Is_array ($nextR)? "Where arc.id={$nextR [' ID ']}": ' Where 1>2 '); $pre = (Is_array ($preR)? "where arc.id={$preR [' ID ']}": ' Where 1&G T;2 '); $query = "Select Arc.id,arc.title,arc.shorttitle,arc.typeid,arc.ismake,arc.senddate,arc.arcrank,arc.money, Arc.filename,t.typedir,t.typename,t.namerule,t.namerule2,t.ispart,t.moresite,t.siteurl,t.sitepathfrom ' Dede_ Archives ' arc left join Dede_arctype t on Arc.typeid=t.id '; modified to $next = $pre = ';//Add support for standalone tables by KORUIIF ($this->ch annelunit->channelinfos[' IsSystem ']!=-1) {$next. = (Is_array ($nextR)? "Where arc.id={$nextR [' ID ']}": ' Where 1>2 '); $pre. = (Is_array ($preR)? "where arc.id={$preR [' ID ']}": ' Where 1& Gt;2 '); $query = "Select Arc.id,arc.title,arc.shorttitle,arc.typeid,arc.ismake,arc.senddate,arc.arcrank,arc.money, Arc.filename,t.typedir,t.typename,t.namerule,t.namerule2,t.ispart,t.moresite,t.siteurl,t.sitepathfrom ' Dede_ Archives ' arc left join Dede_arctype t on Arc.typeid=t.id ';} else{$next. = (Is_array ($nextR)? "Where arc.aid={$nextR [' ID ']}": ' Where 1>2 '); $pre. = (Is_array ($preR)? "where arc.aid={$preR [' ID ']}": ' Where 1>2 '); $query = "Select Arc.aid as Id,arc.title,arc.typeid,arc.senddate,arc.arcrank,t.typedir,t.typename, T.namerule,t.namerule2,t.ispart,t.moresite,t.siteurl,t.sitepathfrom '. $this->channelunit->channelinfos[' AddTable ']. ' Arc left join Dede_arctype t on Arc.typeid=t.id ';
This sort of information on the next article can be normal display!
The classification information model is not displayed on the list page and the first page call field
This is actually better than modified, I directly send a piece of writing code, we refer to:
{DEDE:ARCLISTSG typeid= ' 1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18 ' row= ' titlelen= ' addfields= ' Tel ' addfields= ' Linkman,tel ' imgwidth= ' imgheight= ' 114 ' channelid= '-8 '}
[field:image/]
[Field:title/][field:pubdate function= "Getdatetimemk (@me)"/]
Views: [field:click/] | Contact person: [field:linkman/] | Tel: [field:tel/]
Property details: [Field:body function=cn_substr (Html2text (@me), 200)/] ... [View full text]
{/DEDE:ARCLISTSG}
To put it simply:
Addfields= ' Linkman,tel ' is to control the fields that need to be displayed, such as the contacts and phone calls I need.
Imgwidth= ' imgheight= ' 114 ' This is to control the size of the thumbnail of the output.
[Field:body function=cn_substr (Html2text (@me), 200)/] This is my online search, an invincible call summary of the label, literally should be truncated content
Finally all debugging good results, we can see in http://www.0719ol.cn/, finally said, if you need to use the locomotive acquisition, and then added a custom field, you need to see the module content release parameters inside the Dede_ Addonfields This form has been added to the corresponding format of its own custom fields, otherwise the collector will not be able to collect custom fields.
Article published in http://www.huangao.info/archives/333, reproduced please be sure to indicate the source.