Cms judgment writing and cms writing

Source: Internet
Author: User

Cms judgment writing and cms writing

Cms is easy to write cyclic web content, and has different css settings for some cyclic web content. In this way, when writing cms, you need to make conditional judgment on the cycle: {if judgment condition} output content {else} output content {/if }. You can achieve the image carousel effect by judging some separately highlighted content.

 <ul class="pro-list">                        {pc:content action="category" catid="21" num="4" siteid="$siteid" order="listorder                        ASC"}                        {loop $data $key $r}                        {if $key==40}                        <li class="item0">                            <a title="{$r[catname]}" href="{$r[url]}">                                <div class="div-img" style="height:auto">                                                                    </div>                                <div class="pro_box Themebg Animation">                                    

Implement a large image and four small images through if judgment

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.