37
Theme Customization Worldwide Business Partner Technical Enablement 2016 Van Staub – North America Embedded Solution Partners 1

IBM Digital Experience Theme Customization

Embed Size (px)

Citation preview

Page 1: IBM Digital Experience Theme Customization

Theme CustomizationWorldwide Business Partner Technical Enablement 2016Van Staub – North America Embedded Solution Partners

1

Page 2: IBM Digital Experience Theme Customization

Agendareview in a practical format Digital Experience’s:• theme tooling• theme capabilities• experience converting WordPress themes• available lab• resources

Page 3: IBM Digital Experience Theme Customization

Theme Overview• page artifacts

• navigation• search bar• user settings• footer

• branding• static resources

Page 4: IBM Digital Experience Theme Customization

Theme Overview• layout of the components on a

page• skin artifacts

• border “around” a portlet or content

• flexible, granular settings• code or libraries needed for

this page to function• multi-channel delivery

Page 5: IBM Digital Experience Theme Customization
Page 6: IBM Digital Experience Theme Customization
Page 7: IBM Digital Experience Theme Customization

Portal 8.5 Theme• ships with one theme - called

Portal 8.5• same theme architecture since

7.0.0.2• dynamic and static files

• toolbar isolation / authoring experience

• theme optimization (modularization)

• theme analyzing capabilities

• Dojo 1.9.x in the box, allowing arbitrary frameworks, such as Angular

• JQuery 1.10.x in the box

Page 8: IBM Digital Experience Theme Customization

Customizing Themes: Tooling

Page 9: IBM Digital Experience Theme Customization

Theme Manager• Theme Development portlets

(new in CF08)• convenient alternative to

XmlAccess• simpler, more intuitive

approach• self service capability for

DX-on-Cloud customers

Page 10: IBM Digital Experience Theme Customization

Theme Manager

create a theme from a

template. copy, export, or delete a theme

edit theme properties

Page 11: IBM Digital Experience Theme Customization

Web Developer Dashboard• work with Script Portlet

applications, Themes, and WCM design elements in a simple UI

• click to push or watch/sync applications and designs to a local or remote Portal server

• use a simple UI to add and edit your theme modules and profiles

• run script applications locally on test server

Page 12: IBM Digital Experience Theme Customization

Web Developer DashboardClient machine: developer

workstation or integration/build server

Portal Server

HTTPScript apps: “sp push” / HTTP

Themes: DX Sync / WebDAV

WCM designs: Node.js / REST

HTTP

HTTP

Web Developer

Toolkit

Dashboard UIor

Command line

Scripts in WCM

Themes in WebDAV

WCM Designs in WCM

Script files on local file system

Theme files on local file system

WCM design files on local file systemNode.js

Editors, build tools, compilers, source code management, etc.

Page 13: IBM Digital Experience Theme Customization

Theme Editor• edit the static content

of a theme (HTML, CSS, JavaScript, etc) directly in a browser

• available as a downloadable tech preview

Page 14: IBM Digital Experience Theme Customization

Simple Theme• minimal set of artifacts for an easy starting point and quick learning curve• responsive design supports all mobile devices• easily branded and customized using CSS/JS/HTML and editable via WebDAV • several of generic dynamic content spots are available

• top navigation, mega menu, etc.

Page 15: IBM Digital Experience Theme Customization

Theme Analyzer• analysis and debugging tools available on Theme Development

page

Page 16: IBM Digital Experience Theme Customization

Customizing Themes: Capabilities

Page 17: IBM Digital Experience Theme Customization

Create New Theme• create

“bootswatch” theme from the Simple Theme template

• apply the theme to a page

Page 18: IBM Digital Experience Theme Customization

update branding

add padding

add a few layout

templates

Page 19: IBM Digital Experience Theme Customization

Styles• styles define the aesthetics of

the page – essentially a cascading style sheet

• applied dynamically using page properties

• let’s re-use bootswatch Bootstrap styles to provide options for users no other styles

available in Simple Theme

Page 20: IBM Digital Experience Theme Customization

Styles• download the Cerulean Bootstrap style• create a styles.json file (because Simple doesn’t have one) using

the DX toolkit

Page 21: IBM Digital Experience Theme Customization
Page 22: IBM Digital Experience Theme Customization

Styles• /Dev/bootswatch/system/styles.json• /Dev/bootswatch/css

• /cerulean• /bootstrap.min.css• /thumbnail.png

• /cosmo• /bootstrap.min.css• /thumbnail.png

• /slate• /bootstrap.min.css• /thumbnail.png

