Duplicate vs Copying: What's the Difference? - Perficient Blogs

文章推薦指數: 80 %
投票人數:10人

Duplicate or Copying? Which one should I use? · Duplicate creates a copy of an item in the same location as the original. · Copying (or “Copy To”) ... Sitecore DuplicatevsCopying:What’stheDifference?byJimPetilloonApril3rd,2019|~3minuteread I’mgoingtotackleanothercommonSitecoreAuthortrainingquestionregardingtheduplicateandcopyingcommandsinSitecore.Manynewauthorshaveusedthesefeaturestryingtosavesometime,onlytobeconfusedwhentheirpagesdon’tseemtoworkinthewaytheythought. Inthispost,I’llexplainwhythisfeaturecansometimestripauthorsupandhowtoadjustcopieditemsinSitecorewhencopiesgobad. DuplicateorCopying?WhichoneshouldIuse? I’veheardmanyauthorsguessastowhatthedifferenceisbetweenDuplicateandCopying,andthetruthisthey’refunctionallythesamewithonetinydifference: Duplicatecreatesacopyofaniteminthesamelocationastheoriginal. Copying(or“CopyTo”)createsacopyofaniteminadifferentlocationthatyouspecify. UnderstandingDevelopmentApproaches:ASitecoreOutlookDesigning,building,andimplementingtop-notchexperiencesnotonlyrequiresagreatdealofplanning,strategy,andtime–italsorequirestherightdigitalexperienceplatform(DXP)andtherightdevelopmentapproachforyourbusinessneeds.GettheGuide CopyingessentiallycombinesDuplicateandMoveintoasinglestep.Insomecases,thiswillbeahugetimesaverthatletsyoucreateapage,customizeitslayoutwithcomponents,andthenmakecopies.Soallyou’llneedtodoiseditafewlocalItemsunderneathyourcopytogetanewpage,withnewcontent,inthesamelayoutastheoriginal. Whencopyinggoesbad… BecauseSitecoreisacustomizableframework,thewaycertainfeaturesoperatecanchangebasedonhowyourinstanceofSitecoreisconfigured.Insomeconfigurations,aCopyofapagewillmaintaintherelationshipswiththe“local”pagecontentsoftheoriginalinsteadofupdatingthemtousethe“local”pagecontentsofthecopy. Ifthisiswhathappenswhenyoucreateacopyofapage,youwillneedtoopenthepageintheExperienceEditorandrepointeachcomponent. Selectthecomponent,clickthedatacheckicon,thenchoose“Changeassociatedcontent”.Awindowwillopen. Selectthecorrect“local”component,thenclickOK. Sitecorewillupdatethepagetousetheitemthatwascopiedinsteadoftheoriginal.Besuretosaveyourpagetopreserveyourchanges. Toduplicateornottoduplicate… Ultimately,whetherornotyoucansavetimeusingtheDuplicatefeatureonfullpagesdependsonhowmanycomponentsoritemsyouwillneedtorepoint,andhowlongitwilltaketorepointthem.Forlargepages,itmaynotbeworththeeffort.IwouldconsiderusingDuplicateonindividualitems,likecomponents,whererelationshipsarenotascomplex. Stayintheloopformoreblogpostswrittenspecificallyforcontentauthorsandmarketingteams.Clickthe“SignUp”buttontosubscribetoourweeklyblogdigest! TagsauthoringAuthoringFeaturesSitecoreCommands LeaveaReply Cancelreply ThissiteusesAkismettoreducespam.Learnhowyourcommentdataisprocessed. ←PREVIOUSPOST NEXTPOST→ JimPetillo,TechnicalConsultant MorefromthisAuthor SubscribetotheWeekly Blog Digest: SignUpCategories Sitecore FollowUs



請為這篇文章評分?