Open cmawhorter opened 8 years ago
The way to resolve a page by id is not obvious. This is a common use-case e.g. <a title="Go to home page" href="<%= findPageById('home').url() %>"> and it should be simplified.
<a title="Go to home page" href="<%= findPageById('home').url() %>">
Currently, the way to do this is:
<% uses('id', 'home').as('homePages') %> <a href="<%= homePages[0].url() %>">
But that is not possible because of #3, which means there is currently no way to do this.
The way to resolve a page by id is not obvious. This is a common use-case e.g.
<a title="Go to home page" href="<%= findPageById('home').url() %>">
and it should be simplified.Currently, the way to do this is:
But that is not possible because of #3, which means there is currently no way to do this.