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.
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?
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>'.
'•' . $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>'.
' • ' . $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
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?
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?
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.
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âŠ
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â.