Hi Erich, *, On Fri, Nov 25, 2011 at 1:07 PM, Erich Christian <[email protected]> wrote: > Am 25.11.2011 12:48, schrieb Christian Lohmaier: >> On Fri, Nov 25, 2011 at 10:50 AM, Florian Effenberger >> <[email protected]> wrote: >>> -------- Original Message -------- >>> Subject: Corrections in Web site in English Language > [...] >> either the default "home" one, or the page explicitly marked as >> "default homepage for domain".. >> Let's see what is special about the two that makes the template fail... > > Thanks for checking, both subsites looked okay at first sight, placing > the URL did not help the spanish site online ...
The problem this time is not in the php, but in the template... The homepages for Spanish and Serbian sites don't have a Title/Pagename set. But the template (Includes/Subsiteslist.php) contains: <% if SubsitesListing %> <ul class="subsitelist table"><% control SubsitesListing %> <li class="$Lang"><% if Homepagetitle %><a href="$Domainlink" title="$Homepagetitle">$Domainlink</a><% else %><div title="Project exists, but didn't define a homepage yet">$Domainlink</div><% end_if %><div>$LangNative</div>$LangEnglish</li><% end_control %> </ul> <% end_if %> The If HomepageTitle is wrong - in the php, a dedicated property "Notonline" is defined when no homepage can be fund as described above (neither "home" as URLSegment, nor "use as default for domain" is set). Fixed the logic to check for "if Notonline" instead: <li class="$Lang"><% if Notonline %><div title="Project exists, but didn't define a homepage yet">$Domainlink</div><% else %><a href="$Domainlink" title="$Homepagetitle">$Domainlink</a><% end_if %><div>$LangNative</div>$LangEnglish</li><% end_control %> Thanks once again for the bug-report. ciao Christian -- Unsubscribe instructions: E-mail to [email protected] Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/ Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette List archive: http://listarchives.libreoffice.org/global/website/ All messages sent to this list will be publicly archived and cannot be deleted
