Kuibu, jeecms tags commonly used in------interface of poly-stream

Source: Internet
Author: User


* Jeecms First Impressions

First Contact Jeecms, suddenly the mind on the emergence of a word "20 Yuan Jian station, lidengkequ", originally this is true ...


* Jeecms's interface Common tags

Temporarily ignore the environment to build, column configuration and so on, first to record the commonly used labels.


1. Page contains tags

Functions similar to IFRAME

In this case, we can use [#include]. /include/header.html "/] this tag to achieve the effect to express, modify the header.html, all the content of the page will change.


2, Column Channel label

Here should first explain the following columns: In the JEECMS contains, columns and content, columns include sub-columns, a single page and so on, and here the column is like the meaning of the menu, the corresponding sub-column is the corresponding sub-menu, a single page is no lower layer of a single interface, and the content as the name implies in the corresponding column.



In the use of the most commonly used is the column channel, the commonly used wording:


<em>[@cms_channel id= ' "   <a href=" ${tag_bean.url} ">${tag_bean.name}</a>[/@cms_channel] </em>

Tag_bean can then be followed by the corresponding channel under the configuration of the Content model field, where the ID is

So the first one is changed to [@cms_channel path= ' own '], and then the other content is unchanged.


3, the corresponding sub-column label

As shown above, the corresponding column may also have a lot of sub-columns, of course, the sub-column will not show all the need to restrict a part, so first to write the case without restrictions:


<em>[@cms_channel_list parentid= '][list tag_list as C]          <li><a href= "${c.url}" >${c.title!} </a></li>[/#list][/@cms_channel_list]</em>

Of course, we may only need to show three or four of them, so we can give the corresponding restrictions

[@cms_channel_list Parentid=tag_bean.id] [#list Tag_list as C]       [#if c_index<3]          <li><a href= "${c.url}" >${c.title!} </a></li>      [/#if][/#list][/@cms_channel_list]

It is important to note that the C_index is calculated from 0, and in the second example, it works with the [@cms_channel] label.


4. Content List Label

The table of contents is also commonly used as a list, as we often add new content under one column. Like this:


We usually use the following code to display


<span style= "FONT-SIZE:14PX;" ><em>[@cms_content_list count= ' 7 ' orderby= ' 4 ' titlen= ' + '       channelid= ' Bayi ' channeloption= ' 1 '] [#list tag_ List as a]       <li><span>${a.shorttitle!} </span><a href= "${a.url}" >[@text_cut        s=a.title len=titlen append= ' ... '/]</a></li> [/# list][/@cms_content_list]</em></span>


Here you need to pay attention to the meaning of the corresponding parameters: Count is the number of columns we need to display the list, the order is the way to fetch data from the content, by time or by number size, etc., Titlen write the whole words I think should be titlelength is the length of the title displayed, and the back of [text_cut s=a.title len=titlen appen= ' ... '], in the use of this length, and Channelid is the specific section of the content.


5, the corresponding content label

The content and columns are very similar, and from the list's monetization we can see that we can easily write the corresponding method, but there is another way we need to focus on


<em>${content.title}, ${txt!}, ${channel.title}</em>

We usually enter a page when there must be a corresponding channel or content, we can directly in this way to take value, convenient, of course, this interface will be used as a template for a number of different columns or content can not be applied, in addition, we need to pay attention to "!" ", the Content field may not have a non-empty limit, that when the content is empty, we also display on the interface when the error occurs, this time we can pass"! "To prevent errors due to empty


6. Home page and corresponding path label

Based on SEO considerations, the breadcrumb menu is very necessary, and here it is easy to implement



Let's take a look at the corresponding implementation tag.


<span style= "FONT-SIZE:14PX;" ><em> your current location: <a href= "${site.url!}" > Home </a> ><a href= "${channel.url}" >${channel.title}</a>><a href= "${content.url}" > ${content.title}</a></em></span>

This is a direct extraction from the content, there is a multi-level menu case, note:${channel.nodelist[0].id} is used to mark the ID of the previous menu.


7. Thematic labels

There are usually recommendations and some random content in the Web page display, and I can now do this in a way that is "recommended" and "appropriate topic"

Select the appropriate topicid= ' 1 ' or recommend= ' 1 ' to differentiate



Kuibu, jeecms tags commonly used in------interface of poly-stream

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.