Web controls overview
Web controls are small, configurable components that can be included in a webpage and used multiple times across a project.
How do they work?
Web controls either stand alone, or are used alongside other web controls. Some groups of web controls make up Contensis modules, so the number available to you will vary depending on the modules you use. You can see our list of common web control settings, or browse ZenHub for module-specific information about web controls.
How do I add them to my pages?
- In the editable area of a page, right click to bring up the contextual menu.
- Select Insert Webcontrol, select the control you want to use and make any changes needed to the web control settings.
- Click Save, then Submit & Approve.
Note: All web controls must be assigned an ID/Name if not already assigned one by default. This ID/Name must be unique, as duplicate ID’s or names used on a single page will generate server errors.
Bespoke web controls
These are controls written for specific purposes or clients, and do not form part of the standard Contensis web control library. If you're using bespoke web controls, relevant source code can be added directly to the page/template source HTML. This means it will not be visible to an author in the WYSIWYG view. It is good practice to add the control source to a sub template, and drag this into the appropriate page to avoid accidental deletion.
Was this article helpful?