This project involves the development and implementation of a website using Sitecore. The following steps outline the process undertaken from initial coding to final verification. For detail documentation refer to Sitecore Assessment documentation pdf included in the repository.
The first stage after raw coding the website was to analyze the website and individual components/renderings to determine the base data templates that can be reused across various site components/renderings, as well as the renderings (View/Controller) that will be used in Sitecore.
- Created an Excel file with a list of all the components to be developed.
- Divided the components into individual fields and analyzed them to identify the base data templates for reuse.
With a clear understanding of the overall structure of the website components, I began creating the necessary templates, which included:
- Branch templates (renderings/components)
- Base data templates
- Data templates inheriting from the base data template
- Page templates organized in a structured folder, with standard values assigned to the base and data templates.
- Created base data templates for reuse across various website components/renderings, ensuring appropriate field names and standard values.
- Generated data templates using the appropriate base data templates, field names, and standard values.
- Created the page template for utilization.
The next step was to construct a layout in the layouts folder that is linked with the website's raw code and to add it to the page template.
- Developed a layout and specified the source for it.
- Added the layout to the presentation details of the produced page template.
Created an item inheriting the page base template in the sitecore/content
to construct the assignment item and examine the raw HTML/CSS/JavaScript functionality of the site, confirming that the layout is working properly.
Established a folder and inherited the branch template to create the appropriate data templates corresponding to the components folder.
Inherited the necessary data templates and populated them with the required data and data sources.
After completing the data sources, the raw HTML/CSS was separated into renderings, and the appropriate placeholders were added to the main code.
- Created View/Controller renderings by attaching the various views, assigning the corresponding raw HTML/CSS, and modifying the main website HTML to include the required placeholders.
- Added the renderings to the main content tree site item along with the previously created data sources and verified that the site is functioning correctly with the renderings.
Replaced the raw HTML/CSS/JavaScript data with the applicable Sitecore fields from the data source, applying the necessary logic based on the renderings utilized.
The final step was to confirm that the website was functioning correctly after replacing the static content with dynamic content from Sitecore, making any necessary adjustments as needed.