Velocity Changes

Page default

Follow these steps only if _internal/velocity/Page/Default has been localized.

Step 1

Go to _internal/velocity/Page/Default and edit.

Step 2

Add <div class="content-top"></div> to wrap the code below:

<element action="show" name="breadcrumbs"></element>
#if($pageType=="Standard")
    <element action="show" name="page-header"></element>
#end

Step 3

Submit to save changes.

Region mobile navigation changes

Follow these steps only if _internal/velocity/Regions/Navigation - Mobile has been localized.

Step 1

Go to _internal/velocity/Regions/Navigation - Mobile and edit.

velocity regions navigation mobile in folder tree

Step 2

Find the RenderMobileNavigation macro and replace code in the <div> with the following:

<div id="offCanvas" class="hide-for-large" role="navigation" aria-label="Mobile">
<button class="menu-toggle button hide-for-large" data-toggle="iu-menu">Menu</button>

    <div id="iu-menu" class="off-canvas position-right off-canvas-items" data-off-canvas data-position="right">

    ##primary
        <div class="mobile off-canvas-list" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">
            #set($set="Primary")
            #RenderFolder($folder)
        </div>

        ##secondary
        <div class="mobile off-canvas-list" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement">
            #set($set="Secondary")
            #RenderFolder($folder)
        </div>
    </div>    
</div><!-- /#offCanvas -->
mobile nav code to add

Step 3

Submit to save changes.

Section mobile navigation changes

Follow these steps only if _internal/velocity/Regions/Navigation - Primary has been localized.

Step 1

Go to _internal/velocity/Regions/Navigation - Primary and edit.

Step 2

Find the RenderPrimaryNavigation macro and replace

#if($DROPDOWN)
<nav role="navigation" aria-label="Main" id="nav-main" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement" class="main show-for-large dropdown">
    #else
<nav role="navigation" aria-label="Main" id="nav-main" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement" class="main show-for-large">
#end

with:

#if($DROPDOWN)
    <nav aria-label="Main" id="nav-main" role="navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement" class="main show-for-large dropdown">
#else
    <nav aria-label="Main" id="nav-main" role="navigation" itemscope="itemscope" itemtype="http://schema.org/SiteNavigationElement" class="main show-for-large">
#end

Step 3

Find

<div class="nav-secondary show-for-large">

<div class="row pad">

and replace with:

<div class="nav-secondary show-for-large" role="navigation" aria-label="Secondary">
    <div class="row pad">

Step 4

Submit to save changes.

Region site title changes

Follow these steps only if _internal/velocity/Regions/Site Title has been localized.

Step 1

Go to _internal/velocity/Regions/Site Title and edit.

region site title in folder tree

Step 2

Change <header itemscope="itemscope" itemtype="http://schema.org/CollegeOrUniversity" class="site-header">

to

<div itemscope="itemscope" itemtype="http://schema.org/CollegeOrUniversity" class="site-header">

site title

Step 3

Submit to save changes.

Page hierarchy changes

Follow these steps only if _internal/velocity/Page/Hierarchy has been localized.

Step 1

Go to the velocity/Page/Hierarchy and edit. Add the following AddLandmarksToBodyClass macro:

#macro(AddLandmarksToBodyClass $page)

    #set($landmarks = "landmarks")
    <element action="hide" name="landmarks">$!landmarks</element>

#end

Step 2

In _internal/velocity/Page/Hierarchy, add a call to the macro immediately after the macro.

call landmark macro

Step 3

Submit to save changes.

Velocity helpers

Step 1

Go to _internal/velocity/Page/Helpers and edit.

helpers file in folder tree

Step 2

Find the GetFileIncludes macro and add global-css after css in the array.

global-css addition to array

Step 3

Submit to save changes.