Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

Mehrere Logos in Header einer Umfrage

  • Alexitktwfo
  • Alexitktwfo's Avatar Topic Author
  • Offline
  • New Member
  • New Member
More
4 years 9 months ago #185340 by Alexitktwfo
Mehrere Logos in Header einer Umfrage was created by Alexitktwfo
Liebes Team,

ich hatte das Problem mehrere Logos (eigenes / Auftraggeber) in den Header einer Befragung einbauen zu wollen.

Nach etwas Suchen und Probieren wurde das folgendermaßen gelöst (und vllt. kann das noch jemand brauchen):

In der Designvorlagen in navbar.twig wurde ab Zeile 31 folgende Änderung eingefügt.

Anstatt dem einzelnen Logoblock wurde ein table eingefügt und im table ein 2er Block für ein Logo. Das Logo kann entweder das bereits definierte Brand Logo aus den Designvorlageeinstellungen sein, oder ein weiteres Logo, das man im Editor hochladen kann (und dann den Pfad angibt).
Code:
{% if( aSurveyInfo.options.brandlogo == "on") %}
            <table>
                <tr>
                    <td>
                        <div class="{{ aSurveyInfo.class.navbarbrand }} logo-container hidden-xs"  {{ aSurveyInfo.attr.navbarbrand }}  >
                        {{ image(aSurveyInfo.options.brandlogofile, aSurveyInfo.name, {"class": "logo img-responsive"}) }}
                        </div>
                    </td>
                    <td>
                        <div class="{{ aSurveyInfo.class.navbarbrand }} logo-container hidden-xs"  {{ aSurveyInfo.attr.navbarbrand }}  >
                        {{ image('./files/logo2.png', aSurveyInfo.name, {"class": "logo img-responsive"}) }}
                        </div>
                    </td>
                </tr>
            </table>
 
 
        {% else %}

Ich hoffe es nutzt jemandem, der ein ähnliches Problem hat.

LG

PS: Version 3.17.3+190429
The following user(s) said Thank You: holch
The topic has been locked.
Moderators: Joffm

Lime-years ahead

Online-surveys for every purse and purpose