About Unordered List to Pages
Creates a structure of new pages from an unordered list. Addon action for Admin Actions module.
Category | Admin Helpers Admin helper modules are those that provide helpful tools, UI enhancements or optimizations to the admin panel (excluding Fieldtype or Inputfield modules). |
---|---|
Release State | Beta Close to stable, but users are advised to be cautious and test thoroughly.* |
Author | |
Module Version | 0.1.3 |
Class Name | AdminActionsUnorderedListToPages |
Compatibility | 3.0 |
Date Added | September 24, 2018 |
Last Updated | September 28, 2018 |
Recommended By | New recommendations may take up to 1 day to appear. |
Instructions
This module's files should be placed in /site/modules/AdminActionsUnorderedListToPages/
How to install or uninstall modules
README
Unordered List to Pages
An action for the Admin Actions module for ProcessWire CMS/CMF. Creates a structure of new pages from an unordered list entered into a CKEditor field. The nesting of further unordered lists within the list will determine the nesting of the created pages. Created pages get a default template that you select, and you can override this default template per list item by specifying a template name between [[
]]
delimiters.
This action can be useful to quickly create a page structure; especially so if you are rebuilding an existing non-ProcessWire site that has a Sitemap page that you can copy and paste from.
Usage
Install the Unordered List to Pages module.
Visit the Admin Actions config screen and enable the "Unordered List to Pages" action for the roles who are allowed to use it.
Navigate to Admin Actions > Unordered List to Pages and fill out the config fields:
Source
Enter/paste an unordered list in the Source field. There is a "cheatsheet" field above that explains the syntax you can use to set some template options for each list item.
If you want to override the default template for an item you can specify a template name after the page title between double square brackets. If the template doesn't already exist it will be created.Example: Page title [[staff_members]]
You can also specify one or more allowed child templates for a template like so: [[staff_members > manager tech_support]]
This would create the page using the staff_members
template, and set the allowed child templates of staff_members
to manager
and tech_support
.
Alternatively you can specify one or more allowed parent templates for a template like so: [[manager < staff_members]]
This would create the page using the manager
template, and set the allowed parent templates of manager
to staff_members
.
Parent page
Select a parent page that the new pages will be created under.
Default template
Select the default template to use for the new pages.
Screenshots
Action config:
Result:
Comments
No comments yet. Be the first to post!
Post a Comment
Your e-mail is kept confidential and not included with your comment. Website is optional.
- Admin Helpers
- Authentication
- Core Modules
- Development Tools
- Email/WireMail
- Field Types
- Import/Export
- Input Fields
- Language Modules
- Language Packs
- Logs/Monitoring
- Markup Generation
- Photo/Video/Audio
- Premium Modules
- Process Modules
- Proof of Concept
- SEO/Accessibility
- Site Profiles
- Social, Feeds, Services
- Text Formatters
- Other Modules
- Users and Access
Disclaimer
*Use modules at your own risk. There are no guarantees or warranties. It is recommended that you backup your site and database before installing new modules.