Cheatography
https://cheatography.com
PageParts (Twig)
pageParts = getpageparts(page, 'context_main')
|
Get PageParts for context |
include pagepart.getView(page) with { resource: pagepart }
|
Render one PagePart |
Links (Twig)
nodemenu.getNodeByInternalName('privacy-policy')
|
Get a link to a page |
path(item.nodeTranslation)
|
Generate a link from NodeTranslation |
Other (Twig)
get_latest_news_items(2)
|
Get the 2 last news items |
get_node_translation_for(page)
|
Get NodeTranslation for a page |
|
|
Fixtures
<getNode(@some_page_entity)>
|
Get the node of a page |
|
Created By
Metadata
Comments
No comments yet. Add yours below!
Add a Comment