drbz99867 2015-03-02 09:15
浏览 15

在创建步骤时将页面添加到某个命名空间

I want to add the page in a certain namespace on step creation. How it must look like: a dropdown with list of namespaces (required for checking) and after pressing "post" button page will be placed in selected namespace.

What i do: - edit wikipage.php (function insertOn() ) - editeditpage.php on string 2242

And... I have error on posting "The Title object did not provide an article ID. Perhaps the page doesn't exist?"

Anybody do it?

  • 写回答

1条回答 默认 最新

  • duandanxiu6965 2015-08-24 10:39
    关注

    There are two different things in your request:

    • a dropdown to select categories during page creation;
    • enforcement of category selection.

    So I think you should address the two things separately:

    • install VisualEditor to provide a GUI for category addition (perhaps configure it to make the category selector more visible, but that's offtopic);
    • install AbuseFilter and add a filter which disallows creation of a page without a category; in the error message put some friendly text to let users know they must use said feature.
    评论

报告相同问题?

悬赏问题

  • ¥15 划分vlan后不通了
  • ¥15 GDI处理通道视频时总是带有白色锯齿
  • ¥20 用雷电模拟器安装百达屋apk一直闪退
  • ¥15 算能科技20240506咨询(拒绝大模型回答)
  • ¥15 自适应 AR 模型 参数估计Matlab程序
  • ¥100 角动量包络面如何用MATLAB绘制
  • ¥15 merge函数占用内存过大
  • ¥15 Revit2020下载问题
  • ¥15 使用EMD去噪处理RML2016数据集时候的原理
  • ¥15 神经网络预测均方误差很小 但是图像上看着差别太大