I have started using the Blog4Umbraco package, very nice by the way. I have one small issue. One if its xslt scripts references a SiteUrl string which is manually entered. I am running my family site such that each family member has their own subdomain and I am using umbracos domain feature. The problem I have is, I need to have that SiteUrl variable be loaded with which ever domain was in the request for the page so that it works correctly with the rss feeds. anyone know of a function that tells me "http://sub.domain.com/" part of the request url?
Xslt function for requested url domain
Hello All,
I have started using the Blog4Umbraco package, very nice by the way. I have one small issue. One if its xslt scripts references a SiteUrl string which is manually entered. I am running my family site such that each family member has their own subdomain and I am using umbracos domain feature. The problem I have is, I need to have that SiteUrl variable be loaded with which ever domain was in the request for the page so that it works correctly with the rss feeds. anyone know of a function that tells me "http://sub.domain.com/" part of the request url?
Thanks.
Hello, try
Petr
Hi radmanmm,
Can't you just use umbraco.library:RequestServerVariables("SERVER_NAME")?
Cheers,
/Dirk
Thanks all,
Petr's was the first solution I tried and it worked, thanks Dirk for the input though.
is working on a reply...