際際滷

際際滷Share a Scribd company logo
DXA Modules  A Walkthrough
Creating New Modules
Raj Kumar
Sapient
2
What's & Why
 Additional functionality
 Self-contained
 Packaged
 Installable
 Increases flexibility
 Re-usability
 Independent release of the modules
 Extend DXA
 Share your work
3
 SDL Tridion 2013 SP1 / SDL Web 8
 Visual studio 2013
 DXA installed
 Good mood
 Red Bull (optional)
PREREQUISITES
4
There are essentially two parts of a Module
 CMS
 CDS
JW Player Module
CMS
6
DXA Modules requires a
predefined structure for putting all
the building blocks of the module.
The name of folder is usually
module name
Settings also have folder as in
Module but it just contains
component etc. for defining any
settings.
CMS PART
7
Each of folder may contain
 Admin - Content Manger Administrator
 Developer - Template, TBBs and/or Module developer
 Editor - Content Author/Editors
 Site Manager - Site level management, e.g. API keys
Sub Folders in Module and Security
8
.
Second Step: Create Module Component.
Module Name
Version
Dependency
Configurations
Resources
9
.
Step 3: Define Editorial Schemas and Templates
10
.
Step 4 Create Editorial Content
Create the
Component from
schema
Assign it to the DXA
Home page with
JWPlayer CT
11
.
Step 5 : Create Setting & Resources Schemas
12
Publish Setting Page
Home page/Content page
Publishing
CDS
14
Two ways to Start with CDS part
Use exiting DXA project and create required Area using Mvc ' Add
Area..
You can use Visual studio extension for DXA to add, required files
e.g. Registration and Model classes.
15
Each Module is separated by respective Area
CDS
16
.
17
. Update JWPlayerAreaRegisteration.cs so that it
inherits from Sdl.Web.Mvc.Configuration.BaseAreaRegistration class
 Overrides the RegisterAllViewModels method to register above view and view-model in view-
registry. see below image , This is again very important step
Area Registration
18
WOW
19
Try Yourself
Packaging
20
QUESTIONS?
22
http://rajmittal.blogspot.com
www.linkedin.com/in/mittalraj
@rajkumarmittal
Be in Touch
THANK YOU!

More Related Content

Step By Step Dxa Module creation

Editor's Notes

  • #2: Believe me its easy like child play.
  • #6: Believe me its easy like child play.
  • #14: Believe me its easy like child play.