Skip to content

Commit

Permalink
WSC 3.0 Migration: Templates
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdesign committed Jan 18, 2018
1 parent ef09235 commit 424d2fa
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions pages/migration/wsc-30/migration_wsc-30_templates.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
title: Migrating from WSC 3.0 - Templates
sidebar: sidebar
permalink: migration_wsc-30_templates.html
folder: migration/wsc-30
---

## Comment-System Overhaul

{% include callout.html content="Unfortunately, there has been a breaking change related to the creation of comments. You need to apply the changes below before being able to create new comments." type="error" %}

### Adding Comments

Existing implementations need to include a new template right before including the generic `commentList` template.

```html
<ul id="exampleCommentList" class="commentList containerList" data-...>
{include file='commentListAddComment' wysiwygSelector='exampleCommentListAddComment'}
{include file='commentList'}
</ul>
```

## Redesigned ACP User List

Custom interaction buttons were previously added through the template event `rowButtons` and were merely a link-like element with an icon inside. This is still valid and supported for backwards-compatibility, but it is recommend to adapt to the new drop-down-style options using the new template event `dropdownItems`.

```html
<!-- button for usage with the `rowButtons` event -->
<span class="icon icon16 fa-list jsTooltip" title="Button Title"></span>

<!-- new drop-down item for the `dropdownItems` event -->
<li><a href="#" class="jsMyButton">Button Title</a></li>
```

## Sidebar Toogle-Buttons on Mobile Device

{% include callout.html content="You cannot override the button label for sidebars containing navigation menus." type="info" %}

The page sidebars are automatically collapsed and presented as one or, when both sidebar are present, two condensed buttons. They use generic sidebar-related labels when open or closed, with the exception of embedded menus which will change the button label to read "Show/Hide Navigation".

You can provide a custom label before including the sidebars by assigning the new labels to a few special variables:

```html
{assign var='__sidebarLeftShow' value='Show Left Sidebar'}
{assign var='__sidebarLeftHide' value='Hide Left Sidebar'}
{assign var='__sidebarRightShow' value='Show Right Sidebar'}
{assign var='__sidebarRightHide' value='Hide Right Sidebar'}
```

{% include links.html %}

0 comments on commit 424d2fa

Please sign in to comment.