Advertisement
Guest User

Untitled

a guest
Sep 17th, 2014
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.68 KB | None | 0 0
  1. # ---
  2. # Import editorial content for athletes, events, sports and teams from CSV files. Data can be viewed in HMC under "Asics content".
  3. # ---
  4.  
  5. $contentCatalog=aebContentCatalog
  6. $contentCatalogVersion=catalogVersion(CatalogVersion.catalog(Catalog.id[default=$contentCatalog]),CatalogVersion.version[default=Staged])[default=$contentCatalog:Staged]
  7.  
  8. $productCatalog=aebProductCatalog
  9. $productCatalogName=Asics UK Product Catalog
  10. $productCV=catalogVersion(catalog(id[default=$productCatalog]),version[default='Staged'])[unique=true,default=$productCatalog:Staged]
  11. $siteResource=jar:com.asics.aeb.initialdata.constants.AsicsInitialDataAebConstants&/AsicsInitialDataAeb/core/import/aeb/contentCatalogs
  12. $jarResourceCms=jar:com.asics.aeb.initialdata.constants.AsicsInitialDataAebConstants&/AsicsInitialDataAeb/core/import/aeb/cockpits/cmscockpit
  13. $jarImageResourceAsicsCore=jar:com.asics.aeb.initialdata.setup.InitialDataAebSystemSetup&/AsicsInitialDataAeb/core/import/aeb/contentCatalogs/images
  14.  
  15. $lang=en
  16.  
  17.  
  18.  
  19. # ################## Friends, Articles and Stories listing page components ################### #
  20. INSERT_UPDATE CMSParagraphComponent;$contentCatalogVersion[unique=true];uid[unique=true];name;&componentRef;
  21. ;;header-listPage;headerContent;header-listPage
  22.  
  23. INSERT_UPDATE CMSEditorialContentParagraphComponent;$contentCatalogVersion[unique=true];uid[unique=true];name;;contentType(code);&componentRef;
  24. ;;featuredComponent-listPage;Featured CMSEditorialContentParagraphComponent;featuredContent;FEATURED;featuredComponent-listPage
  25. ;;friendsComponent-listPage;Friends CMSEditorialContentParagraphComponent;friendContent;FRIENDS;friendsComponent-listPage
  26. ;;storiesComponent-listPage;Stories CMSEditorialContentParagraphComponent;storiesContent;STORIES;storiesComponent-listPage
  27. ;;eventsComponent-listPage;Events CMSEditorialContentParagraphComponent;eventsContent;EVENTS;eventsComponent-listPage
  28.  
  29. UPDATE ContentSlot;$contentCatalogVersion[unique=true];uid[unique=true];cmsComponents(uid,$contentCatalogVersion);
  30. ;;FriendsStoriesEventsSlot-listPage;featuredComponent-listPage,friendsComponent-listPage,storiesComponent-listPage,eventsComponent-listPage
  31. ;;EditorialContentHeaderSlot-listPage;header-listPage
  32.  
  33. # CMS Editorial Details Page Components
  34.  
  35. # CMS Editorial paragraph Component
  36. INSERT_UPDATE CMSEditorialHeaderParagraphComponent;$contentCatalogVersion[unique=true];uid[unique=true];name;headline[lang=$lang];subHeadline[lang=$lang];authorName[lang=$lang];photographerName[lang=$lang];date;&componentRef
  37. ;;editorialFriend1-header-detailsPage;Editorial Header paragraph component;johanna TIENSUU STÅLNACKE;Climbing instructor and free skier;Anna Hansson;Hans Johansson;2014-07-21;editorialFriend1-header-detailsPage
  38. ;;editorialStory1-header-detailsPage;Editorial Header paragraph component;hiking THE HIMALAYAS;A journey through the kingdom of snow;Edina Samson;Jason Ackerman;2014-08-15;editorialStory1-header-detailsPage
  39. ;;editorialEvent1-header-detailsPage;Editorial Header paragraph component;"HAGLÖFS OPEN 5";"5 Hours of running and mountain biking in some of the best scenery Britain has to offer.";;;;editorialEvent1-header-detailsPage
  40.  
  41. INSERT_UPDATE CMSEditorialTextParagraphComponent;$contentCatalogVersion[unique=true];uid[unique=true];name;headline[lang=$lang];preamble[lang=$lang];content[lang=$lang];&componentRef
  42. ;;editorialFriend1-text1-detailsPage; Editorial Text paragraph component;johanna HAS ALWAYS LOVED THE MOUNTAINS;"It began when she was four years old, in her local slopes around Kiruna in the very north of Sweden, then continued in Riksgränsen and the Alps. At 16 she discovered mountaineering and climbing, which was to replace ten years of gymnastics. Climbing came naturally to her. She was already strong and enjoyed steep slopes.";"At 153 centimetres above sea level, she can hardly boast about her reach, but she has turned it into a challenge to find alternative routes up the mountain side. She uses technique and cunning, teaching the body to use small handholds and making heelhook moves and dynos to compensate for her height. This has only served to reinforce her fascination for the experience of climbing as a lifestyle. Not losing focus and keeping her wits about her at all times, in all situations, irrespective of position, weather or exposure; all this, as well as taking good care of herself and her friends in the mountains, is what has made climbing so very rewarding.";editorialFriend1-text1-detailsPage
  43. ;;editorialFriend1-text2-detailsPage; Editorial Text paragraph component;;;"Skiing is her second passion. In winter the skis come out, and the climbing skins and crampons give her full access to the alpine environment and its range of adventures. In short: She likes to climb up and ski down. That is the way she wants it to be, forever.";editorialFriend1-text2-detailsPage
  44. ;;editorialStory1-text1-detailsPage; Editorial Text paragraph component;it all STARTS WITH AN IDEA;"Born and raised in Shanghai, Shen Wei is a fine art photographer currently based in New York City. Before going to the States, he’s never even held a camera. But once he did, he never stopped. He was inspired by the medium and began exploring the power of photography. As he founded his new calling, Wei went back to China and captured moments that showed traces of the country he remembered.";"The collection shows cities like Chengdu, Guilin, and Wuhan, where it’s still developing. He chose these cities because it reminded him a lot about the old things, to which he grew up with.";editorialStory1-text1-detailsPage
  45. ;;editorialStory1-text2-detailsPage; Editorial Text paragraph component;;;"<p>Born and raised in Shanghai, Shen Wei is a fine art photographer currently based in New York City. Before going to the States, he’s never even held a camera. But once he did, he never stopped. He was inspired by the medium and began exploring the power of photography. As he founded his new calling, Wei went back to China and captured moments that showed traces of the country he remembered.</p><p>The collection shows cities like Chengdu, Guilin, and Wuhan, where it’s still developing. He chose these cities because it reminded him a lot about the old things, to which he grew up with.</p>";editorialStory1-text2-detailsPage
  46. ;;editorialEvent1-text1-detailsPage; Editorial Text paragraph component;"5 Hours of running and mountain biking";"Concept - You will have 5 hours to visit as many checkpoints (controls) as you can. Some can only be collected by mountain bike others by foot.";"There are 7 events, each event is on the first Sunday of every month from October through to April.There are 7 events, each event is on the first Sunday of every month from October through to April.There are 7 events, each event is on the first Sunday of every month from October through to April.There are 7 events, each event is on the first Sunday of every month from October through to April.";editorialEvent1-text1-detailsPage
  47. ;;editorialEvent1-text2-detailsPage; Editorial Text paragraph component;;;"<p>The 2013/14 Open 5 series kicks off in the picturesque Victorian spa town of Ilkley in West Yorkshire. - See more at: http://www.openadventure.com/open5/2013-14/ilkley-october.php#sthash.VURt6HEY.dpuf</p><p>This is the first time Open Adventure has visited this corner of the Yorkshire Dales and veteran Open5 competitor Sue Booth is hoping to show you the delights that Ilkely and the surrounding hills have to offer. - See more at: http://www.openadventure.com/open5/2013-14/ilkley-october.php#sthash.VURt6HEY.dpuf</p><p>Lying on the River Wharfe in Wharfedale, on the edge of the Yorkshire Dales, Ilkley is the official starting point of the Dales Way. Famous for Betty's Tea Rooms, the Cow and Calf rocks and the beautiful Ilkley Moor - the subject of the notorious Yorkshire anthem ""On Ilkla Moor Baht 'at"". - See more at: http://www.openadventure.com/open5/2013-14/ilkley-october.php#sthash.VURt6HEY.dpuf</p>";editorialEvent1-text2-detailsPage
  48.  
  49.  
  50.  
  51. INSERT_UPDATE CMSEditorialMediaComponent;$contentCatalogVersion[unique=true];uid[unique=true];name;visible;width(code)[default='TWELVECOLUMN'];videoUrl;thumbnailImage(code,$contentCatalogVersion);enlargedImage(code,$contentCatalogVersion);
  52. ;;editorial-media-1;editorial-media-1;true;TWELVECOLUMN;www.youtube.com;editorial-slider-media-1;editorial-slider-large-media-1
  53. ;;editorial-media-2;editorial-media-2;true;TWELVECOLUMN;www.youtube.com;editorial-slider-media-2;editorial-slider-large-media-2
  54.  
  55. INSERT_UPDATE CMSEditorialMediaSliderContainer;$contentCatalogVersion[unique=true];uid[unique=true];name;simpleCMSComponents(uid, $contentCatalogVersion);&componentRef
  56. ;;editorial-slider-container-1;editorial-slider-container-1;editorial-media-1,editorial-media-2;editorial-slider-container-1
  57.  
  58.  
  59. INSERT_UPDATE CMSArticleMediaComponent;$contentCatalogVersion[unique=true];uid[unique=true];name;visible;width(code);videoUrl;thumbnailImage(code,$contentCatalogVersion);enlargedImage(code,$contentCatalogVersion)
  60. ;;article-media-1;article-media-1;true;TWELVECOLUMN;www.youtube.com;article-slider-media-1;article-slider-large-media-1
  61. ;;article-media-2;article-media-2;true;TWELVECOLUMN;www.youtube.com;article-slider-media-2;article-slider-large-media-2
  62.  
  63. INSERT_UPDATE CMSArticleMediaSliderContainer;$contentCatalogVersion[unique=true];uid[unique=true];name;simpleCMSComponents(uid, $contentCatalogVersion);&componentRef
  64. ;;article-slider-container-1;article-slider-container-1;article-media-1,article-media-2;article-slider-container-1
  65.  
  66.  
  67.  
  68.  
  69. INSERT_UPDATE HaglofsFriendPage;uid[unique=true];name;title;$contentCatalogVersion[unique=true];masterTemplate(uid,$contentCatalogVersion)[default='FriendPageTemplate'];defaultPage[default=false];approvalStatus(code)[default='approved']
  70. ;arminNeurauterHaglofsFriendPage;Friend Page Armin Neurauter;Armin Neuraute
  71. ;jorgenAamotHaglofsFriendPage;Friend Page Jorgen Aamot;Jorgen Aamot
  72. ;lottenRappHaglofsFriendPage;Friend Page Lotten Rapp;Lotten Rapp
  73. ;marcusHellnerHaglofsFriendPage;Friend Page Marcus Hellner;Marcus Hellner
  74. ;saidBelhajHaglofsFriendPage;Friend Page Said Belhaj;Said Belhaj
  75.  
  76. INSERT_UPDATE CMSHaglofsFriendRestriction;uid[unique=true];friends(code);pages(uid,$contentCatalogVersion);$contentCatalogVersion[unique=true]
  77. ;arminNeurauterCMSHaglofsFriendRestriction;armin-neurauter;arminNeurauterHaglofsFriendPage
  78. ;jorgenAamotCMSHaglofsFriendRestriction;jorgen-aamot;jorgenAamotHaglofsFriendPage
  79. ;lottenRappCMSHaglofsFriendRestriction;lotten-rapp;lottenRappHaglofsFriendPage
  80. ;marcusHellnerCMSHaglofsFriendRestriction;marcus-hellner;marcusHellnerHaglofsFriendPage
  81. ;saidBelhajCMSHaglofsFriendRestriction;said-belhaj;saidBelhajHaglofsFriendPage
  82.  
  83. # Create ContentSlots for Friend Page
  84. INSERT_UPDATE ContentSlot;$contentCatalogVersion[unique=true];uid[unique=true];name;active;cmsComponents(uid,$contentCatalogVersion);
  85. ;;HeadArticleContentSlot-arminNeurauterHaglofsFriendPage;Default HeadArticleContent for Friend Page Armin Neurauter;true;editorialFriend1-header-detailsPage
  86. ;;TextArticleContentSlot-arminNeurauterHaglofsFriendPage; Default TextArticle Content Slot for Friend Page Armin Neurauter;true;editorialFriend1-text1-detailsPage,editorial-slider-container-1,editorialFriend1-text2-detailsPage
  87. ;;GridSliderContentSlot-arminNeurauterHaglofsFriendPage; Default GridSlider Content Slot for Friend Page Armin Neurauter;true;
  88. ;;FeaturedVerticleContentSlot-arminNeurauterHaglofsFriendPage; Default Featured Verticle Content Slot for Friend Page Armin Neurauter;true;
  89. ;;OtherFriendsContentSlot-arminNeurauterHaglofsFriendPage; Default Other Friends Content Slot for Friend Page Armin Neurauter;true;
  90.  
  91. # ContentSlotForPage for Friend Page
  92. INSERT_UPDATE ContentSlotForPage;$contentCatalogVersion[unique=true];uid[unique=true];position[unique=true];page(uid,$contentCatalogVersion)[unique=true];contentSlot(uid,$contentCatalogVersion)[unique=true]
  93. ;;HeadArticleContent-FriendPage;HeadArticleContent;arminNeurauterHaglofsFriendPage;HeadArticleContentSlot-arminNeurauterHaglofsFriendPage
  94. ;;TextArticleContentSlot-FriendPage;TextArticleContent;arminNeurauterHaglofsFriendPage;TextArticleContentSlot-arminNeurauterHaglofsFriendPage
  95. ;;GridSliderContentSlot-FriendPage;GridSliderContent;arminNeurauterHaglofsFriendPage;GridSliderContentSlot-arminNeurauterHaglofsFriendPage
  96. ;;FeaturedVerticleContentSlot-FriendPage;FeaturedVerticleContent;arminNeurauterHaglofsFriendPage;FeaturedVerticleContentSlot-arminNeurauterHaglofsFriendPage
  97. ;;OtherFriendsContentSlot-FriendPage;OtherFriendsContent;arminNeurauterHaglofsFriendPage;OtherFriendsContentSlot-arminNeurauterHaglofsFriendPage
  98.  
  99.  
  100. INSERT_UPDATE HaglofsStoryPage;uid[unique=true];name;title;$contentCatalogVersion[unique=true];masterTemplate(uid,$contentCatalogVersion)[default='StoryPageTemplate'];defaultPage[default=false];approvalStatus(code)[default='approved']
  101. ;sleepingBagConceptHaglofsStoryPage;Story Page Developing our new sleeping bag concept;Developing our new sleeping bag concept
  102. ;experienceWhyLessIsMoreHaglofsStoryPage;Story Page Experience why Less Is More;Experience why Less Is More
  103. ;springSkiingInSvalbardHaglofsStoryPage;Story Page Spring Skiing In Svalbard;Spring Skiing In Svalbard
  104. ;takeALookAtOurWorkshopHaglofsStoryPage;Story Page Take a look at our workshop;Take a look at our workshop
  105. ;updatedVojdAbsBackpackHaglofsStoryPage;Story Page Updated vojd abs backpack for the winter 2015;Updated vojd abs backpack for the winter 2015
  106.  
  107. INSERT_UPDATE CMSHaglofsStoryRestriction;uid[unique=true];stories(code);pages(uid,$contentCatalogVersion);$contentCatalogVersion[unique=true]
  108. ;sleepingBagRestriction;developing-our-new-sleeping-bag-concept;sleepingBagConceptHaglofsStoryPage
  109. ;experienceWhyLessIsMoreRestriction;experience-why-less-is-more;experienceWhyLessIsMoreHaglofsStoryPage
  110. ;springSkiingInSvalbardRestriction;spring-skiing-in-svalbard;springSkiingInSvalbardHaglofsStoryPage
  111. ;takeALookAtOurWorkshopRestriction;take-a-look-at-our-workshop;takeALookAtOurWorkshopHaglofsStoryPage
  112. ;updatedVojdAbsBackpackRestriction;updated-vojd-abs-backpack-for-the-winter-2015;updatedVojdAbsBackpackHaglofsStoryPage
  113.  
  114. # Create ContentSlots for Story Page
  115. INSERT_UPDATE ContentSlot;$contentCatalogVersion[unique=true];uid[unique=true];name;active;cmsComponents(uid,$contentCatalogVersion);
  116. ;;HeadArticleContentSlot-sleepingBagConceptHaglofsStoryPage;Default HeadArticleContent for Story Page sleepingBagConcept;true;editorialStory1-header-detailsPage
  117. ;;TextArticleContentSlot-sleepingBagConceptHaglofsStoryPage; Default TextArticle Content Slot for Story Page sleepingBagConcept;true;editorialStory1-text1-detailsPage,editorial-slider-container-1,editorialStory1-text2-detailsPage
  118. ;;GridSliderContentSlot-sleepingBagConceptHaglofsStoryPage; Default GridSlider Content Slot for Story Page sleepingBagConcept;true;
  119. ;;FeaturedContentSlot-sleepingBagConceptHaglofsStoryPage; Default Featured Content Slot for Story Page sleepingBagConcept;true;
  120. ;;OtherArticlesVerticleContentSlot-sleepingBagConceptHaglofsStoryPage; Default Other Articles Verticle Content Slot for Story Page sleepingBagConcept;true;
  121.  
  122. # ContentSlotForPage for Story Page
  123. INSERT_UPDATE ContentSlotForPage;$contentCatalogVersion[unique=true];uid[unique=true];position[unique=true];page(uid,$contentCatalogVersion)[unique=true];contentSlot(uid,$contentCatalogVersion)[unique=true]
  124. ;;HeadArticleContent-StoryPage;HeadArticleContent;sleepingBagConceptHaglofsStoryPage;HeadArticleContentSlot-sleepingBagConceptHaglofsStoryPage
  125. ;;TextArticleContentSlot-StoryPage;TextArticleContent;sleepingBagConceptHaglofsStoryPage;TextArticleContentSlot-sleepingBagConceptHaglofsStoryPage
  126. ;;GridSliderContentSlot-StoryPage;GridSliderContent;sleepingBagConceptHaglofsStoryPage;GridSliderContentSlot-sleepingBagConceptHaglofsStoryPage
  127. ;;FeaturedContentSlot-StoryPage;FeaturedContent;sleepingBagConceptHaglofsStoryPage;FeaturedContentSlot-sleepingBagConceptHaglofsStoryPage
  128. ;;OtherArticlesVerticleContentSlot-StoryPage;OtherArticlesVerticleContent;sleepingBagConceptHaglofsStoryPage;OtherArticlesVerticleContentSlot-sleepingBagConceptHaglofsStoryPage
  129.  
  130. INSERT_UPDATE HaglofsEventPage;uid[unique=true];name;title;$contentCatalogVersion[unique=true];masterTemplate(uid,$contentCatalogVersion)[default='HaglofsEventPageTemplate'];defaultPage[default=false];approvalStatus(code)[default='approved']
  131. ;haglofsArticWeekendEventPage;Event Page Haglofs Arctic Weekend;Haglofs Arctic Weekend
  132. ;mountainMarathonEventPage;Event Page Haglofs Highlander Mountain Marathon;Haglofs Highlander Mountain Marathon
  133. ;halofsOpen5EventPage;Event Page lotten;lotten
  134. ;joinUsAtRiksgrnsenEventPage;Event Page Join us at Riksgrnsen;Join us at Riksgrnsen
  135. ;theStrathpufferEventPage;Event Page The Strathpuffer;The Strathpuffer
  136.  
  137. INSERT_UPDATE CMSHaglofsEventRestriction;uid[unique=true];events(code);pages(uid,$contentCatalogVersion);$contentCatalogVersion[unique=true]
  138. ;haglofsArticWeekendEventRestriction;haglofs-artic-weekend;haglofsArticWeekendEventPage
  139. ;mountainMarathonEventRestriction;haglofs-highlander-mountain-marathon;mountainMarathonEventPage
  140. ;halofsOpen5EventRestriction;halofs-open-5;halofsOpen5EventPage
  141. ;joinUsAtRiksgrnsenEventRestriction;join-us-at-riksgrnsen;joinUsAtRiksgrnsenEventPage
  142. ;theStrathpufferEventRestriction;the-strathpuffer;theStrathpufferEventPage
  143.  
  144. # Create ContentSlots for Event Page
  145. INSERT_UPDATE ContentSlot;$contentCatalogVersion[unique=true];uid[unique=true];name;active;cmsComponents(uid,$contentCatalogVersion);
  146. ;;HeadArticleContentSlot-halofsOpen5EventPage;Default HeadArticleContent for Event Page halofsOpen5;true;editorialEvent1-header-detailsPage
  147. ;;TextArticleContentSlot-halofsOpen5EventPage; Default TextArticle Content Slot for Event Page halofsOpen5;true;editorialEvent1-text1-detailsPage,editorial-slider-container-1,editorialEvent1-text2-detailsPage
  148. ;;GridSliderContentSlot-halofsOpen5EventPage; Default GridSlider Content Slot for Event Page halofsOpen5;true;
  149. ;;FeaturedContentSlot-halofsOpen5EventPage; Default Featured Content Slot for Event Page halofsOpen5;true;
  150. ;;OtherEventsVerticleContentSlot-halofsOpen5EventPage; Default Other Events Verticle Content Slot for Event Page halofsOpen5;true;
  151.  
  152. # ContentSlotForPage for Event Page
  153. INSERT_UPDATE ContentSlotForPage;$contentCatalogVersion[unique=true];uid[unique=true];position[unique=true];page(uid,$contentCatalogVersion)[unique=true];contentSlot(uid,$contentCatalogVersion)[unique=true]
  154. ;;HeadArticleContent-EventPage;HeadArticleContent;halofsOpen5EventPage;HeadArticleContentSlot-halofsOpen5EventPage
  155. ;;TextArticleContentSlot-EventPage;TextArticleContent;halofsOpen5EventPage;TextArticleContentSlot-halofsOpen5EventPage
  156. ;;GridSliderContentSlot-EventPage;GridSliderContent;halofsOpen5EventPage;GridSliderContentSlot-halofsOpen5EventPage
  157. ;;FeaturedContentSlot-EventPage;FeaturedContent;halofsOpen5EventPage;FeaturedContentSlot-halofsOpen5EventPage
  158. ;;OtherEventsVerticleContentSlot-EventPage;OtherEventsVerticleContent;halofsOpen5EventPage;OtherEventsVerticleContentSlot-halofsOpen5EventPage
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement