The sample data creates demo articles, a menu and this documentation on your own site, so that you can see every kind of block at work and open it in the editor.
Installing the sample data
- Open the administrator Home Dashboard and find the Sample Data module.
- On the line PX Editor Demo press Install and confirm.
- Wait for the four steps to finish.
Line missing? Check that the plugin Sample Data - PX Editor is enabled and that your account may create articles.
Running it again creates no duplicates: demo articles, menus and tags that exist are kept (even if you edited them), what is missing is created again. The documentation pages are the exception: they are updated to the content of the installed version, so after upgrading PX Editor you can run it again to get the current documentation.
What is created
| Kind | Content |
|---|---|
| Categories | "PX Editor Demo" (demo articles), "PX Editor Docs" with the subcategories "Tiếng Việt" and "English" (documentation). |
| Demo articles | Overview, Text formatting, Images, Gallery, Video and audio, Tables, Layout blocks, A news article from a template, Read more and page breaks. Written in the site's default language (English or Vietnamese). |
| Documentation | This documentation, in Vietnamese and English. |
| Tags | "Video" and "Gallery", assigned to the demo articles with such blocks. |
| Menu | The menu "PX Editor" and a menu module in the position sidebar-right: Overview, Demo articles (category blog) with each article, Video posts, Gallery posts, Documentation. |
| Images | Illustrations, video posters and a short sound file, copied to images/pxeditor-demo. They are drawings made by PX and free for you to use. |
A settings change. To show the post-format feature, the sample data selects its demo tags "Video" and "Gallery" in the options Tag for articles with video and Tag for articles with a gallery of the Content - PX Editor plugin, only where the option is empty. An option that already has a value is left alone. From then on, articles you save with a video or a gallery receive the matching tag. To turn this off, set both options to "None" in the plugin. See Settings of both plugins.
Viewing the demo
On the site, open the PX Editor menu. In the administrator go to Content → Articles, filter by the category "PX Editor Demo" and open an article with PX Editor (see Installation and choosing PX Editor).
No sidebar-right position in your template? Open Content → Site Modules, find the module "PX Editor" and change its position.
Removing the demo
Sample data is ordinary content. To remove it:
- Menus → Manage: delete the menu "PX Editor" (its menu module goes with it, or delete it under Site Modules).
- Content → Articles: filter by the categories "PX Editor Demo" and "PX Editor Docs", trash the articles and empty the trash.
- Content → Categories: delete those categories.
- Content → Tags: delete the demo tags "Video" and "Gallery" if you do not use them, and reset the two tag options in the Content - PX Editor plugin.
- Delete the folder
images/pxeditor-demoin the Media Manager.