control file

Post Reply
Danny
User
Posts: 138

control file

Post by Danny »

Hi,

Is to possible to create a new tab ino asp.netmaker -> Server Events -> Global -> All Pages -> like "Control_file" where we can put this code inside.

Now we have manually edit the control.xml everytime you update the templatefile.
Regards,


Webmaster
User
Posts: 9425

Post by Webmaster »

No, note that server events are for customizing the generated code, not the template itself. What did you add into the control file? What are you try to do?


Danny
User
Posts: 138

Post by Danny »

Hi,

The code we have manually add into the control.xml:

<!-- images -->
<control type="copy" id="images" ifolder="images" ofolderid="_images" remark="Copy images"/>

<!-- Pnotify check: hxxps://sciactive.github.io/pnotify/ -->
<control ifiles="pnotify/pnotify.custom.min.js" type="copy" id="pnotify.custom.min.js" ofolderid="js"/>
<control ifiles="pnotify/pnotify.custom.min.css" type="copy" id="pnotify.custom.min.css" ofolderid="
css"/>

Regards,


Webmaster
User
Posts: 9425

Post by Webmaster »

You just want to copy some files to the project folder. You can create an extension. Each extension has a control file, you can do similar things in extensions. Refer to the ckeditor extension as example.


Post Reply