Does anyone know if it's possible to use the ~sitecollection and ~site tokens
within the content placeholder of a Layout Page in order to provide dynamic
URLs at run-time?
We are providing some custom elements within the pages and I'm trying to avoid
having to update the absolute URLs when we move to production.
e.g.
<asp:Content ContentPlaceholderID="PlaceHolderMain" runat="server">
<div class="ms-globalright ms-toolbarContainer">
<a
href="~sitecollection/SiteDirectory/SitesList/NewForm.aspx?Source=~sitecollection%2FSiteDirectory%2FPages%2Fcategory%2Easpx">Add
Site</a>
</div>
...
Kind regards,
Paul
____________________________________________________________________________
This e-mail is intended for the use of the addressed recipient(s) only and may
contain confidential and privileged information. If you have received this
message in error, please delete the message and any attachments and copies
immediately; and notify the sender by return e-mail.
Any views expressed in this message or any attachments are those of the
individual sender and do not necessarily represent the corporate opinion of the
Catholic Education Office (CEO), Sydney.
The CEO Privacy Policy is located at http://www.ceo.syd.catholic.edu.au
____________________________________________________________________________
------------------------------------------------------------------- OzMOSS.com
- to unsubscribe from this list, send a message back to the list with
'unsubscribe' as the subject.
Powered by mailenable.com