Get dedecms full article title to display ALT attribute

Source: Internet
Author: User
Keywords Article title Dedecms

Today, when using DEDECMS, notice a little trick to add a complete title to the picture and the title of the article, and in general we use the [field:title/] title, and we need to go through {dede:arclist row= ' 1 ' titlelen= ' 44 '} Titlelen property to define the number of characters to display the caption, but when the ALT attribute is displayed, it is not fully displayed, so let me take a look at the following code:

{dede:arclist row= ' 1 ' titlelen= ' orderby= ' pubdate ' idlist= ' ' channelid= ' 1 ' type= '-image.commend '}
<p>
<a href= ' [field:arcurl/] ' target= ' _blank ' ><img src= ' [field:pichttp://www.aliyun.com/zixun/aggregation/ 11696.html ">name/] ' border= ' 0 ' alt= ' [field:fulltitle/] ' ></a>
<a href= ' [field:arcurl/] ' target= ' _blank ' title= ' [field:fulltitle/] ' >[field:title/]</a>
</p>
{/dede:arclist}

Here we use the properties of [field:fulltitle/].

To regenerate the page, the alt attribute in the picture and article links is finally showing the full title!

Related Article

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.