Jump to Content
LocomotiveCMSGuidesDiscussionSupport us!v2
GuidesBlogDiscussions
GuidesDiscussionSupport us!v2Log InLocomotiveCMS
Guides
Log In
Liquid helpers

Get started

  • Quick start
  • Install Locomotive Engine
  • Install on Heroku

Templates

  • Pages
  • Page inheritance
  • Layouts
  • Snippets
  • Assets

Content types

  • Define a content type
  • Relate two content types
  • Use them in templates
  • Filter and Paginate

Liquid API

  • Introduction
  • Logic
  • Drops
  • Standard filters
  • Filters
  • Tags

Actions API

  • Introduction
  • Liquid variables
  • Session variables
  • Content entries
  • Emails
  • External API
  • Other methods

Authentication

  • Introduction
  • Setup
  • Actions
  • Liquid helpers

Wagon

  • Create a site
  • Authenticate
  • Deploy a site
  • Synchronize content
  • Backup a site
  • Delete resources
  • Preview locally

Guides

  • Domains
  • Create a contact form
  • Localization
  • Site metafields
  • Protect a site by a password
  • Create a RSS feed
  • Install Wagon using Devstep and Docker
  • Upgrade to v3
  • Custom rendering

User Guides

  • How do I change the language of my user interface ?
  • How do I change my password?

Changelogs

  • version 3.4
  • version 3.3
  • version 3.2
  • version 3.1
  • version 3.0
Powered by 

Liquid helpers

Suggest Edits

authorize

Description

Protect a page by redirecting the current site visitor to another page if she/he has not been authenticated through the default authentication process.

Syntax

{% authorize "<user account content type slug>", "<page handle to redirect to>" %}

Example

{% authorize "accounts", "sign_in" %}

<p>This page can only be viewed by authenticated users</p>

Updated almost 6 years ago


  • Table of Contents
    • authorize
    • Description
    • Syntax
    • Example