I have a little bit problems to set a homepage link for a complex site situation.
My sitearchitecture is:
02-cityfoo (home of cityfoo)
03-citybar (home of citybar)
from home I have links to the both cities. Both city-folders are enclosed websites for it own.
If I’m on one of the city websites I need a homelink but not to the main homefolder but on the home of every city (home of …).
I tried several variations but nothing worked fine or dynamic. Because I need to add new cities from the panel.
actually I have now to update something on this website and now I got for this an error: Call to a member function intendedTemplate() on null
All the last time the website worked without problems and now I installed it locally to make some changes but I get this error.
This is the code:
<?php foreach($site->languages() as $key => $language): ?>