| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <div id="backoffice">
- <p class="title">
- General settings:
- </p>
- Everything tCMS reads out of its configuration file lives here, grouped the way
- config/default.cfg groups it. Open the section you care about and leave the
- rest folded up.
- <br />
- The Data Model <em>must</em> be 0-configuration.
- If for example, you use mysql it will have to rely on either a local server, valid config file or connection proxy/pooler locally.
- <hr />
- <form class="Submissions Config" id="mainConfig" method="post" action="/config/save">
- : for $config_sections -> $section {
- <details class="config-section">
- <summary><: $section.title :></summary>
- : for $section.fields -> $field {
- <div class="config-field">
- <label for="config-<: $field.name :>"><: $field.title :></label>
- : if ( $field.comment ) {
- <p class="config-help"><: $field.comment :></p>
- : }
- : if ( $field.options ) {
- <select class="cooltext" id="config-<: $field.name :>" name="<: $field.name :>">
- : for $field.options -> $option {
- <option value="<: $option.value :>" <: if ( $option.selected ) { :>selected<: } :> ><: $option.label :></option>
- : }
- </select>
- : } else if ( $field.multiline ) {
- <textarea class="cooltext" id="config-<: $field.name :>" name="<: $field.name :>" rows="3" form="mainConfig"><: $field.value :></textarea>
- : } else {
- <input class="cooltext" type="text" id="config-<: $field.name :>" name="<: $field.name :>" value="<: $field.value :>" />
- : }
- </div>
- : }
- </details>
- : }
- <br />
- <input type="submit" class="coolbutton" value="Commit Changes" />
- </form>
- <hr />
- <p class="title">
- Theme cloner:
- </p>
- Want to write your own theme?
- Clone a theme here then see the <a href="https://tcms.troglodyne.net/index.php?nav=5&post=fileshare/manual/Chapter 03-Customization.post" title="GET UR MIND RITE">styling guide</a>
- for information on how tCMS' templates, image sets and CSS work in the theming system.
- <hr />
- <form class="Submissions" id="themeCloner" method="post" action="/themeclone">
- Theme:
- <select class="cooltext" name="theme">
- : for $themes -> $theme {
- <option value="<: $theme :>"><: $theme :></option>
- : }
- </select>
- <input required type="text" class="cooltext" placeholder="newTheme" name="newtheme" />
- <input type="submit" class="coolbutton" value="Clone" />
- </form>
- </div>
|