i need code for creating pages templates tags by reading from excel
please help me with code and clear explanation
excell should be like this
Solved! Go to Solution.
Views
Replies
Total Likes
I don't think, so anybody is going to share there internal project code or if they have the same requirements.
You can get the code from github for the above features that I have shared for reference.
Please check https://adobe-consulting-services.github.io/acs-aem-commons/features/mcp-tools/data-importer/index.h...
Thanks for the reply .
but i want the code
creating pages with diff differnt templats , and tags by reading the excel
I don't think, so anybody is going to share there internal project code or if they have the same requirements.
You can get the code from github for the above features that I have shared for reference.
You can use the below create the logic using the APIs available for reading the excel.
one of the way is to use read the excel file using these, where you get the value of the each cell
org.apache.poi.ss.usermodel.Cell;
org.apache.poi.ss.usermodel.Row;
org.apache.poi.ss.usermodel.Sheet;
org.apache.poi.ss.usermodel.Workbook;
org.apache.poi.ss.usermodel.WorkbookFactory;
once you get each cell value you can leverage it and pass to the PageManager method
pageManager.create(<complete-path>,<page-name>,<template-name> StringUtils.EMPTY);
Hope this helps!
Thanks
Views
Replies
Total Likes
Views
Likes
Replies