Skip to main content
Home  ›  Blog

Rapid In-Page Development to change Templates, Content-Type and more (200)

2sxc is all about solving common content and web tasks quickly and efficiencly. Because of this we're enhancing the in-page toolbar with advanced features (only visible for users with elevated permissions).

The Design-Toolbar in 2sxc 8.1

If you are an admin or host user and you have 2sxc-design permissions, your rotating more-button on the toolbar will provide a new, green mode with these buttons:

The buttons available are

  1. Edit html/razor code of the current template
  2. Edit content-type definition configured for this template (so change the fields this content-type has)
  3. Manage all data-items with the same content-type definition as given for this template
  4. App Settings (or Content Settings)
  5. Manage all Apps (which also has language settings)

We introduced these buttons for various reasons. On one hand, we wanted to ensure that all functionality is available without having to go into the slow DNN-Edit-View, but also to provide quick access to the most commonly changed things. 

The Code-Editor

We're really proud to have implemented the ACE editor as the new editor in 2sxc. This is what it looks like:

I'll write more about the code editor in a separate blog. But suffice to say that there are many, many highlights like

  1. Intellisense on HTML
  2. Error detection for many cases of invalid HTML
  3. Snippets for HTML and JavaScript
  4. Snippets for DNN-Objects like Portal, User and more
  5. Snippets for the current 2sxc objects like App-Settings, the current Content-Object and more
  6. Sherlock-Snippets which give you advanced snips like foreach loops or ADAM-snippets based on the field-type you select. Sherlock also knows if you're working on a Token or Razor template, and adjusts the snippets to your scenario. 

You should also know that the editor opens in a new browser-window, and the save button will leave this window open. The reason we did this is so you can change something, try it, and if necessary, undo it :). 

Love from Switzerland,

Daniel Mettler grew up in the jungles of Indonesia and is founder and CEO of 2sic internet solutions in Switzerland and Liechtenstein, an 20-head web specialist with over 800 DNN projects since 1999. He is also chief architect of 2sxc (see github), an open source module for creating attractive content and DNN Apps.

Read more posts by Daniel Mettler