Dedecms knits dream article to run a few when systematic SEO function optimizes little skill
Dedecms knits a dream to be adjusted in the use function of article management system partly, use skill, optimize to SEO, the function is patulous very effective fruit, have use the friend that weaves a dream, can look, oneself used system of the Dedecms that weave a dream in Suzhou Seo, the result is right still. Also be collect the little skill that the function that announces on a few nets adjusts and everybody are shared.
1, in {dede:aRtlist}{/dede:aThe Time indication format in Rtlist} by 0000 - 00 - 00 instead are other format
[Field:pUbdate Function=’strftime(”%m-%d” , @me)’/] format 00-00
[Field:pUbdate Function=’strftime(”%m/%d” , @me)’/] format 00/00
[Field:pUbdate Function=’strftime(”%y/%m/%d” , @me)’/] 0000/00/00
2, add on column name edge (article several) function
Method: Open \include\inc_arcpart_view.PHP to obtain in “// the link finds kind of end below information “If(! Is_array($row)) Return “”;
In on two add above its:
$countarc = $this->dsql->GetOne("Select Count(ID) As Dd From #@__archives Where Typeid=’$typeid’");
$row[’totalarc’]=$countarc[’dd’];
Be in next of stencil [Field:tAdd after Ypename /] ([Field:tOtalarc /] ) is called can!
3, the modification method with relevant more relevant article
Relevant meaning is: The key word of the key word of the article and other article is same or the key word of the article is in other essay examination questions.
Can see in Inc_fun_SpGetArcList.PHP
$orwhere. = ” And CONCAT(arc.title, arc.keyWords) REGEXP ‘$rstr’ “;
Yuan Tie Mylove2046 writes:
“Revise a method correctly of relevant article “
No matter be V3 edition or V4 edition, “Relevant article ” is not relevant, modification method is as follows: Includeinc_archives_view.PHP
In the 330th around findIf($tagname==”Likeart”) $keywords = “”; //str_replace(” ” , “, “, trim($this->Fields[’keyWords’]));
InsteadIf($tagname==”Likeart”) $keywords = Str_replace(” ” , “, “, trim($this->Fields[’keyWords’]));
In 335 around findElse If($tagname==”Likeart”) $orderby = “near”;
InsteadElse If($tagname==”Likeart”) $orderby = “id”;
Alter actually code and systematic configuration, other configures the systematic variable inside, article of use keyword conjunction:
If($tagname==”Likeart”) $keywords = “”; //str_replace(” ” , “, “, trim($this->Fields[’keyWords’]));
InsteadIf($tagname==”Likeart”) $keywords = Str_replace(” ” , “, “, trim($this->Fields[’keyWor
