Ways to call thumbnails on a Dream List page and content page

Source: Internet
Author: User

Many friends know how to invoke thumbnails on the Dedecms list page, but don't know how to invoke the thumbnail of the document on the article content page.
In fact, it is very simple, just need to call the thumbnail in the Content page template place to insert the following tag code can be.



You can also make an extension that is displayed when the document has thumbnails, and no thumbnails are displayed. The code is as follows:

{dede:field.litpic runphp= "yes"}
if (@me! = ")
{@me = "{/dede:field.litpic}

Go with the template calling code that doesn't appear without thumbnails on the list page is also given to everyone. The code is as follows:

Add the following code to {dede:list}{/dede:list}.

[Field:array runphp= ' yes ']
@me = (Strpos (@me [' litpic '], ' defaultpic ')? "": "<a href= ' {@me [' Arcurl ']} ' >
</a> ');
[/field:array]

Ways to call thumbnails on a Dream List page and content page

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.