Call view functions with parameters from model

Warning: This is a silly question! :smile:

How do I call a view function with parameters that come from a model?

I read the following example in the docs:

<a data-th-href="${portal.pageUrl({'_path=/my/page', 'a=3'})}">Link</a>

How can the path be replaced with a value from an object in the following example?

<li data-th-each="article : ${relatedArticles}">
	<a data-th-text="${article.displayName}" data-th-href="???"></a>

Each article has a _path attribute.


Easy =P

data-th-href="${portal.pageUrl({'_path=' + article._path})}"
1 Like