wesleyboar / Core-CMS-Plugin-Sample

A sample DjangoCMS plugin (for TACC Core CMS) to greet a user.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Texas Advanced Computing Center

Django CMS Plugin: Sample (Greet User)

This plugin greets a user by name, and serves as a sample plugin for https://github.com/TACC/Core-CMS.

  • __dist-name__: djangocms-tacc-sample
  • __package_name__: djangocms_tacc_sample
  • __ClassName__: TaccsiteSample
  • "Plugin Name": "Sample (Greet User)"

Quick Start

  1. Follow https://github.com/tacc-wbomar/Core-CMS-Plugin/wiki/Core-CMS-Plugin-Usage-Quick-Start.

Usage

  1. Add instance of plugin to a page.
  2. Set the "Guest Name" to any value.
  3. See plugin output when logged in and not logged in.

Features

  1. Greets guest user as "Guest", unless configured otherwise.
  2. Greets guest user by guest name set via plugin instance.
  3. Greets logged in user by name based on available user data:
    • "FirstName LastName"
    • "FirstName"
    • "username"

About

A sample DjangoCMS plugin (for TACC Core CMS) to greet a user.

License:BSD 2-Clause "Simplified" License


Languages

Language:Python 96.4%Language:HTML 3.6%