Hallo,
gibt es schon eine Möglichkeit wie ich im Plugin cmw-linkliste einen Link vorschlagen kann ohne das der Besucher eingeloggt sein muss.
Vilen Dank für den Hinweis.
Hallo,
gibt es schon eine Möglichkeit wie ich im Plugin cmw-linkliste einen Link vorschlagen kann ohne das der Besucher eingeloggt sein muss.
Vilen Dank für den Hinweis.
Hallo!
Mit einer kleiner Modifikation der class.tx_cmwlinklist_pi1 ist diese Funktion leicht herzustellen. Dafür muss einfach die Abfrage auf den "loginUser" (ab Zeile 313) auskommentiert werden. Also aus
/*
* 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, "");
}
mach z.B.
/*
* 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, "");
// }
dann sollte es mit dem Link-vorschlagen ohne vorherige Benutzeranmeldung klappen.
Gruß
Thomas
Danke,
der Link wird nun angezeigt, aber wenn ich drauf klicke tut sich nichts!
In der Url ist am Schluss der Marker ###LINK_ADD_NEW_HREF### angezeigt, mehr nicht.
Wer kann mir weiterhelfen?
Habe ich etwas übersehen bei der Installation?
Kommando zurück,
ich habe eine Zeile zuviel auskommentiert. ;-)
Vielen Dank für die schnelle Hilfe.