{{indexmenu_n>10}} ====== Edit (s) ====== This page allows you to edit a template, JS, or CSS file. When you are editing a template file located in the main_page/ in a template set, it will look similar to the screenshot below. {{ :admin_menu:design:manager:edit:edit-main.png |}} ===== Template Set (Admin Editing) ===== **See: [[admin_menu/design/manager/start#Template Set (Admin Editing)]]** ===== Design Mode (Advanced or Standard) ===== **See: [[admin_menu/design/manager/start#Design Mode (Advanced or Standard)]]** ===== WYSIWYG Editor ===== If editing a template file, you may have the option to edit the template using the WYSIWYG editor. When doing so we advise to use extreme caution, by backing up the template file before editing (just download the file and save it to your local computer). Editing using the WYSIWYG editor only affect the parts between the //
// and //// tags. Anything before the or after the tag is preserved so that you are only modifying those parts of the template file that have less chance of accidental corruption. ==== WYSIWYG Not always Usable ==== Some templates, because of how they are designed, just will not be able to be safely edited by the WYSIWYG editor. When that is the case, when you try to click on the WYSIWYG Editor tab, it will not allow you to. If you know that a certain template can be "harmed" by the WYSIWYG editor, or perhaps if a template does not contain any parts that are in the section, you can add the following to the template:{*CODE_ONLY*}
The code above is not displayed at all when the system uses the template, because it is a //smarty comment//. When it is found in a template that is being edited, the system will not allow that template to be edited by the WYSIWYG editor.
===== <..> Source Code Editor =====
This tab allows you to directly modify the template or file's //source code//, without it being manipulated by the WYSIWYG editor. When you edit it this way, it is normal to see the HTML tags and such.
This tab will be the only option when you edit JS or CSS files, as there is no way to view or edit such files using the WYSIWYG editor.
===== Special Tools =====
These tools are available in both the [[#WYSIWYG Editor]] and the [[#<..> Source Code Editor]].
==== Download File ====
{{:admin_menu:design:manager:edit:file_download.png |}} Use this to download the file. It will allow you to save any current changes if you wish, before downloading the file.
==== Upload File ====
{{:admin_menu:design:manager:edit:file_upload.png |}} Use this to upload a file from your computer, to replace the contents of the file you are currently editing. Note that this will over-write any current modifications you may have.
==== Restore Default Contents ====
{{:admin_menu:design:manager:edit:restore-file-icon.png |}}
Use this to restore a file's contents to the default. This will only show for files that have a matching file in the default template set.
==== Insert Tag ====
{{:admin_menu:design:manager:edit:tag_insert.png |}} This option is only available when editing main_page template files.