Impressum, Disclaimer, Kontakt als interne Links auf der Loginseite

Hallo @all,

gibt es bereits Apps die ich vielleicht noch nicht gefunden und mit denen es möglich ist, wie bei dem App “External sites” Seiten hinzuzufĂŒgen, die aber nicht nur im eingeloggten, sondern auch im ausgeloggten Bereich auf der Seite sichtbar werden?

Ich wĂŒrde gern einstellen können, ob der Link nur eingeloggten oder auch ausgeloggten oder nur ausgeloggten Usern sichtbar ist.

Ich bin halt leider noch ziemlich neu in der Nextcloud-Welt um bei den Templates durchzusehen und daher frage ich erstmal bei euch nach, bevor ich mir was verbastel.

Gruß Matze202

Hallo,

der Impressumspflicht komme ich nach, indem ich unter

Administrator / Theming unter Slogan folgendes eingegeben habe:

<a href="https://www.sokolowski.org/impressum">Impressum</a>

Somit also auf mein Standardimpressum verweise. Dort mĂŒssen ggf. die Datenschutzbestimmungen angepasst werden.

Auf diese Weise kannst Du natĂŒrlich auch auf jeden beliebigen internen Link verweisen


Ok thx, ich dachte das wÀre ein reines Textfeld und beinhaltet kein HTML, aber wenns so einfach geht, dann ist dies ja zum teil schon gelöst.

WĂŒrde mich nur freuen, wenn jemand noch eine elegantere Lösung fĂŒr mich hĂ€tte. :wink:

Nun, noooch eleganter geht’s, idem Du Dein eigenes Theme erstellst:

https://docs.nextcloud.com/server/11/developer_manual/core/theming.html

Danke dir, das werde ich mir mal zu gemĂŒte ziehen :wink:

Sorry wenn ich nochmal auf dieses Ă€ltere Thema zurĂŒckgreife.

Aber ich hatte das jetzt lĂ€nge Zeit auch so, dass ich ĂŒber den Slogan per HTML noch 2 weitere Links eingefĂŒgt habe, was auch ansich gut funktionierte.

Jetzt nach dem Update auf Nextcloud 12.0.x geht dies plötzlich leider nicht mehr


Hat jemand eine Ahnung wie ich da wieder Links auf die Loginpage bringe?
Oder hat @Soko auch schon 12.0 und eine neue Möglichkeit gefunden?

Danke im Vorraus!

Klappt bei mir unter 12.0.1 wie folgt:

Ich habe mir ein eigene theme erstellt und das dann in der config.php aktiviert:
'theme' = 'scloud'

in themeverzeichnis ein entsprechendes Unterverzeichnis angelegt. Dort hinein defaults.php
<?php
/**
* js letzte Anpassung 21.05.2017
* @author Björn Schießle schiessle@owncloud.com
* @author Jan-Christoph Borchardt, http://jancborchardt.net
* @copyright Copyright © 2016, ownCloud, Inc.
* @license AGPL-3.0
*
* This code is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License, version 3,
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License, version 3,
* along with this program. If not, see http://www.gnu.org/licenses/
*/

class OC_Theme {

	/**
	 * Returns the base URL
	 * @return string URL
	 */
	public function getBaseUrl() {
		return 'http://XXX.XX';
	}

	/**
	 * Returns the URL where the sync clients are listed
	 * @return string URL
	 */
	public function getSyncClientUrl() {
		return 'https://nextcloud.com/install/#install-clients';
	}

	/**
	 * Returns the URL to the App Store for the iOS Client
	 * @return string URL
	 */
	public function getiOSClientUrl() {
		return 'https://itunes.apple.com/us/app/owncloud/id543672169?mt=8';
	}

	/**
	 * Returns the AppId for the App Store for the iOS Client
	 * @return string AppId
	 */
	public function getiTunesAppId() {
		return '543672169';
	}

	/**
	 * Returns the URL to Google Play for the Android Client
	 * @return string URL
	 */
	public function getAndroidClientUrl() {
		return 'https://play.google.com/store/apps/details?id=com.nextcloud.client';
	}

	/**
	 * Returns the documentation URL
	 * @return string URL
	 */
	public function getDocBaseUrl() {
		return 'https://docs.nextcloud.org';
	}

	/**
	 * Returns the title
	 * @return string title
	 */
	public function getTitle() {
		return 'XXX sCloud';
	}

	/**
	 * Returns the short name of the software
	 * @return string title
	 */
	public function getName() {
		return 'sCloud';
	}

	/**
	 * Returns the short name of the software containing HTML strings
	 * @return string title
	 */
	public function getHTMLName() {
		return 'XXX sCloud';
	}

	/**
	 * Returns entity (e.g. company name) - used for footer, copyright
	 * @return string entity name
	 */
	public function getEntity() {
		return 'XXX sCloud';
	}

	/**
	 * Returns slogan
	 * @return string slogan
	 */
	public function getSlogan() {
		return '<a href="https://XXX.XXX/impressum">Impressum</a>';
	}

	/**
	 * Returns logo claim
	 * @return string logo claim
	 */
	public function getLogoClaim() {
		return '';
	}

	/**
	 * Returns short version of the footer
	 * @return string short footer
	 */
	public function getShortFooter() {
		$footer = '<a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
			'&bull;' . $this->getSlogan();

		return $footer;
	}

