0% found this document useful (0 votes)
36 views4 pages

Developer Certification Preparation Guide From Topic Wise

Uploaded by

ManuHiremattBS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views4 pages

Developer Certification Preparation Guide From Topic Wise

Uploaded by

ManuHiremattBS
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Developer Certification Preparation Guide from topic wise:

1. Page Designer:

 Pages are set up in a hierarchal structure:

- Pages:

 The outermost container of the structured content


 Contain regions
 Constrained by customer groups and/or data range.
- Regions:
 Allow for a hierarchal structuring of contain components
 It contain components
- Components:
 Have attributes that specific the actual content
 Constrained by customer group and/or data range.
 Can also be layouts: contain regions that contain other
components?

Pages:

 Developers can create promo page, content page and category


landing page.
 Creating a component type definition with the json file.
 Creating a component type rendering with script is .js files

Questions:

1. What methods must the rendering script have? – Components scripts js


have.
- return new
Template(‘experience/components/commerce_assets/product/
productTile’).render(model).txt
2. In the ISML Template, How do you access the model passed from the
script file?
- Using pdict or model
3. Can the component content be localized by the merchant?
- Yes
4. Can the component be used on another site?
- Yes
5. Why are we creating metadata file? – eliminate (for building blocks
or skeleton)

6. Homepage is getting designed through content assets. Now client


change the requirement to page designer. But with a condition that
if page is found through page designer then call it through page
designer otherwise call it from content assets. In which controller we
have to change the logic?
a. Server.append(‘Home-Show’, cid, ‘homepage’) - correct
b. Server.replace(‘Home-Show’, cid,’homepage’)
c. Server.append(‘Page-Show’,cid, ‘homepage’)
d. Server.replace(‘Page-Show’,cid,’homepage’)

7. How are we rendering template in page designer?

8. Client wants to add some components in page designer and they do


not need some components?
a. layout_exclusive

b. layout_inclusive

c. component_type_exclusions
d. compoenent_inclusive

9. True or false: If you don't pay attention to compatibility mode, it could impair your
application's functionality when B2C Commerce automatically updates. – True
10. Which of these are steps you must take to configure your development
environment to create Page Designer reusable elements?
i. Check the compatibility mode
j. Download the catridges from github
11. 1Which of these are true about Page Designer page and component type
ID?
12. True or false: It's a best practice that when developing new Page Designer
elements and then replicating them to a production instance, to restart the server
- No or switch between the code versions

Don’t use dw.template.ISML because it doesn't return a string, and it writes the
markup to the response stream right away.

 context.page: Currently rendered page


 context.renderParameters: Parameters passed
to PageMgr.renderPage(pageID, parameters)
 context.content: Attributes set in the custom logic (not defined by the merchant)
 A page type’s render function creates the page’s HTML markup
 Typically, that means that it calls an ISML template that
uses PageMgr.renderRegion() to render each region of the page.
 <isprint value="$
{PageMgr.renderRegion( pdict.page.getRegion('header') )}"
encoding="off"/>

Will look up demo:

 Topsellertile.json
 Topsellertile.js
 Topsellertile.isml
 Topsellertile.properties.

You might also like