Empire CMS article content tags keyword setting calling method and tags static method

888u

Last update at :2024-03-18,Edit by888u

The article mainly introduces the tags keyword setting and calling method of the imperial cms article content and the static implementation method of tags. Friends in need can refer to it.

To be honest, it is really difficult to find some functions in Empire CMS, such as the tag tag call in Empire CMS. It should be noted that the keywords and tags of Empire CMS articles are not the same thing. The keyword tag is used to set the keywords of the article and is used to explain the main idea of ​​the article to search engines, while the tags are used to link to the article. Yes, for SEOers, using tags can play a role in aggregation, increase website pages, and increase weight. So how does Empire CMS call the current article content tags and make the tags static?

How to set the Empire CMS tags:

1. Log in to the backend, click the [Column] menu - [TAGS Management] - [Set TAGS Parameters] submenu to enter the setting TAGS parameter interface;

2. Enter the interface for setting TAGS parameters. Enable TAGS in the front desk: Set whether the /e/tags/ page in the front desk is enabled or not.

The template used by default: select the list template of tags. It is recommended to choose the same list template as the article;

Display information per page: Set the default number of information displayed per page when no line is specified.

How to call Empire CMS tags:

1. Use the custom calling tool that comes with Empire CMS to call:

[showtags]Category ID, display quantity, display quantity per line, display sorting, display only recommendations, recommended TAGS attributes, display separator, whether to display the number of information, link additional parameters, link usage variables[/showtags]

For details, please refer to "Template=="Automatically generate tags===="Calling tags tag template"

2. Empire cms uses smart tags to call the current article content tag (note: this code has not been tested, please test it yourself)

The empire cms smart tag calls the current article content tag tag code as follows:

[e:loop={"SELECT*FROMseo_ecms_newsWHEREid="".$navinfor[id].""LIMIT0,30",1,24,0}] ".$t[$i].""; } } echo$tag; ?> [/e:loop]

3. Empire cms smart tag calling tags (this syntax is used to call all tags of [specified category] [specified condition])

[e:loop={"select * from [!db.pre!]enewstags order by num desc limit 10",0,24,0}]
  • [/e:loop]

    Or you can display it based on tagid

    [e:loop={"select * from [!db.pre!]enewstags order by tagid",0,24,0}]
  • [/e:loop]

    How to automatically synchronize and update the keywords and TAGS in the background of Empire CMS:

    When adding keywords to an article, the entered keywords are automatically copied to the TAGS text box. The function is simple but very practical. The modification method is as follows:

    Empire CMS backend–>System settings–>Management data table–>News system data table (phome_ecms_news) [Management field] –>special.field [Modify system field]

    Replace this sentence in "Input form replaces html code":

    Change it to the following sentence:

    In this way, when publishing an article in the background of Empire CMS, the keywords we set will be automatically synchronized to the tags tag. Although the modification is small, it is practical enough. It is not a good solution for some friends who work hard to build websites. Woolen cloth!

    Pseudo-static settings on the empire cms tags information list page:

    Set pseudo-static under PHP virtual host:

    1. Confirm that the space supports pseudo-static. Some space providers need to manually enable the pseudo-static function.

    2. Backstage – System – System Settings – Pseudo-static parameter settings, set the pseudo-static rules.

    3. Create a new .htaccess file and place it in the root directory of the website.

    Write the following rules into the .htaccess file: (Note that the rules in the rules file must be consistent with those set in the background)

    # Turn on RewriteEngine mode RewriteEngineOn #Information content page: showinfo-[!--classid--]-[!--id--]-[!--page--].html RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^showinfo-(.+?)-(.+?)-(.+?)\.html$ /e/action/ShowInfo.php?classid=$1&id=$2&page=$3 #Information list: listinfo-[!--classid--]-[!--page--].html RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^listinfo-(.+?)-(.+?)\.html$ /e/action/ListInfo/index.php?classid=$1&page=$2 #Title classification list page: infotype-[!--ttid--]-[!--page--].html RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^infotype-(.+?)-(.+?)\.html$ /e/action/InfoType/index.php?ttid=$1&page=$2 #TAGS information list page: tags-[!--tagname--]-[!--page--].html RewriteCond %{QUERY_STRING} ^(.*)$ RewriteRule ^tags-(.+?)-(.+?)\.html$ /e/tags/index.php?tagname=$1&page=$2

    The above is the calling method of tags keyword setting and static implementation method of tags in the imperial cms article content. I found several articles and finally found one with pictures. I hope it can help everyone.

    Recommended site search: virtual host, expired domain name query, virtual host ranking, proxy ip, vps server, Chinese domain name registration, registered domain name, com domain name, large bandwidth server rental, cn domain name price,

    Empire CMS article content tags keyword setting calling method and tags static method

    All copyrights belong to 888u unless special state
    取消
    微信二维码
    微信二维码
    支付宝二维码