Does anyone know if there is a page-reference function like there is for assets or objects? I would like to be able to dynamically reference pages on the site, but haven't been able to figure out how to do it or whether it is possible.
I tried:
PageUrl(pagename)
Page(pagename)
etc...
I tried searching for the ImageUrl, Image and Asset functions, but couldn't locate them either. If you know where they are, please pass it on.
Just wondering if someone knows if this built-in or if I should start developing my own function to do this.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks Anatol. Perhaps I don't have something set correctly, since I always get the same output:
PageUrl(XXX) OR PageUrl("MyName")
always results in the following link:
admin/codetables/modify.html
This page is not functional, but may be the key to the problem. This may be another example of difference between commercial and egrail-source version. Any comments?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Does anyone know if there is a page-reference function like there is for assets or objects? I would like to be able to dynamically reference pages on the site, but haven't been able to figure out how to do it or whether it is possible.
I tried:
PageUrl(pagename)
Page(pagename)
etc...
I tried searching for the ImageUrl, Image and Asset functions, but couldn't locate them either. If you know where they are, please pass it on.
Just wondering if someone knows if this built-in or if I should start developing my own function to do this.
Should be:
PageUrl()
PageUrl(4711) (id of the page)
PageUrl("MyName")
Anatol
Thanks Anatol. Perhaps I don't have something set correctly, since I always get the same output:
PageUrl(XXX) OR PageUrl("MyName")
always results in the following link:
admin/codetables/modify.html
This page is not functional, but may be the key to the problem. This may be another example of difference between commercial and egrail-source version. Any comments?