An dieser Frage hab ich auch eine Weile rumüberlegt.
Da die Links vor dem erscheinen auf der Seite ja sowieso gesichtet/freigeschaltet werden, muss der User nich eingeloggt sein, um Links vorschlagen zu dürfen.
Einen "Schalter" oder ähnliches ahbe ich nicht gefunden, aber der Quellcode ist so schön beschrieben, dass sich die betreffende Zeile leicht finden lässt.
Ich heble einfach die Abfrage aus, ob der User eingeloggt ist, oder nicht. Bestimmt nicht die "sauberste" Lösung. Aber sie funktioniert für mich.
Die zu bearbeitende Datei:
typo3conf/ext/cmw_linklist/pi1/class.tx_cmwlinklist_p1.php
Dort suchst du nach:
* HANDLE ADDITIONAL
*/
//Check if a fe user is logged in
$isLoggedIn = $GLOBALS['TSFE']->loginUser;
//Create href
if ($isLoggedIn == 1) {
$href = $this->pi_getPageLink($GLOBALS['TSFE']->id, "_self", array("action" => "getviewaddnewlink", "category_uid" => $category_uid));
//Create Marker Array
$markerArray = array();
$markerArray["###LINK_ADD_NEW_HREF###"] = $cObj->stdWrap($href,"");
//Substitute the markers in the given sub sub part.
$subpartContent = null;
$subpartContent.=$cObj->substituteMarkerArray($cObj->getSubpart($templateCode, "###".$subSub_4."###"),$markerArray);
//Substitute the template code with the given subpartcontent.
$templateCode = $this->cObj->substituteSubpart($templateCode, $subSub_4, $subpartContent);
}
else{
$templateCode = $this->cObj->substituteSubpart($templateCode, $subSub_4, "");
}
//Return the generated content
Das habe ich ersetzt durch
* HANDLE ADDITIONAL
*/
// Create Link_Add_New
$href = $this->pi_getPageLink($GLOBALS['TSFE']->id, "_self", array("action" => "getviewaddnewlink", "category_uid" => $category_uid));
//Create Marker Array
$markerArray = array();
$markerArray["###LINK_ADD_NEW_HREF###"] = $cObj->stdWrap($href,"");
//Substitute the markers in the given sub sub part.
$subpartContent = null;
$subpartContent.=$cObj->substituteMarkerArray($cObj->getSubpart($templateCode, "###".$subSub_4."###"),$markerArray);
//Substitute the template code with the given subpartcontent.
$templateCode = $this->cObj->substituteSubpart($templateCode, $subSub_4, $subpartContent);
//Return the generated content
Also einfach die If / else Abfrage rausgelöscht. (auskommentieren wäre sicher die elegantere Lösung)
Bei mir klappt es so. Hoffe geholfen zu haben.
Miraldo