Jump to:

5450 Posts in 1672 Topics by 1197 members

Customising the CMS

SilverStripe Forums » Customising the CMS » Wildcard subdomain weird behaviour

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 242 Views
  • Leon223
    Avatar
    Community Member
    10 Posts

    Wildcard subdomain weird behaviour Link to this post

    I currently building my first silverstripe website, it is powerfull and great tool!

    But i am currently stuck on the following problem:

    I have set my DNS to *.domain.com so every subdomain will go to the main website. When i navigate to domain.com without subdomain everything is showing up perfectly. I am using the following code:

    <div class='columns'>
        <% control Children %>    
            <% if ClassName = BlokWrapper %>
                   <% control Children %>
    //continue
                   <% end_control %>
            <% end_if %>   
        <% end_control %>
    </div>

    In this case the children of 'BlokWrapper' are showing up. This is the way i want it to behave. When i navigate from subdomain.domain.com to the website. Nothing is showing up. When i debug the code every child is showing up under the first <% control Children %>    

    Is this a bug or a feature and how can i solve this? ;-)

    242 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.