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

Uploaded Logo from Admin-->Theming not used #18

Closed
Tanarri opened this issue Feb 2, 2017 · 3 comments
Closed

Uploaded Logo from Admin-->Theming not used #18

Tanarri opened this issue Feb 2, 2017 · 3 comments

Comments

@Tanarri
Copy link

Tanarri commented Feb 2, 2017

Hi there,

in the admin settings you can upload on the page "theming" a own logo. This logo is shown on the login page of NextCloud 11.
This uploaded logo should be used, when the system is mailing a share notification to a user by email.

The share email can be customized in admin setting -> mail templates -> template "Sharing email - public link shares (HTML)"
<td colspan="2" bgcolor="<?php p($theme->getMailHeaderColor());?>"> <img src="<?php p(\OC::$server->getURLGenerator()->getAbsoluteURL(image_path('', 'logo-mail.png'))); ?>" alt="<?php p($theme->getName()); ?>"/> </td>

I think the image path sould be something else...
Can someone fix this, that the default template for "Sharing email - public link shares (HTML)" uses the logo from the admin settings --> theming --> logo?

Greetings
Eugen

@nickvergessen
Copy link
Member

Just use:

<td colspan="2" bgcolor="<?php p($theme->getMailHeaderColor());?>"> <img src="<?php p(\OC::$server->getURLGenerator()->getAbsoluteURL($theme->getLogo())); ?>" alt="<?php p($theme->getName()); ?>"/> </td>

@Tanarri
Copy link
Author

Tanarri commented Feb 2, 2017

This doesn'T fix my issue.
The lgo ist still the logo from nextcloud and not the logo I have uploaded in admin --> theming

The generated HTML code from the Email ist:

				<tr>
					<td colspan="2" bgcolor="#009966">
						<img src="https://myowncloud.uma-pen.com/core/img/logo-mail.png" alt="uma"/>
					</td>
				</tr>

"/core/img/logo-mail.png" ist not the logo I have uploaded..

Greetings
Eugen

@nickvergessen nickvergessen reopened this Feb 2, 2017
@MorrisJobke
Copy link
Member

With the new theming this works now automatically - see nextcloud/server#8350 (comment) if you want to theme with 12+ because this app is not supported there anymore.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants