posted time Created time: 2015-07-10 posted time Last updated time:

Tags of the Page Component

The Tags of the Pages Component is used on blog article and main content pages to show the keyword tags set to the page.

Appearance and usage of the Tags of the Page Component

The Tag of the Page is used on the template of Default Page and Blog Article Page. It shows the keyword tags of the page, and the links to the tag pages.

Tags of the page

This component show the tags for main page and tags with the tag page.

By using the tag pages, we can link the relevant pages each other, and create topical link network. The tag page is marked as "noindex,follow", but the search engines analyse the pages, and link and content score is available.

Source code of the Tags of the Page Component

The Tags of the Page Component consists of Html code, server side program, Style Sheet, and image resources.

Html code

The Html code of the Tags of the Page Component is below.

The "@cms_tag_page" variable is the list of tags, and it is made in the server side program.

Server side program

The server side program of the Tags of the Page Component is below.

The main goal of server side program is to create the "@cms_tag_page" variable by following operations.

Get tags of current page

At first, query the database to get tags of the current page. The "cms_tag_page" table has information about the tags, and the "cms_tag_page" has information about relationship between tags and pages.

Set url of the tag's page

After getting the tags of the page, calculate the url of the tags, if the tag has own page.

Style Sheet

The Style Sheet of the Tags of the Page Component is below.

When you change the design of this component, please change Style Sheet and the Html code.


Go to Top