guides:faq:tipstricks
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
guides:faq:tipstricks [2019/12/23 15:59] – ↷ Page moved from maintenance:general:tipstricks to guides:faq:tipstricks yspeerte | guides:faq:tipstricks [2024/07/03 12:31] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Tips & Tricks ====== | ||
+ | This document is meant to group some examples, tricks and usage tips. | ||
+ | |||
+ | ===== Templates ===== | ||
+ | |||
+ | ==== Variable inside a relation ==== | ||
+ | Need to find variables belonging to another from a port template. | ||
+ | |||
+ | A template example, using the // | ||
+ | < | ||
+ | |||
+ | ===== Scenarios ===== | ||
+ | |||
+ | ==== Modify context variable ==== | ||
+ | In this example the node_class name is modified using the __Replace__ function. This is done using a regular expression. | ||
+ | |||
+ | < | ||
+ | Everything after the first _ (including the _) is removed and the value is assigned to the variable //type// | ||
+ | |||
+ | eg. Before: '' | ||
+ | |||
+ | |||