Tag summary of phpcms-v9
Recommended (free): phpcms
{template “content”,”header”} ———- 调用根目录下phpcms\template\content\header文件 {CHARSET} ————————————-字符集 (gbk或者utf-8) {if isset($SEO['title']) && !empty($SEO['title'])} {$SEO['title']}{/if} {$SEO['site_title']} {$SEO['keyword']} {$SEO['description']} ———————————–标题和标题seo优化 {CSS_PATH} ———————————–地址替换为根目录下\statics\css {JS_PATH}————————————–地址替换为根目录下\statics\js {pc:content action=”position” posid=”9″ order=”id” num=”10″ cache=”3600″} pc标签{pc:content 参数名=”参数值”参数名=”参数值”参数名=”参数值”} {loop $data $k $v} <li><a href=”{$v[url]}”>{$v[title]}</a></li> {/loop} pc标签值 action=”position”————-对话框的类型=“内容推荐位列表” posid=”9″——————–推荐位ID=“9” order=”id”——————–排序类型=“id” num=”10″ ——————-数据调用数量=“10” cache=”3600″—————-缓存=”3600″毫秒 {APP_PATH}—————–项目地址 {get_siteid()}—————- {IMG_PATH}—————– action=”hits” 排行,热点等 action=”lists” 主要用于列表等。 catid=”$catid” 当前栏目ID 指定数字,即为指定的栏目 num=”" 调用文章的数量 order=”id DESC” 按ID降序排列 order=”id ASC” 按ID升序排列 order=”views DESC” sort=”" thumb=”1″ 缩略图 return=”" page=”$page” 需要分页 每当列表几行的时候出现一次这个 {if $num%2==0} {/if} 循环标签 ——{loop $data $r} {/loop} ——{loop $info $r} {/loop} 日期——{date(‘Y-m-d H:i:s’,$r[inputtime])} 文章链接——{$r[url]} 文章标题——{$r[title]} 标题截取——{str_cut($r[title],40,’…’)} 缩略图——loop是info的时候用 {thumb($r[thumb],110,0)} loop是data的时候用{thumb($v[thumb],90,0)} 分页标签——{$pages} 文章页标签 标题——{$title} 内容——{$content} 日期——{$inputtime} 来源——{$copyfrom} 点击数——<span id=”hits”></span> <script language=”JavaScript” src=”{APP_PATH}api.php?op=count&id={$id}&modelid={$modelid}”></script> 网站首页——{siteurl($siteid)} 当前位置——{catpos($catid)} 栏目名称——{$CAT[catname]} 栏目拼音——{$CAT[letter]} 栏目链接——{$CAT[url]} 父栏目名称——{$CATEGORYS[$CAT[parentid]][catname]} 父栏目链接——{$CATEGORYS[$CAT[parentid]][url]} 上上级栏目名称——{$CATEGORYS[$CATEGORYS[$CAT[parentid]][parentid]][catname]} 上上级栏目链接——{$CATEGORYS[$CATEGORYS[$CAT[parentid]][parentid]][url]} 一级父栏目列表 {pc:content action=”category” catid=”0″ num=”34″ siteid=”$siteid” order=”listorder ASC”} {loop $data $r} <li><a href=”{$r[url]}”>{$r[catname]}</a></li> {/loop} {/pc} 同级栏目列表 {pc:content action=”category” catid=”$parentid” num=”12″ siteid=”$siteid” order=”listorder ASC”} {loop $data $r} <li><a href=”{$r[url]}”>{$r[catname]}</a></li> {/loop} {/pc} 组图列表 {loop $photos $r} <li><a href=”{$r[url]}”><img src=”{thumb($r[url], 75, 45, 0)}” alt=”{$r[alt]}” /></a></li> {/loop} 注释:其中$photos为自定义组图字段,{$r[url]}为图片地址,{thumb($r[url], 75, 45, 0)}为图片缩略图,{$r[alt]}为图片描述。
The above is the detailed content of Tag summary of phpcms-v9. For more information, please follow other related articles on the PHP Chinese website!

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

