Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Logo des Projekts wird bei Installation im Unterordner nicht angezeigt #31

Closed
aeberhard opened this issue Oct 10, 2022 · 13 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@aeberhard
Copy link

in navigation.php sollte rex_url::frontend() vorangestellt werden

echo '<img src="' . rex_url::frontend() . be_branding::checkExtension(rex_addon::get('be_branding')->getConfig('file')) . '" class="img-responsive center-block" style="padding: 20px 10px 5px 10px; width: 100%;"/></a>';

danspringer added a commit that referenced this issue Oct 11, 2022
<strong>Neu:</strong>
* Multidomainfähigkeit: Es können nun pro in YRewrite angelegter Domain verschiedene Profile für das Backend  angelegt werden. Unterschiedliche Domains können nun also auch im Backend unterschiedlich aussehen.
 Beispiel: Wenn man als Redaxo-User*in im Backend unter <code>domain1.de/redaxo</code> eingeloggt ist, so kann dieses Backend ein anderes Branding bekommen als z.B. <code>domain2.de/redaxo</code>.
Es werden auch die Backend-Favicons entsprechend des Profils gefärbt und der Frontend-Link im Header über be_style/customizer wird ebenfalls angepasst.
* Favicon-Einstellungen pro Domain werden nun übersichtlicher in Tabs dargestellt.

<strong>Fixed:</strong>
* Logo des Projekts wird bei Installation im Unterordner jetzt korrekt angezeigt [@aeberhard](https://github.com/aeberhard)
#31
danspringer added a commit that referenced this issue Oct 11, 2022
<strong>Neu:</strong>
* Multidomainfähigkeit: Es können nun pro in YRewrite angelegter Domain verschiedene Profile für das Backend angelegt werden. Unterschiedliche Domains können nun also auch im Backend unterschiedlich aussehen.
Beispiel: Wenn man als Redaxo-User*in im Backend unter <code>domain1.de/redaxo</code> eingeloggt ist, so kann dieses Backend ein anderes Branding bekommen als z.B. <code>domain2.de/redaxo</code>.
Es werden auch die Backend-Favicons entsprechend des Profils gefärbt und der Frontend-Link im Header über be_style/customizer wird ebenfalls angepasst.
* Favicon-Einstellungen pro Domain werden nun übersichtlicher in Tabs dargestellt.

<strong>Fixed:</strong>
* Logo des Projekts wird bei Installation im Unterordner jetzt korrekt angezeigt [@aeberhard](https://github.com/aeberhard)
#31
@danspringer
Copy link
Owner

Im Login-Screen muss der Pfad auch noch angepasst werden:

https://github.com/danspringer/be_branding/blob/master/boot.php#L32

$ersetzen = array('<img src="' . be_branding::checkExtension($this->getConfig('file'. be_branding::getCurrentBeDomainId(true) )) . '" class="img-responsive center-block" style="padding: 10px 0px 15px 0px; width: 370px;"/></a><section class="rex-page-main-inner" id="rex-js-page-main">');

@danspringer danspringer reopened this Oct 11, 2022
@danspringer danspringer self-assigned this Oct 11, 2022
@danspringer danspringer added the bug Something isn't working label Oct 11, 2022
@aeberhard
Copy link
Author

Ja korrekt, hatte gar nicht gesehen dass da auch ein Logo ausgegeben wird.

@danspringer
Copy link
Owner

Fixed via 9f1e36b

@aeberhard
Copy link
Author

In beta2 wird das Logo immer noch nicht angezeigt bei Installation im Unterordner.
Auch beim Loginscreen nicht.

@danspringer
Copy link
Owner

Was für ein Pfad wird da dann ausgegeben?

@aeberhard
Copy link
Author

<img src="http://localhost/media/logo.svg" wird ausgegeben

und mit Unterordner rex513 sollte es sein
<img src="http://localhost/rex513/media/logo.svg"

Sorry, wollte da einen Screenshot hochladen aber das klappt hier mit Firmenproxy nicht.

@danspringer
Copy link
Owner

Ah, okay. Danke.
Ich schaue mir das an. Habe es bisher immer nur mit Subdomains getestet, aber noch nicht mit Unterordner-Installationen

@danspringer danspringer reopened this Oct 12, 2022
@aeberhard
Copy link
Author

Ich arbeite immer lokal mit Unterordnern.

Gleiches Problem auch beim Logo im Login-Screen.

rex_url::frontend() liefert meine ich auch den Unterordner.

@danspringer
Copy link
Owner

Okay, dann muss ich mal schauen, ob rex_url::frontend() auch die richtige Domain liefert für eine Multidomaininstallation.
Theoretisch ist es eigtl. egal, da es ja nur darum geht, dass der Pfad zu einem existenten Bild stimmt. Aber schöne wäre es, wenn da auch die Domain stimmt.

@aeberhard
Copy link
Author

Vielleicht ist bei Medien besser ohne den Host zu arbeiten.

Schau mal bei yrewrite
https://github.com/yakamara/redaxo_yrewrite/blob/9643e644bec340305ef3de64430c24794b280ee9/lib/yrewrite/yrewrite.php#L301-L309

danspringer added a commit that referenced this issue Oct 13, 2022
* Logopfad für Login-Screen bei Installation in Unterordner angepasst
#31
@danspringer
Copy link
Owner

Kannst du nochmal reinsehen @aeberhard :
https://github.com/danspringer/be_branding/releases/tag/1.8.0-beta3

danke!

@aeberhard
Copy link
Author

Jetzt passt es Daniel :)

@danspringer
Copy link
Owner

Okay, cool. Dann kann ich das hier endlich schließen 😅
Ging ja lange genug.
Danke fürs Testen!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants