<?UMBRACO_TEMPLATE_LOAD_CHILD/> and multiple websites Options
David_Libido
Posted: Tuesday, September 30, 2008 10:53:27 AM

Rank: Devotee

Joined: 8/14/2006
Posts: 63
Hi, I'm running multiple websites in Umbraco, and this has been running fine for a while. My structure is like this:

Code:
Content
+www.website1.com
-+websiteRoot
--+Page1
--+Page2
+www.website2.com
-+websiteRoot
--+Page1
--+Page2
--+Page3


The websites have hostnames asssigned to them, and in the template is a macro that renders the child node. I can't rememeber exactly why this, but I think it has to to with my following problem:

I want to add a new website, which has to be shielded from non-members entirely. To do this, I implemented a Login document as shown in this webcast: http://hartvig.com/screencasts/members.htm. However, this doesn't work for me because I think the macro rendereing the page items doesn't respect the members stuff. Therefore I changed the website templete to use <?UMBRACO_TEMPLATE_LOAD_CHILD/> instead of rendereing the child node using a macro. However, the child node is not rendered at all!
The new website structure is like this:

Code:
Content
+www.website1.com
...
+www.website2.com
...
+www.membersonlywebsite.com -> has new template only containing <?UMBRACO_TEMPLATE_LOAD_CHILD/>
-+websiteRoot
--+Page1
--+Page2


Any help would be greatly appreciated.

Saying java is good because it works on all platforms is like saying anal sex is good because it works on all genders.
David_Libido
Posted: Tuesday, September 30, 2008 10:37:31 PM

Rank: Devotee

Joined: 8/14/2006
Posts: 63
I did a little digging and I think I found part of the problem:
<?UMBRACO_TEMPLATE_LOAD_CHILD/> loads the child of a certain node in it's content (by clicking a link in a menu generated by a macro for example). If this is used, the whole membership stuf works. However, I'm rendering nodes using macros, so in fact there is never an active child in my case. Can anybody confirm this "hunch"?

Saying java is good because it works on all platforms is like saying anal sex is good because it works on all genders.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.