YappaBundles Cheat Sheet

A cheat sheet in English by Veloxy

YappaBundles Cheat sheet

2,815 views 642 downloads 14 Aug 2018 History
3.7 avg · 0 ratings

PageParts (Twig)

pageParts = getpag­epa­rts­(page, '­con­tex­t_m­ain­')
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­('pr­iva­cy-­pol­icy­')
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

Badges

Nice Cheat Sheet

Comments

No comments yet.

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.