Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi Erich, *,

On Fri, Nov 25, 2011 at 1:07 PM, Erich Christian <erich_tdf@irq.at> wrote:
Am 25.11.2011 12:48, schrieb Christian Lohmaier:
On Fri, Nov 25, 2011 at 10:50 AM, Florian Effenberger
<floeff@documentfoundation.org> 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 website+help@global.libreoffice.org
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

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.