Jump to content

put informative text in page edit


adrianmak
 Share

Recommended Posts

For some page only has title field, the page is just used for a page container. The content will be generated in code.

For example a site-map page, it will generate a site map of all pages in code.

I would like to , when a ordinary user edit the site-map page in admin backend, i like to show a block of text in the page edit, the text will say something like "this page is blank intentionally. The content will be generated by system"

Link to comment
Share on other sites

The latest version of Admin Help module allows you to add a field to any help doc called help_header, which is then prepended to the edit form, for the template that this is enabled for. I use this for exactly the purpose you describe here, as well as putting a lot of instructions at the top of the page edit for certain template/page types; does help a lot and cuts down on support calls..

Alternately you can achieve this with a custom hook/function in your ready.php, for example hook into ProcessPageEdit::buildForm, and then prepend some markup depending if the conditions are met

  • Like 3
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...