Homesite Procedure

Add New page in ETT Homesite

Shri Ram S
Last edited 336 days ago by Shri Ram S
The requirement docs will be given from Digital marketing team for the task
For Example: We need to create a new page for efile2290tax and the URL is https://www.expresstrucktax.com/hvut/efile2290tax/
Navigate to the homesite project Views → en-us → form 2290 ( as the requirement is related to 2290) → duplicate the file related to 2290 in the same folder as efile2290tax.
image.png
Repeat the same procedure for AMP Views → en-us → AMP → form 2290 ( as the requirement is related to 2290) → duplicate the file related to 2290 in the same folder efile2290tax.
image.png
Navigate to the form2290controller (control name will be same as folder) “ETT.Homesite → Controllers → form2290Controller.cs
image.png
Need to add route and folder for the file tax
image.png
To trigger AMP in mobile we need to add amp file in ViewEngine “ETT.Homesite → ViewEngine →LocalizedRazorViewEngine.cs” find the the command “CheckIsAMPPage”
image.png
Inside “CheckIsAmp” command add a line to trigger the amp in mobile view (Applicable only for AMP pages)
image.png
Clean and rebuild the project
image.png
Once the clean and rebuild is successful
image.png
Run the URL in the browser with the respective URL
image.png
Also need to ensure that the AMP html is loaded when site is runned in mobile view and its should have a ⚡ in the HTML tag. Inspect to the developer tools and change responsive to any of the phones that is less than 767px
image.png
We can proceed with changes given for new page design.

Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
CtrlP
) instead.