module 1: configure your site – input configuration
TRANSCRIPT
CONFIDENTIAL
MODULE 1:CONFIGURE YOUR SITE –INPUT CONFIGURATION
CONFIGURE YOUR SITE
CONFIDENTIAL
INPUT CONFIGURATION
For content entry
ObjectivesIdentify fields
Create input template
Review the Input class and what it lets us do
MODULE 1: CONFIGURE YOUR SITE
43
CONFIGURE YOUR SITE
CONFIDENTIALGlobal Content Page Content
44
11
2233
44
CONFIGURE YOUR SITE
CONFIDENTIALPage Content
1122
33
44
45
11
2233
44
CONFIGURE YOUR SITE
CONFIDENTIAL
CROWNPEAK API: KEY CONCEPTS
Template CodeTemplates use C# syntax, but are not creating .net projects in the CMS
CrownPeak’s C# API is not a library for use on .NET sites or a web service
Developers can use C# functions and custom objects and classes
46
CONFIGURE YOUR SITE
CONFIDENTIAL
CROWNPEAK API: KEY CONCEPTS
CMSAPI ObjectsObjects allow access to CMS database to add and edit content and variables
CMS abstracts database layer, no SQL statements are needed
Adding fields in template creates variables, stores valuesInput.ShowTextBox("Page Title", "page_title");
Developer can access / manipulate content with methods such as Asset articlesFolder = Asset.Load("/Site/Articles/");List<Asset> myArticles = articlesFolder.GetFileList();
Developers can create new objects for storing data
47
CONFIGURE YOUR SITE
CONFIDENTIAL
CROWNPEAK API: KEY CONCEPTS
Details on objects and methods available in API referencehttp://developer.crownpeak.com/
CMSAPI ObjectsAsset – User-entered data, Links, access content in multiple assetsContext – Methods, data, and properties particular to the environment, often determined by the active template filePanel, PanelEntry – Sub-assets either generated from a list of assets (as might be used in an index page) or from a collection of fields (such as a user-defined list of related links for a page)Additional object types: Images, uploaded files, etc.All object types listed in CMSAPI documentation under Crownpeak.CMSAPI Namespace
48
CONFIGURE YOUR SITE
CONFIDENTIAL
CREATE TEMPLATE
In CDC, go to /Introduction to CrownPeak/IntroProject/Templates directory.
Create a folder with your initials
Right-click and select New > Template C#. Name it - Article
Double-click input.aspx to open Visual Studio(By default, it will include input.aspx and output.aspx template files.)
49
CONFIGURE YOUR SITE
CONFIDENTIAL
CREATE INPUT FIELDS
Create a Title field –ServicesInput.ShowInputHeader();
Create an Image upload field –Input.ShowAcquireImage()
Create a WYSIWYG field –Input.ShowWysiwyg()
Create a panel –while(Input.NextPanel()){}
50
CONFIGURE YOUR SITE
CONFIDENTIAL
CREATE TEST FILE
Navigate to /Introduction to CrownPeak/Introduction Site/US-EN and create a folderCreate a new file and select your templates (for example: /Introduction to CrownPeak/IntroProject/TemplatesPTTemplates/Article)Set Workflow to “Basic Workflow”Edit file to test input and enter contentSave and View content from Content properties
51
CONFIGURE YOUR SITE
CONFIDENTIAL
(Input, Output, Post_Input, etc…)
Demonstration Highlights• New Tool • Consolidated Messages / Errors / Profile Data
VOLTE DEBUG TOOL
CONFIGURE YOUR SITE
CONFIDENTIAL
(Input, Output, Post_Input, etc…)
Demonstration Highlights
• Show data in accordion• Show detail window and data points• List of API fuctions called • Number of time each function is called• Duration in milliseconds
VOLTE PROFILER TOOL
CONFIGURE YOUR SITE
CONFIDENTIAL
Demonstration Highlights• Access to the FTP servers that mounted folders• Files available for download
FTP SERVER MOUNT
CONFIGURE YOUR SITE
CONFIDENTIAL
ASSETS AND TEMPLATES
Template One
Post_input.aspx
Output.aspx
Input.aspx
Template Two
Post_input.aspx
Output.aspx
Input.aspx
Interchangable
Applied
Asset (data)keys values
Properties
55
CONFIGURE YOUR SITE
CONFIDENTIAL
REFINING YOUR INPUT FORM
Separate Your input into Tabs –Input.StartTabbedPanel() …Input.NextTabbedPanel() …Input.EndTabbedPanel()
Create a Message, used for end user notes or instructions –Input.ShowMessage()
Remove the old panel fields and add a widget selection panel to the second tab –Input.ShowAcquireDocument()
56
CONFIGURE YOUR SITE
CONFIDENTIAL
REFINING YOUR INPUT FORM
Use a library function to create meta fields on the third tab –InputHelper.ShowMetaInput()
Review the API documentation for other field types…
– Some are for input fields (Checkboxes, Dropdowns, ShowDate),
– others are for presentation only (e.g., Tabs, Headers, ExpandPanels).
– Some are both (e.g., DropDownContainer)
57
CONFIGURE YOUR SITE
CONFIDENTIAL 58
QUESTIONSType your question(s) in the question box.