Hongmu Notes
Home Program Notes

Program Notes

In the final analysis, programmers taking notes is an efficient behavior of recording work experience. It can not only record the various technical problems encountered in the process of program development, but also record the beneficial experiences gained in learning technical knowledge. It can both help...

Apple cms generates a method to search for a certain field value

Apple cms generates a method to search for a certain field value Program Notes Apple cms

{$vo.actor|mac_url_create='actor','vod','search',' '} Generates N search links from a string of characters separated by commas; the last two parameters can be omitted – they default to generating VOD module search links. For example, this function creates actor search links. It supports fields such as actor, director, tag, and extended category. The last parameter is used to generate links...
👁 394
Apple cms commonly used processing functions

Apple cms commonly used processing functions Program Notes Apple cms

The Common Processing Function allows the use of multiple functions, all separated by the '|' character. For all image URLs—whether remote or local—it is recommended to use `mac_url_img` for processing. `{:mac_data_count(0, 'all', 'vod')}` retrieves the total number of videos; `{:mac_data_count(0, 'today', 'vod')}` retrieves the total number of videos updated today; {...}
👁 307
Apple cms specifies the category id to retrieve the following categories

Apple cms specifies the category id to retrieve the following categories Program Notes Apple cms

Code: {maccms: type ids= "2" order= "asc" by= "sort" id= "vo1"} {$key} 序号 {$vo1.type_id} Number {$vo1.type_name} 名称 {$vo1....
👁 250
Apple cms specifies the category to call the latest video

Apple cms specifies the category to call the latest video Program Notes Apple cms

{maccms: vod num= "Number of calls"; type= "Specified category ID"; order= "desc"; by= "time"} {$key} 序号 {$vo.vod_id} ID {$vo.vod_name} 名称 {$v...}
👁 306
Apple cms common parameters

Apple cms common parameters Program Notes Apple cms

Global label tip Global label is a global variable that can be called on all pages. The Apple cmsV10 global array is $maccms. It can also be obtained by using the PHP global variable $GLOBALS. Common configurations are assigned to $GLOBALS['config']. Common website parameters {$maccms.site_name}Website name {$maccms.site_url…
👁 191
Apple cms template structure

Apple cms template structure Program Notes Apple cms

模板结构苹果cms所有模板主题包都规定放在 template 目录tip必须严格遵守标准的目录结构进行创建模板,否则会前端访问导致异常,自定义代码块除外========模板结构======= │─template/1/ 模板1 │ ├─info.ini 模板信息文件 │ ├─ads 广告文件目录 │...
👁 277
Apple cms gets the specified path

Apple cms gets the specified path Program Notes Apple cms

{:mac_url('map/index')} – Retrieves internal site link parameters; represents a module/page. 1. To retrieve the ID of the current page, you can use the {$maccms.aid}标签即可获得当前页面aid值 2.如需调出当前模型id 可以 使用{$maccms.mid} tag to obtain the current module's MID value.
👁 341
Detailed explanation of Apple cms{:maccms:type} calling tag

Detailed explanation of Apple cms{:maccms:type} calling tag Program Notes Apple cms

Classification Tag ({maccms:type}{/maccms:type) can retrieve all data categories from the backend; currently, the data supported for classification binding includes video data, article data, celebrity data, and URL data. The Classification Tag is documented separately because it is not restricted to use within a specific template. Belongs to: Model ('Type'); Parameters: order...
👁 956
Apple cms calls this week's most popular videos

Apple cms calls this week's most popular videos Program Notes Apple cms

{maccms: vod num= "12" type= "all" order= "desc" by= "hits_week"} Field: {$key} 序号 {$vo.vod_id} ID; {$vo.vod_name} Name; {...}
👁 319
Apple cms video call tag {maccms:vod}

Apple cms video call tag {maccms:vod} Program Notes Apple cms

Video Directory (HTML/VOD) – Associated Model: `model('Vod')` | Model ID: 5 | Video Tag: `{maccms:VOD Parameter1= "Value" Parameter2= "Value"}...{/maccms:VOD}` | Tag Parameters: `order` – Sorting order (desc: descending; asc: ascending); `by` – Sorting criterion (e.g., `id`,...).
👁 951
1 15 16 17 18 19 23