OperationsCommander - https://opscom.wiki

Templates and Design

The Templates and Design module allows administrators to heavily customize the visual functionality and branding of the User Portal. Its primary purpose is to structure the visual layout around your core page content, ensuring the portal accurately reflects your corporate branding and provides a seamless user experience. This article is intended for OPS-COM administrators.

Setup and Configuration

Configuring your portal's design involves creating a foundational layout and then building specific templates within that layout.

Admin Side:

Creating a Layout

  1. Hover over System Configuration and click Templates and Design.

  2. Click the Create Layout button located at the top right of the page.

  3. Enter a descriptive name for your new layout in the provided field.

  4. Click the Save Changes button. The layout will now appear in your Layouts list.

  5. Click the Non-Default drop-down menu and select Default if you wish to make this the active layout for your system.

Creating Templates

  1. Hover over System Configuration and click Templates and Design.

  2. Click Toggle Templates next to your newly created layout to display its available templates.

  3. Click the Create button to begin adding specific section templates to the layout, including bilingual support for English and French.

User Side: End-users do not interact with the setup of templates. They will simply view the customized layout when navigating the User Portal to register, add vehicles, purchase permits, or pay violations.

Using this Feature

The OPS-COM User Portal is split into specific visual sections using templates. All core text content is added through Pages and Content Blocks, while templates wrap around that content to provide styling and structure.

Template Sections

Available Actions & Buttons

Default System Templates

If you adjust the scripts and styles to the point of breaking your site, or you are unsure what your changes have done, you can refer to the default templates below to quickly restore your page's functionality and style.

Default Script Template

 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<script>
    $(function(){
        $.fn.shuffle = function() {
 
            var allElems = this.get(),
                getRandom = function(max) {
                    return Math.floor(Math.random() * max);
                },
                shuffled = $.map(allElems, function(){
                    var random = getRandom(allElems.length),
                        randEl = $(allElems[random]).clone(true)[0];
                    allElems.splice(random, 1);
                    return randEl;
                });
 
            this.each(function(i){
                $(this).replaceWith($(shuffled[i]));
            });
 
            return $(shuffled);
 
        };
        $('#slideshow-header div').shuffle();
        $("#slideshow-header > div:gt(0)").hide();
 
        setInterval(function() {
            $('#slideshow-header > div:first')
                .fadeOut(1000)
                .next()
                .fadeIn(1000)
                .end()
                .appendTo('#slideshow-header');
        },  10000);
    });
</script>
Default Style Template 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<style>
  body {
    backgroundblack url(/uploads/FILES/OC_TOMA/parking-deck.jpg) center center;
    background-size: cover;
    background-attachmentfixed;
    color#FFF;
  }
  .card, .modal, .list-group-item {
    color#333;
  }
  .slideshow-header {
    position:relative;
  }
  .slideshow-header .slides {
    z-index0;
    position:absolute;
    top:0px;
    left:0px;
    right:0px;
    bottom:0px;
    display:flex;
    align-items: center;
    justify-contentcenter;
  }
  .slideshow-header .overlay {
    z-index1;
    position:relative;
  }
  #slideshow-header {
    overflowhidden;
    opacity:0.8;
    box-shadow: 0 0 20px rgba(0000.4);
  }
 
  #slideshow-header > div {
    width:100%;
    positionabsolute;
  }
 
  #slideshow-header div img {
    width100%;
  }
</style>
Default Header Template 
 
1
2
3
4
5
6
7
8
9
10
<div class="text-center slideshow-header">
  <div class="slides" id="slideshow-header">
  </div>
  <div class="overlay">
    <img alt="" class="img-fluid" src="/MEDIA/demo_extras/TomahawkUniversity_logo.png" style="display:inline; width: 450px; margin-top: 80px; margin-bottom:80px;"/>
  </div>
</div>
[user_menu]

Best Practices and Considerations


Take Command of Your Parking and Security - https://OperationsCommander.com

Revision #4
Created 15 May 2024 09:15:02
Updated 16 July 2026 09:19:31