09 YACSS Special Content: Landmarks from CORA

  1. Go to the Company Drive and find the HTML files that are generated through the CORA Local Maps reports. The file name should be something similar to the filename below
  1. Copy all the code and paste it in a notepad file
  1. Inside the file, each “<div class=”attractionCard”>” to “</div>” contains the HTML code for one attraction.
  1. We will divide the attractions into 10 per page so there will be at least 10 variations. We will use spintax so that there will be randomization per page.
  1. To start, create 10 new notepad (.txt) files in a folder named CompanyName_LandmarkVariations_MonthYear. Each .txt file should be named CompanyName_LandmarkVariation1_MonthYear, CompanyName_LandmarkVariation2_MonthYear, etc. until you reach the 10th file.
  2. At the end, create one last notepad file and name it CompanyName_LandmarkFINAL_MonthYear. This will come in handy at the end.
  1. Copy the first paragraph of code and then paste it to the start of each of the 10 new notepad files
  1. Do the same for the final two lines of code as well, as per the screenshot below. Paste it into the end of each of the 10 new notepad files.
  1. Your new notepad will look like this. Cut and Paste the code for 10 landmarks / attractions on the space in between. Repeat this step until each of the 10 notepad files will have approximately 10 landmarks each.
  1. Combine the content of all 10 note pads into one big notepad (#11)
  1. Find the line “|” character and remove it in bulk by using the CTRL + H (search and find) feature in the large notepad because it will affect the spintax format if it is left behind
  1. Apply spintax format. Curly bracket “{“ at the start, Bar line “|” in the middle of each variation, and Closing curly bracket “}” in the end
  1. Save this final notepad for future reference.
How was this document?