Question - How to add a component on site from theme?
Answer -
To explain the process, in the steps below we will use themecleanflex as a source site and mynewsite as target site to be deployed.
So, we will copy the mycompo component of themecleanflex to mynewsite site.
Question - How to add a component on site from theme?
Answer -
To explain the process, in the steps below we will use
themecleanflex
as a source site andmynewsite
as target site to be deployed. So, we will copy themycompo
component ofthemecleanflex
tomynewsite
site.Open the site tree on ‘Browser’ http://localhost:8080/bin/browser.html
Copy the required component node from the source site
(themecleanflex)
jcr:root > apps > themecleanflex > components > mycompoGo to jcr:root > etc > felibs > mynewsite > mapping.js http://localhost:8080/bin/browser.html/etc/felibs/mynewsite/mapping%2Ejs
Open mapping.js and make the following entry for newly copied component
var cmpMynewsiteComponentsMycompo = cmpThemecleanflexComponentsMycompo
Note: This process is also supported by API, we will discuss it is separate documentation.