Extension Of Stylesheets And JS

2022-05-09 15:56:03
Kelsea
1218
Last edited by Hongyan on 2022-05-10 17:24:38
Share links

Extension Of Stylesheets And JS

1. Extension Of Stylesheets

If you wanna modify the style of a certain page, there are two ways. One is through the extension of the view file mentioned above. Another way is to define styles for this page individually. For example, I want to redefine the style of the page Create in the Bug module, I could define it like this:

 

Create a "Create" directory under extension/custom/bug/ext/css/, then create a css file , and define your style in it.

 

When the framework loads the create method, it will load all the css files under the extension/custom/bug/ext/css/create directory.

2. Extension Of JS

Like the extension of the style sheet, the extension of JS has the same rules. For example, to expand the page Create in the Bug module, you can create a "Create" directory under bug/ext/js/, and then define a js script in it.

 

When the framework loads the create method, it will load all the css files under the extension/custom/bug/ext/css/create directory.

Write a Comment
Comment will be posted after it is reviewed.