GithubHelp home page GithubHelp logo

spud-tutorial's Introduction

A tutorial for Spud-cmd

This tutorial is realized using grails 2.4.2

Tutorial steps are "cristalyzed" in branches. The main branch corresponds to the completed application.

Step 1 - Initialize spud environment:

  1. Add spud dependencies to BuildConfig.groovy
  2. Link dashboard in main layout adding <g:link controller="dashboard" namespace="spud_admin">Spud Dashboard</g:link> in main.gsp
  3. Browse to http://localhost:8080/spud-tutorial/spud/admin
  4. You will be redirected to the setup wizard where you can define the first cms administrator

Step 2 - Adding a footer:

  1. Add the spud manifesf with the template name in main.gsp
<%
//= template_name Simple
%>
  1. Add the footer snippet reference <sp:snippet name="Footer" /> in main.gsp
  2. Browse to dashboard and define a footer snippet named "Footer"

Step 3 - Adding a menu:

  1. Add the manu reference tag <sp:menu name="Main " id="navigation"/> in main.gsp
  2. Browse to dashboard and define a menu named "Main"

Step 4 - Adding a editable page:

  1. Define home as a cms template in Config.groovy
	spud {
   	cms {
   		rootPageName = "home"
   		defaultLayout = "main"
   		cacheEnabled = false //Turn on action caching
   	}
   }
  1. Add <g:pageProperty name="page.body" /> in main.gsp
  2. Add ${page?.name} in <g:layoutTitle>
  3. Add //= html body in main.gsp spud manifest

spud-tutorial's People

Contributors

lrkwz avatar stacksharebot avatar

Stargazers

Ejaz Ahmed avatar

Watchers

James Cloos avatar  avatar Ejaz Ahmed avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.