Show Menu
Cheatography

YappaBundles Cheat Sheet by

YappaBundles Cheat sheet

PageParts (Twig)

pageParts = getpag­epa­rts­(page, 'conte­xt_­main')
Get PageParts for context
include pagepa­rt.g­et­Vie­w(page) with { resource: pagepart }
Render one PagePart

Links (Twig)

nodeme­nu.g­et­Nod­eBy­Int­ern­alN­ame­('p­riv­acy­-po­licy')
Get a link to a page
path(i­tem.no­deT­ran­sla­tion)
Generate a link from NodeTr­ans­lation

Other (Twig)

get_la­tes­t_n­ews­_it­ems(2)
Get the 2 last news items
get_no­de_­tra­nsl­ati­on_­for­(page)
Get NodeTr­ans­lation for a page
 

Fixtures

<ge­tNo­de(­@so­me_­pag­e_e­nti­ty)>
Get the node of a page
 

Comments

No comments yet. Add yours below!

Add a Comment

Your Comment

Please enter your name.

    Please enter your email address

      Please enter your Comment.