	/**
	 * Returns long version of the footer
	 * @return string long footer
	 */
	public function getLongFooter() {
		$footer = '<big><a href="'.$this->getBaseUrl().'" target="_blank\">'.$this->getEntity().'</a>'.
			'  &bull;  ' . $this->getSlogan() . '</big>';

		return $footer;
	}

	public function buildDocLinkToKey($key) {
		return $this->getDocBaseUrl() . '/server/11/go.php?to=' . $key;
	}

/**
	 * Returns mail header color
	 * @return string
	 */
	public function getColorPrimary() {
		return '#333333';
	}

	/**
	 * Returns variables to overload defaults from core/css/variables.scss
	 * @return array
	 */
	public function getScssVariables() {
		return [
			'color-primary' => '#333333'
		];
	}


}

Vielen Dank erstmal! Werde ich mich dann bei gelegenheit dransezten


Wo muss ich dann die gewĂŒnschten LInks eintragen und wo sind die dann auf der Login Page? Kann ich den Rest dieser Datei dann einfach so ĂŒbernehmen oder muss ich sonst noch was eintragen?
Und wie krieg ich dieses Theme dann zum laufe?

Das einzige was Du Ändern musst ist die Domain, die habe ich mit XXX.XX unkenntlich gemacht.
Du legst im Ordner /var/www/nextcloud/theme einen Ordner an den Du so nennst wie Dein Theme heissen soll, bei mir scloud.
In diesem Ordner stellst Du die defaults.php

Dann aktivierst Du das theme in der config.php
nano /var/www/nextcloud/config/config.php
indem Du dort

'theme' = 'namedeinesthemes'

einfĂŒgst.

Das sollte reichen, wenn Du an anderen Stellen das theme verÀndern willst, einfach die entsprechenden Ordner und Dateien erstellen.

Das Original der defauls.php findest Du unter
\www\nextcloud\lib\private\legacy

Weitere Infos zum theming findest Du hier
https://docs.nextcloud.com/server/12/developer_manual/core/theming.html

Sieht dann bei mir wie folgt aus, wobei unten zwei clickbare links eingebaut sind:


(URLs geschwÀrzt)

Nach den Änderungen cache leeren und apache neu starten.

Klingt eigentlich nicht schwer. Werde ich dann heute gleich versuchen

Vielen Dank!

@Soko das lÀuft jetzt schonmal bei mir. Hab 2 mal das XXX.XX un das XXX.XXX zu meiner URL ausgetauscht. Die LoginPage lÀuft also


In deiner Defaults ist aber noch öfters was von XXX und dahinter meistens sCloud. Was soll ich da tun?

Und das ist ein Owncloud Theme, nicht Nextcloud oder? Zumindest sind die iOS Links undso zu Own

Sorry fĂŒr die mehrfachen Posts.

Habe es nun so gemcht dass ich die Stadnard defaults.php von Nextcloud genommen habe und das ganze dann dort bearbeitet. LĂ€uftnun genau so wie ich will und hab gleich noch n paar andere Änderungen vorgenommen.

Weisst du zufÀllig, wie ich den Footer etwas höher setzen könnte?

Da musst Du tiefer in den css graben.

Hello,
Unfortunately, I often encounter significant problems with the provision of legally relevant (and absolutely necessary) information such as the imprint or the privacy policy on the login page.

Some time ago there was a suitable app (Imprint), which provided this functionality. Unfortunately, this does not work anymore with newer versions or is no longer supported.

Later it was possible to realize the whole thing quite easily in the module Theming under Slogan with href=“hxxx://www.xxxxxxxxx.org/impressum”>Imprint<, but this doesn’t work anymore!

Now I still had the option to create my own theme, which I did. However, this in version 13 seems to work on the login page, but unfortunately NOT CORRECTLY on a share by LINK site! The background and the correct logo are not loaded here!

I find it really sad that this elementary function is not included from the beginning, here I could well imagine to add two or three additional fields and links for the footer under Theming to meet the legal requirements.

It would surely also be possible to extend the App (External Sites) in such a way that links can also be displayed for guests e. g. on the login page.

Would anyone have a solution to this problem to meet the legal requirements, or what does Nextcloud think about it?

1 Like

It’s still working with Name/Internetadress

impress

Hello, Soko,
Thanks for your answer.

This is correct (for one point), but unfortunately this is NOT legally compliant!

Every homepage requires an imprint AND a privacy statement. A single point on the homepage must be created for EACH purpose. A representation of the declaration in the imprint is not permitted.

From where do you take that statement?

From a portal for online - right and not only from one.
if that’s not the case, it would be fine for me too. please feel free to let me know.

It could depend on the country you’re from. In germany it should be fine to be in the imprint and the privacy statement with not more than two clicks.
But I admit, that being able to have the posibility to have a link for the slogan would be better


1 Like

If I understood the previous one correctly, the link to the imprint is only on the login page, right?
How do I get to the imprint with 2 clicks?

Bundesministerium der Justiz und fĂŒr Verbraucherschutz (BMJV):

Bei den meisten Anbietern ist das Impressum ĂŒber einen Link zu finden. Das ist auch ausreichend, soweit dieser Link gut sichtbar und von jeder Seite aus abrufbar ist. Das Gesetz spricht von „leicht erkennbar, unmittelbar erreichbar und stĂ€ndig verfĂŒgbar zu halten“.