WordPress.org

Forums

Mandatory Pages (4 posts)

  1. bpmccain
    Member
    Posted 4 years ago #

    I am setting up a multisite, and I want to be able to have mandatory, uneditable (except by Super Admin) pages on each subsite on the network. I would be able to add, edit, delete these centrally, with the end blog user being unable to edit them themselves.

    Obviously they would still need to be able to add / edit their own pages.

    I had thought about just giving each subsite owner author status, as this will be quite a tightly controlled network. However, I also want to start each subsite with a series of default pages that they can edit (in addition to the uneditable ones mentioned above). So it seems that the author role would not work, as they would then not be able to edit these initial default pages either.

    Any thoughts? I can't seem to find a plugin that would work. There are plugins out there that allow Super admin to add pages to blogs, but these are still editable by the blog user.

    What about hard coding pages into the theme? I'm not quite sure how to do that, and I've been looking to see if it is possible (still dynamically generated, but not through WordPress dashboard interface).

    Any ideas?

  2. Tim Moore
    Moderator
    Posted 4 years ago #

    You could create a custom post type and a new user capability that only Network Admins have. That's the easiest way I can think of to do it. It would require you to write your own plugin, though, unless someone else in the forums has an existing plugin that could help (I don't personally know of any).

    http://codex.wordpress.org/Post_Types#Custom_Types
    http://codex.wordpress.org/Roles_and_Capabilities

  3. bpmccain
    Member
    Posted 4 years ago #

    Hmm, thanks. I didn't know you could created new post types. I'll look into it.

  4. You always have to register your own post types.

    they still woudl not be central. All sites are independent, remember.

    And yes, you still have the editable pages issues. You *could* actually whip them up as part of the theme, using new page templates, and write the content right in the page template file, where the content loop would normally be.

    that would probably work quite well actually.... and give you one spot to update, assuming you're using the same theme on all.

Topic Closed

This topic has been closed to new replies.

About this Topic