博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[MODx] Build a CMP (Custom manager page) using MIGX in MODX 2.3 -- 1
阅读量:5901 次
发布时间:2019-06-19

本文共 2137 字,大约阅读时间需要 7 分钟。

BIG FUCK for MODx


 

MODx document is not that good  ...  at least in my opint of view. I spend hours to search martirals to find out how to build a CMP by using MIGX in MODX 2.3. The officail doument are written for 2.2, but since 2.3, it changed a lot.

 

OK, that's how to do this shit...

You can check those two vedios:

  (How to setup CMP in MODx 2.2)

 (Changes in 2.3)

 

1. INSTALL MIGX (do it yourself)

2. Create package: Package Name: serialnumber; talbe-prefix: serialnumber

 

3. Go XML-Schema tab:

 

4. Go "Parse Schema" tab and click "parse Schema" button.

5. Go "Create tables" tab and click "create tables" button.

 

6. You can now check two things, make sure everything wokrs fine:

  • Go to phpmyadmin, find your table 'serialnumberserial'
  • Go to "Files" --> "core" --> "Compoments" --> "serialnumber" --> "model" 

You will see like this:

 

7. In "MIGX Management" --> "MIGX" tab --> click "Add item":

 

8. In "Settings" tab, add following information.

  • Name: serialnumber
  • "Add Item" Replacement: "Add a serial"
  • unique MIGX ID: serilanumber (remember this, later will use)

 

9. Go to "CMP-Settings" tab, add following informations:

 

10. Go to "MIGXDB-Settings", add following informaiton:

Because when we create the package in step 2, we cadd the custom prefix "serialnumber", so here you also need to add it. 

You should be able to find those information in step 3.

 

11. Click "DONE", save the changes. Then you will see :

You might have different number, but anymore, the changes are saved.

 

12. Go to "System" --> "MENU":

 

13. Click "Create Menu" Button.

14. Fill in the following information:

you can leave "Parent" field behind for now.

"Parameters": "serialnumber" is unique MIGXID you set in step 8.

 

15. You can drag & drop the menu you just created to anywhere you want, for example: I put it under 'Extras'

 

16. Refresh the webpage, on the top menu, under 'Extras', you will see:

 

17. Click "Serialnumber", nav to the CMP.

 

OKOKOK, mother fucker !!! This is the first step (important) you want to achieve for CMP.

 

转载地址:http://rykpx.baihongyu.com/

你可能感兴趣的文章
Firefox 跟踪保护技术将页面加载时间减少 44%
查看>>
聚合(根)、实体、值对象精炼思考总结
查看>>
java解析虾米音乐
查看>>
rails将类常量重构到数据库对应的表中之三
查看>>
mysql 多行合并函数
查看>>
【案例】RAID卡写策略改变引发的问题
查看>>
第四十八讲:tapestry 与 淘宝kissy editor编辑器带图片上传
查看>>
Linux/Centos 重置Mysql root用户密码
查看>>
[C语言]unicode与utf-8编码转换(一)
查看>>
利用PDO导入导出数据库
查看>>
DDR3
查看>>
分支 统计字数
查看>>
艾级计算机的发展与挑战
查看>>
RocketMQ事务消息实战
查看>>
mysql-mmm-2.2.1安装手册
查看>>
搭建yum源服务器
查看>>
delphi使用ado导出excel
查看>>
linux 命令详解 二十三
查看>>
IT职场人生系列之二:大学生活
查看>>
手把手教你做出好看的文本输入框
查看>>