{ localizationPackageName:'com.ibm.bundles', localizationBundleName:'Shelf', identifier:'label', items: [{'label':'Cerulean','id':'cerulean.css','url':'css/cerulean/bootstrap.min.css','thumbnail':ibmCfg.themeConfig.themeRootURI+'/css/cerulean/thumbnail.png','help':''},{'label':'Cosmo','id':'cosmo.css','url':'css/cosmo/bootstrap.min.css’,’thumbnail':ibmCfg.themeConfig.themeRootURI+'/css/cosmo/thumbnail.png','help':''},{'label':'Slate','id':'slate.css','url':'css/slate/bootstrap.min.css','thumbnail':ibmCfg.themeConfig.themeRootURI+'/css/slate/thumbnail.png','help':'’}] }

Page 23: IBM Digital Experience Theme Customization

this changed

this did not

Page 24: IBM Digital Experience Theme Customization

Theme Templates• a theme template (e.g. theme.html) defines the structure of the

site• contains both static and dynamic markup• static reference example

• war: used to load static resources from a WAR file• dynamic markup <a rel='dynamic-content' href='dyn-cs:id:…'/>

• modules are able to contribute dynamic content spots with the contribution type dyn-cs from a plugin.xml

• beware localized templates; edit the NLS template inside /<theme>/nls/theme_en.html

Page 25: IBM Digital Experience Theme Customization

static

dynamic

/opt/IBM/WebSphere/PortalServer/theme/wp.theme.themes/simple/installedApps/SimpleTheme.ear/SimpleTheme.war/themes/html/dynamicSpots

Page 26: IBM Digital Experience Theme Customization

Theme Expression Logic• simple access to:

• Portal models, meta data, resource environment providers (REP), etc

• http://www-01.ibm.com/support/knowledgecenter/SSHRKX_8.5.0/mp/dev-theme/themeopt_el_bean.dita

${wp.selectionModel.selected} = selected node${wp.metadata[wp.selectionModel.selected]['someKey']} = access page meta data${wp.rep['WP GlobalThemeConfig']} = REP access${wp.identification[node]} = retrieve node object id${wp.themeList.current.metadata['someKey']} = access theme meta data${wp.ac[node].hasPermission[someRole]} = access permissions

Page 27: IBM Digital Experience Theme Customization
Page 28: IBM Digital Experience Theme Customization

Skins• skins are what is displayed

around a portlet• helpful if you want to mark the

boundaries of a portlet or show additional function in edit mode

Page 29: IBM Digital Experience Theme Customization

Skins

Page 30: IBM Digital Experience Theme Customization

just a bit more padding

manually adding the style to the skin html

Page 31: IBM Digital Experience Theme Customization

Layouts

four new layouts

Page 32: IBM Digital Experience Theme Customization

Layouts

{'url':ibmCfg.themeConfig.themeWebDAVBaseURI+'layout-templates/Bootstrap_1Column/','id':'Bootstrap_1Column','thumbnail':ibmCfg.themeConfig.themeRootURI+'/layout-templates/Bootstrap_1Column/icon.png','titles': [{'value':'Bootstrap: 1 column','lang':'en'}]},

Page 33: IBM Digital Experience Theme Customization

Modules• modules add resources

to page markup – like additional Javascript libraries or CSS• simple modules can

be created using folder structure

• more advanced modules can be created using plugin.xml or JSON

• deferred modules can be loaded dynamically

Page 34: IBM Digital Experience Theme Customization

Profiles• profiles aggregate modules –

everything needed to successfully use a page

Page 35: IBM Digital Experience Theme Customization

ResourcesdigitalExperience

Developer Downloads

https://developer.ibm.com/digexp/downloads/

Web Toolkit for IBM Digital Experience

https://github.com/OpenNTF/WebDevToolkitForDx

IBM Theme Editor for IBM

WebSphere Portal

https://greenhouse.lotus.com/plugins/plugincatalog.nsf/assetDetails.xsp?action=editDocument&documentId=4E6461C014EDEAC785257F20002B035F&cm_mc_uid=64973263975314

642744284&cm_mc_sid_50200000=1464712288&LoginDeveloping Themes for

WebSphere Portal 8.5

https://www-10.lotus.com/ldd/portalwiki.nsf/xpViewCategories.xsp?lookupName=Developing Themes for WebSphere Portal 8.5

Bootstrap http://getbootstrap.com/Bootswatch https://bootswatch.com/

Page 36: IBM Digital Experience Theme Customization

Lab• WP8.5_Lab_Theme_Customization

• Located in community• Creating a custom theme and

changing the page logo • Creating customized page styles • Creating customized page

layouts • Understanding the new theme

optimization framework. This includes the creation of custom profiles and modules.

Page 37: IBM Digital Experience Theme Customization

Thank You

37