..."."/> ...".">

Home  >  Article  >  CMS Tutorial  >  How to use dedecms [field:fulltitle/] tag

How to use dedecms [field:fulltitle/] tag

藏色散人
藏色散人Original
2019-12-09 09:49:272450browse

How to use dedecms [field:fulltitle/] tag

How to use the dedecms [field:fulltitle/] tag?

In the process of making templates, we usually limit the length of article titles for the sake of beauty, such as:

Recommended learning: 梦Weavercms

{dede:arclist titlelen='30' row='10' }  
<li><a href="[field:arcurl/]">[field:title/]</a></li>  
{/dede:arclist}

The titlelen='30' in this tag section limits the length of the article title [field:title/] tag to no more than 30 bytes.

If our article title exceeds 30 bytes, readers will find it to be a very incomplete article title at first glance.

Dreamweaver provides a special tag [field:fulltitle/] which is not restricted by titlelen='30' when used and can call the full title.

Then we can write the above tag like this:

{dede:arclist titlelen=&#39;30&#39; row=&#39;10&#39; }  
<li ><a href="[field:arcurl/]" title="[field:fulltitle/]">[field:title/]</a></li>  
{/dede:arclist}

After calling this, the reader can see the complete title by placing the mouse on the title.

The above is the detailed content of How to use dedecms [field:fulltitle/] tag. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn