sajagkarki / MorePractice

0 stars 0 forks source link

Sitecore 10 certification #31

Open sajagkarki opened 1 week ago

sajagkarki commented 1 week ago

11/23

Sitecore Expereince Paltform UI structure

Marketing applications: For mareketing and analytics people(No need to write code for this section)

Content Editing(Mostly used by content authors and developers) 80% time you will spent here Content Editor- To reflect backend changes you need to publish. Need to hit publish. Home- Right click insert, sample item you can add welcome page etc. Rich Text Editor-There is HTML and Design page HTML-This is descriptionforWelcomePage. Design-This is description(italized and bold) for Welcome(Bold) Page.

Ribbon or menu- formating is same as word or office Left side- Content tree Lots of different branches or items. With every items you will get quick info, common property like GUID, Item path, template Right side- Content editor

You can add in homepage add page

Control panel (For administrator and developer) Control backend activity of sitecore. Upgrade Center- For upgrade process old to new version of sitecore. Desktop- Same desktop like operating system. You will get desktop inside sitecore.

Access Management(Administrator and developers) Create users, role put user inside role.

Question- Does expereince analysis use google scripts. No it is separate from google analystics. Sitecore has its own analytics.

11/24 Content Editor Template -sample item You can add more data type for example multi line text. for address)

Media library- You can upload images Forms- Contact us or feedback form System- Add languages, workflow. Rarely go there

Templates, layouts and content(The most important) Templates is where schemas are created. (Create different fields table name, fields) Content Steve,Ravin,Sachin names of employees To see those records you need HTML, format, color , font mechanism Layout is for HTML.

11/25 Blog Article Section(with datatype) BlogId- Single line Text Title- Sigle Line Text Description- Rich text Author- Single Line text PostedDate- Date BlogImage- Image -Right Click Media Library, insert , Media folder name it Airtel(Best practices) -Right click on Airtel, insert , upload file(s) including pdfs.(Image is also an item) Red strip or red icon, items that are important. If not you can skip but best practice is to put it. All data will be stored in sql database.

Display Name-you can put any name including special charaters.

Copy to- paste location of any file in the tree. Move to- LIke cut and paste Good practice- Assign the icons provide the icons. Click on icon and it will be assigned. To change all icons- Go to Article template and click on template. Select icon. You can overwrite template icon.

Surendra instructor We are making only one project ? How to create multiple website?

Images pdf, is there any restrictions in size? Even you can upload videos.

Can you go to the launchpad. My client is not using Marketing application How to hide it?

Automated process to insert record

empid=> employee Identification Number createdTimeStamp => GetDate() LastUpdateTimestap Exam and interview questions What do you mean by standard value (Best practice in development) Create standard value inside Article -Always child of template item -Always starts from __ two underscores

Create layout page HTML Layout right click create folder Airtel. Add for most project MVC Layout(Master Layout) JSS Layout(Angular/React) One project one layout. Master layout Exam question- Everything in sitecore is Item. Row, Record,Template.

Which one is valid token?

HTML you can write a file and create a path.

By default it will create xptensc.dev.local inside this Most important file is App_COnfig Inbuilt config files no need to touch it. Keep dlls here Views- MVC views inside this folder.

Best practice : Always take backup of the following(First thing when you install sitecore) App_COnfig Bin Views Glova.asax Web.config

Views Airtel folder MasterLayout.cshtml(Privide relative path not the absolute path) Sitecore has forward slash /Views/Airtel/MasterLayout.cshtml

Exam question How to map Sitecore item with Physical MVC cshtml file? "Path" field

11/28 Older version , create files in this MVC we don't that option. Open cshtml file

Hello from Layout Fiile.

Go to presentation layout Select your layout , Airtel, Maste layout and save.

How an you access it from your UI? Till home it is always pointed in path

11/30

==========


This is my Header Component

=============


@Html.Sitecore.Field("title")

@HTML.Sitecore.field("BlogId")

================= This is my Footer Component

==================


Client always has wierd requirement Try to divide this code into different components. Renderings- Used for controling compoents. Always create components. Insert View rendering. Specify path master layout file Header.cshtml Create footer and article body rendering(You can create duplicate and change name) Cut paste header and footer component and body. Placeholders Like container, where you can add your components(different control) @Html.Sitecore().Placeholder("some_thing")
@Html.Sitecore.Sitecore()
Corona - Presenattion - control Edit Apply header component- Ph main Article and body same things select pHmain container. Save and publish Now when you create item , all controls will be applied. you can remove header if client has that requirement Order shows accordingly move up or down. You can add multiple footer or headher and body. ========================== Exam question how to print title field value on browser? @Html.Sitecore().Field("title") ================= If you deleted item how to recover it? Recyclebin Select file and restore Placeholder question Component , within this component file can you have more than one placeholder in header. Share ppt from onedrive.