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

本文共 2191 字,大约阅读时间需要 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.

 

转载于:https://www.cnblogs.com/Answer1215/p/4316593.html

你可能感兴趣的文章
Linux学习笔记 -- 系统目录结构
查看>>
[转载]ExtJs4 笔记(9) Ext.Panel 面板控件、 Ext.window.Window 窗口控件、 Ext.container.Viewport 布局控件...
查看>>
将数组排序组成最小的整数
查看>>
sqlserver学习--1(登陆,时间函数,查看表结构,查看建表语句,IDENTITY() 函数,查询表名称,查询表结构)...
查看>>
MYSQL 日期函数
查看>>
Oracle触发器之替代触发器
查看>>
NodeJS基础教程之一
查看>>
你真的了解SDWebImage吗?
查看>>
BZOJ 1101 Luogu P3455 POI 2007 Zap (莫比乌斯反演+数论分块)
查看>>
C#嵌套类
查看>>
2017《面向对象程序设计》课程作业三
查看>>
[HDU] 1068 Girls and Boys(二分图最大匹配)
查看>>
ADO.NET类的模型关系图
查看>>
SRM 604 DIV2 250
查看>>
python中异常处理之esle,except,else
查看>>
看苹果官方API
查看>>
06-基础-系统指令-v-model-语法糖原理
查看>>
论文网站相关链接
查看>>
ipad4自动下载了ios8的安装包,好几个G啊,不想更新,怎么删了呢?
查看>>
JS中的Navigator 对象
查看>>