This tutorial shows you how to find specific text or phrases on all open tabs in Chrome or Edge on Windows. Is there a way to do a text search on all open tabs in Chrome? Yes, you can use a free external web extension in Chrome to perform text searches on all open tabs without having to switch tabs manually. Some extensions like TabSearch and Ctrl-FPlus can help you achieve this easily. How to search text across all tabs in Google Chrome? Ctrl-FPlus is a free extension that makes it easy for users to search for a specific word, phrase or text across all tabs of their browser window. This expansion

When browsing Douyin works, we often see a clock icon behind the tag. So, what exactly is this clock? This article will focus on the discussion of "What is the clock behind the Douyin label", hoping to provide some useful reference for your use of Douyin. 1. What is the clock behind the Douyin label? Douyin will launch some hot topic challenges. When users participate, they will see a clock icon after the tag, which means that the work is participating in the topic challenge and displays the remaining time of the challenge. For some time-sensitive content, such as holidays, special events, etc., Douyin will attach a clock icon after the label to remind users of the validity period of the content. 3. Popular tags: When a tag becomes popular, Douyin will add a clock icon after the tag to indicate that the tag is

As a popular short video social platform, Douyin has a huge user base. For Douyin creators, using tags to attract traffic is an effective way to increase the exposure of content and attract attention. So, how does Douyin use tags to attract traffic? This article will answer this question in detail for you and introduce related techniques. 1. How to add tags on Douyin to attract traffic? When posting a video, make sure to choose tags that are relevant to the content. These tags should cover the topic and keywords of your video to make it easier for users to find your video through tags. Leveraging popular hashtags is an effective way to increase your video’s exposure. Research current popular tags and trends and incorporate them into your video descriptions and tags. These popular tags usually have higher visibility and can attract the attention of more viewers. 3. Label

Detailed explanation of the video tag in HTML The video tag in HTML5 is a tag used to play videos on web pages. It can render videos using different formats, such as MP4, WebM, Ogg, and more. In this article, we will introduce the use of video tag in detail and provide specific code examples. Basic Structure The following is the basic structure of the video tag:

Differences: 1. The head tag is used to define the head of the document, which is a container for all head elements, and the header tag is used to define the header (introduction information) of the document; 2. All browsers support the head tag, and older versions of browsers None of the browsers support the header tag, and browsers such as IE9+ and above are required to support the header tag.

How to delete external contact tags on DingTalk app? DingTalk has a function to delete external contact tags, but most friends don’t know how to delete external contact tags on DingTalk. Next is the DingTalk guide that the editor brings to users. Graphical tutorial on how to delete external contact tags in the Ding app. Interested users can come and take a look! How to delete external contact tags in DingTalk app 1. First open DingTalk APP and click the [Management] function as shown below on the main page; 2. Then enter the enterprise management interface and find [External Contacts]; 3. Then on the external contact setting function page, select the [Label Management] service; 4. Then on the main contact label page, select the type of label group you want to delete; 5. Finally, click on the red label group

How to use HTML and CSS to implement a layout with a fixed navigation menu. In modern web design, fixed navigation menus are one of the common layouts. It can keep the navigation menu always at the top or side of the page, allowing users to browse web content conveniently. This article will introduce how to use HTML and CSS to implement a layout with a fixed navigation menu, and provide specific code examples. First, you need to create an HTML structure to present the content of the web page and the navigation menu. Here is a simple example

With the development of web applications, labeled input boxes are becoming more and more popular. This kind of input box allows users to input data more conveniently, and also facilitates users to manage and search the entered data. Vue is a very powerful JavaScript framework that can help us quickly implement labeled input boxes. This article will introduce how to use Vue to implement a labeled input box. Step 1: Create a Vue instance First, we need to create a Vue instance on the page, the code is as follows: &l
