Menu

Begin

This article was last updated 37 days ago, please note whether the content is still available

Application Concept

Plugins

  • Primarily functional purpose;

  • Organizing files and content according to established standards;

  • Enabling/disabling with a unified method;

  • Can be used through interfaces based on function, or not; Interface List

  • Declaration file for plugin.xml;

  • Plugin placement directory: zb_users/plugin;

Themes

  • Used to customize the Z-Blog front-end interface, providing layout effects and styles;

  • Organizing files and content according to established standards;

  • Enabling/disabling with a unified method; generally, only one theme can be used at a time;

  • Functional effects can be embedded as needed;

  • theme.xml;
  • Theme placement directory: zb_users/theme;

General Standards

  • The application directory name should be the same as the application ID, which the system uses for identification; (Note 1)

  • Main body of the ID, all lowercase, first letter capitalized, and camel case are all acceptable;

  • To avoid repetition and make it easier to identify, you can add a prefix separated from the main body by _;

  • For all subdirectories and files under the application directory, it is recommended to use all lowercase;

Note 1: Application directory and declaration files can be automatically generated by the operations below.

Creating Applications

To create a new application, go to the "admin panel" and select "Application Center" plugin, then click on "New Theme" or "New Plugin" to create a new application.

This will automatically create a corresponding folder and "declaration file" and put the "initial files" in it according to the application type.

Development Mode

To develop a theme or plugin, you need to enable "Application Center plugin" and "Z-Blog's development mode" separately:

  • Website SettingsGlobal SettingsDevelopment Mode

    • To display more detailed information for debugging when errors occur;

    • Please do not keep this mode enabled for a long time in production environment;

  • Application CenterSettingsDevelopment Mode

    • To modify application information (declaration file), export or submit the application to the "Application Center";

Helpful?

Post comment

Support Live Chat
TOP