Article List Advanced und externalContent optimieren
Verfasst: Fr 10. Okt 2008, 17:23
Hallo
ich nutze die Article List Advanced und externalContent.
Wie kann ich der Article List Advanced beibringen das sie folgenden Link nicht in der Artikelliste anzeigt:
foreignContent
Ich schätze mal das es in folgendem Teil des Output codiert wird:
...
...
Kann mir jemand helfen?
Grüße,
stefkey
ich nutze die Article List Advanced und externalContent.
Wie kann ich der Article List Advanced beibringen das sie folgenden Link nicht in der Artikelliste anzeigt:
foreignContent
Ich schätze mal das es in folgendem Teil des Output codiert wird:
...
Code: Alles auswählen
# Output data
# Every output manipulation should be done here...
#
# Base information:
# $aSettings["Elements"]: Number of expected, additional elements from each article
# $aSettings["ArticlePerPage"]: Number of articles per page (0: show all)
# $aSettings["k".$i]["ElementType"]: Per Element: Type of Element: Text, Image or ExtractedImage
# $aSettings["k".$i]["ElementWidth"]: Per Element: Text length or image width (-> recycling ...)
# $aSettings["k".$i]["ElementHeight"]: Per Element: Image width
#
# Per article:
# $aValue["Headline"]: Content of article element specified as containing the headline information
# $aValue["Link"]: Relative link to get to the listed article
# $aValue["LastModified"]: Last modified date of the article
# $aValue["Created"]: Created date of the article
# $aValue["Published"]: Published date of the article
# $aValue["Category"]: Category name
# $aValue["Summary"]: summary Zusammenfassung
# $aValue["Pagetitle"]: Seitentitel pagetitle
#
# Per article additional element:
# $aValue["i".$i]["Value"]: Text (only for text elements, otherwise "")
# $aValue["i".$i]["WebPath"]: HTTP... path to image
# $aValue["i".$i]["ServerPath"]: /server/... path to image
# $aValue["i".$i]["Width"]: >Original< image width
# $aValue["i".$i]["Height"]: >Original< image height
/* Init Template
*/
if (!is_object($tpl)) {
$tpl = new Template;
}
$tpl->reset();
$tpl->set('s', 'TITLE', $newsheadline);
foreach ($aData as $aValue) {
echo '<div id="artlist">', chr(10);
$artlist_headline = '<a href="'.$aValue["Link"].'">'.$aValue["Headline"].'</a>';
$artlist_pagetitel = $aValue["Pagetitle"];
$artlist_summary = $aValue["Summary"];
if ($aSettings["Elements"] > 0) {
for ($i = 0; $i < $aSettings["Elements"]; $i++) {
switch (TRUE) {
case ($aSettings["k".$i]["ElementType"] == "Image" || $aSettings["k".$i]["ElementType"] == "ExtractedImage"):
$image = $aValue["i".$i]["WebPath"];
$width = $aValue["i".$i]["Width"];
$height = $aValue["i".$i]["Height"];
if ($aSettings["k".$i]["ElementWidth"] > 0 && $aSettings["k".$i]["ElementHeight"] > 0) {
# Check, if resize necessary
if ($aValue["i".$i]["ServerPath"] != "" && file_exists($aValue["i".$i]["ServerPath"]) &&
($aValue["i".$i]["Width"] > $aSettings["k".$i]["ElementWidth"] ||
$aValue["i".$i]["Height"] > $aSettings["k".$i]["ElementHeight"])) {
# Scale image
$image = capiImgScale($aValue["i".$i]["ServerPath"], $aSettings["k".$i]["ElementWidth"], $aSettings["k".$i]["ElementHeight"], false, false, 10, false);
### #Get dimensions of the image
list ($width, $height, $type, $attr) = getimagesize(str_replace($cfgClient[$client]["path"]["htmlpath"], $cfgClient[$client]["path"]["frontend"], $image));
} else {
$image = $aValue["i".$i]["WebPath"];
$width = $aValue["i".$i]["Width"];
$height = $aValue["i".$i]["Height"];
}
}
if ($image != "") {
#####
$artlist_image = '<img src="'.$image.'" width="'.$width.'" height="'.$height.'" align="'.$aSettings["k".$i]["ElementImgAlign"].'" style="padding:'.$aSettings["k".$i]["ElementPadding"].';" />';
#####
}else $artlist_image ="";
break;
default: // Everything else is treated as "Text"
if ($artlist_summary == "") {
$artlist_text = $aValue["i".$i]["Value"];
} else {
$artlist_text = $artlist_summary;
}
#echo $artlist_text;
}
}
}
$artlist_more = '<a href="'.$aValue["Link"].'">'.mi18n("More...").'</a>';
echo '</div>', chr(10);
if("CMS_VALUE[97]"=="create")
{
$tmp_artlist_Date = strtotime($aValue["Created"]);
}
else
{
$tmp_artlist_Date = strtotime($aValue["Published"]);
}
if("CMS_VALUE[98]"!="-1")
{
$artlist_lastmod = date('CMS_VALUE[98]', $tmp_artlist_Date);
if(strlen($artlist_lastmod)>12)$artlist_lastmod=$artlist_lastmod." Uhr";
}
else
$artlist_lastmod = "";
$tpl->set('d', 'PAGETITEL', $artlist_pagetitel);
$tpl->set('d', 'HEADLINE', $artlist_headline);
$tpl->set('d', 'DATE', $artlist_lastmod);
$tpl->set('d', 'IMG', $artlist_image);
$tpl->set('d', 'TEXT', $artlist_text);
$tpl->set('d', 'MORE', $artlist_more);
$tpl->next();
}
}
Kann mir jemand helfen?
Grüße,
stefkey