17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1005 Views |
-
Pulling data from DB to template

28 January 2008 at 2:06am Last edited: 30 January 2008 12:04am
I know this should be super easy but I can't get my head about how to do this in the sapphire framework.
I have a control block:
<a href="<% control Level(1) %>$Prefix<% end_control %>SomePage">SomePage</a>
As you can see it simply goes to the top level page and gets the $Prefix field.
My question is how can I make a function that will do the same thing only with one template command. Something like:<a href="{$WritePrefix}SomePage">SomePage</a>
Or better yet, is there a way to get the prefix from the top level and place it in every <a href=""> ?
| 1005 Views | ||
|
Page:
1
|
Go to Top |

