Joomla! Forum Schweiz wird Teil der D-A-CH Community

Nach vielen Jahren als zentrale Anlaufstelle für Fragen rund um Joomla! in der Schweiz wird das Joomla! Forum Schweiz künftig als Archiv weitergeführt.

Die Joomla!-Communities aus Deutschland, Österreich und der Schweiz arbeiten heute enger denn je zusammen. Deshalb bündeln wir künftig auch den deutschsprachigen Support und Austausch an einem gemeinsamen Ort im Joomla! D-A-CH Forum.

Für neue Fragen, Diskussionen und den Austausch mit der Community nutzt bitte ab sofort:

forum.joomla.de

Das Joomla! Forum Schweiz bleibt weiterhin bestehen und wird als Archiv im Lesemodus erhalten. Die vielen Beiträge, Lösungen und Erfahrungen aus den vergangenen Jahren bleiben damit weiterhin zugänglich und über die Suche auffindbar.

Wir bedanken uns herzlich bei allen Mitgliedern, Moderatoren und Helfern, die das Schweizer Joomla! Forum über viele Jahre mit ihrem Wissen und ihrem Engagement geprägt haben.

Wir sehen uns im Joomla! D-A-CH Forum!

Link auf dem Einleitungsbild

  • Pinsel48
  • Autor
  • Offline
  • Junior Mitglied
  • Junior Mitglied
Mehr
22 März 2014 13:07 #38725 von Pinsel48
Link auf dem Einleitungsbild wurde erstellt von Pinsel48
Wie kann ich auf das Einleitungsbild eines Haupteintrages einen Link auf eine externe URL legen? Ist das Bild im Editor, ist es kein Problem, wählt man ein Einleitungsbild im "Bilder und Links" aus scheint es keine Möglichkeit zu geben. Es würde mir schon helfen, wenn ich eine Bildunterschrift mit einem Link versehen könnte, das kann ich aber auch nicht. Weiss jemand Rat?
Merci :)
  • Damian
  • Neues Mitglied
  • Neues Mitglied
Mehr
08 Apr. 2014 17:00 #38808 von Damian
Damian antwortete auf Link auf dem Einleitungsbild
Hallo Pinsel48

Ein Möglichkeit wäre: Ein Override im Template erstellen und für den Link nimmst du den Link A unter "Bilder und Links". Alternativ kannst du natürlich jeden anderen Link auch nehmen. Wenn du diese Links aber sonst irgendwie brauchst, funktioniert es nicht mehr.

Override erstellen:
Dies findest du unter Erweiterungen -> Templates -> Templates (links oben) -> "Template_Name Details und Dateien" -> Overrides erstellen -> com_content -> featured.
Es wird (unter anderem) eine Datei erstellt unter: /templates/dein_template/html/com_content/featured/default_item.php
In dieser Datei muss du folgenden Code einfügen.
Code:
$urls = json_decode($this->item->urls);
Diese Zeile fügst du in das obersten PHP-Tag ein.

Suche folgende Codestelle (ca Linie 140) und füge die zwei Blöcke (//new) an die entsprechenden Stellen ein.
Code:
<?php if (isset($images->image_intro) and !empty($images->image_intro)) : ?> <?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?> //new <?php if (isset($urls) and !empty($urls->urla)) : ?> <a href="<?php echo $urls->urla ?>" target="_blank"> <?php endif; ?> <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> <img <?php if ($images->image_intro_caption): echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"'; endif; ?> src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/> </div> //new <?php if (isset($urls) and !empty($urls->urla)) : ?> </a> <?php endif; ?> <?php endif; ?>

So sollte dein Override aussehen, wenn das Template nicht schon ein Override hat.
Jetzt nur noch unter Link A den Link eintragen und das Einleitungsbild ist verlinkt.

Gruss
Damian
  • Pinsel48
  • Autor
  • Offline
  • Junior Mitglied
  • Junior Mitglied
Mehr
16 Apr. 2014 21:15 #38838 von Pinsel48
Pinsel48 antwortete auf Link auf dem Einleitungsbild
Merci Damian,
das war gleich in mehrfacher Hinsicht lehrreich :-D
  • anca
  • Neues Mitglied
  • Neues Mitglied
Mehr
15 Mai 2014 14:21 - 15 Mai 2014 14:23 #38955 von anca
anca antwortete auf Link auf dem Einleitungsbild
Hallo zusammen
Ich hab das auch in meinem Joomla 3.3 Server gem. Anleitung gemacht aber ich hab kein Link beim Beitragsbild.

Link

Das Bild "Sprachaufenthalte" müsste sich öffnen mit dem ganzen Dokument.
Mehr
15 Mai 2014 14:35 #38956 von Chris Hoefliger
Chris Hoefliger antwortete auf Link auf dem Einleitungsbild
Ist ja auch nichts hinterlegt:
Code:
<div class="img_caption none" style="float: none; width: 320px;"> <img class="caption" itemprop="thumbnailUrl" alt="alt text" src="/images/_reisefirma/inspiration/sprachaufenthalte_320x320.jpg" title="unterschirft"> <p class="img_caption">unterschirft</p>

Das Bild ist auch nicht gleich gross wie die andern.

Joomla! 3: Professionelle Webentwicklung von David Jardin und Elisa Foltyn - das Standardwerk zu Joomla! 3
Wer nicht über den Anstand verfügt, ein kleines "Thänx" auszusprechen, muss sich nicht wundern, künftig ignoriert zu werden!
Kein Support via PM oder Mail. Entsprechende Anfragen werden ignoriert.
  • anca
  • Neues Mitglied
  • Neues Mitglied
Mehr
15 Mai 2014 14:48 - 15 Mai 2014 14:52 #38957 von anca
anca antwortete auf Link auf dem Einleitungsbild
Bildgrösse ist mir bekannt und wird angepasst. Diese Einstellungen hab ich vorgenommen:

Was hab ich vergessen oder falsch gemacht?



default_item.php:
Code:
<?php /** * @package Joomla.Site * @subpackage com_content * * @copyright Copyright (C) 2005 - 2014 Open Source Matters, Inc. All rights reserved. * @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; // Create a shortcut for params. $params = &$this->item->params; $images = json_decode($this->item->images); $canEdit = $this->item->params->get('access-edit'); $info = $this->item->params->get('info_block_position', 0); $urls = json_decode($this->item->urls); ?> <?php if ($this->item->state == 0 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate()) || ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != '0000-00-00 00:00:00' )) : ?> <div class="system-unpublished"> <?php endif; ?> <?php if ($params->get('show_title')) : ?> <h2 class="item-title" itemprop="name"> <?php if ($params->get('link_titles') && $params->get('access-view')) : ?> <a href="<?php echo JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); ?>" itemprop="url"> <?php echo $this->escape($this->item->title); ?> </a> <?php else : ?> <?php echo $this->escape($this->item->title); ?> <?php endif; ?> </h2> <?php endif; ?> <?php if ($this->item->state == 0) : ?> <span class="label label-warning"><?php echo JText::_('JUNPUBLISHED'); ?></span> <?php endif; ?> <?php if (strtotime($this->item->publish_up) > strtotime(JFactory::getDate())) : ?> <span class="label label-warning"><?php echo JText::_('JNOTPUBLISHEDYET'); ?></span> <?php endif; ?> <?php if ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != '0000-00-00 00:00:00') : ?> <span class="label label-warning"><?php echo JText::_('JEXPIRED'); ?></span> <?php endif; ?> <?php if ($params->get('show_print_icon') || $params->get('show_email_icon') || $canEdit) : ?> <div class="btn-group pull-right"> <a class="btn dropdown-toggle" data-toggle="dropdown" href="#" role="button"> <span class="icon-cog"></span> <span class="caret"></span> </a> <ul class="dropdown-menu"> <?php if ($params->get('show_print_icon')) : ?> <li class="print-icon"> <?php echo JHtml::_('icon.print_popup', $this->item, $params); ?> </li> <?php endif; ?> <?php if ($params->get('show_email_icon')) : ?> <li class="email-icon"> <?php echo JHtml::_('icon.email', $this->item, $params); ?> </li> <?php endif; ?> <?php if ($canEdit) : ?> <li class="edit-icon"> <?php echo JHtml::_('icon.edit', $this->item, $params); ?> </li> <?php endif; ?> </ul> </div> <?php endif; ?> <?php // Todo Not that elegant would be nice to group the params ?> <?php $useDefList = ($params->get('show_modify_date') || $params->get('show_publish_date') || $params->get('show_create_date') || $params->get('show_hits') || $params->get('show_category') || $params->get('show_parent_category') || $params->get('show_author') ); ?> <?php if ($useDefList && ($info == 0 || $info == 2)) : ?> <dl class="article-info muted"> <dt class="article-info-term"> <?php echo JText::_('COM_CONTENT_ARTICLE_INFO'); ?> </dt> <?php if ($params->get('show_author') && !empty($this->item->author )) : ?> <dd class="createdby" itemprop="author" itemscope itemtype="http://schema.org/Person"> <?php $author = ($this->item->created_by_alias) ? $this->item->created_by_alias : $this->item->author; ?> <?php $author = '<span itemprop="name">' . $author . '</span>'; ?> <?php if (!empty($this->item->contact_link) && $params->get('link_author') == true) : ?> <?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', JHtml::_('link', $this->item->contact_link, $author, array('itemprop' => 'url'))); ?> <?php else: ?> <?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?> <?php endif; ?> </dd> <?php endif; ?> <?php if ($params->get('show_parent_category') && !empty($this->item->parent_slug)) : ?> <dd class="parent-category-name"> <?php $title = $this->escape($this->item->parent_title); ?> <?php if ($params->get('link_parent_category') && !empty($this->item->parent_slug)) : ?> <?php $url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->parent_slug)) . '" itemprop="genre">' . $title . '</a>'; ?> <?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?> <?php else : ?> <?php echo JText::sprintf('COM_CONTENT_PARENT', '<span itemprop="genre">' . $title . '</span>'); ?> <?php endif; ?> </dd> <?php endif; ?> <?php if ($params->get('show_category')) : ?> <dd class="category-name"> <?php $title = $this->escape($this->item->category_title); ?> <?php if ($params->get('link_category') && $this->item->catslug) : ?> <?php $url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug)) . '" itemprop="genre">' . $title . '</a>'; ?> <?php echo JText::sprintf('COM_CONTENT_CATEGORY', $url); ?> <?php else : ?> <?php echo JText::sprintf('COM_CONTENT_CATEGORY', '<span itemprop="genre">' . $title . '</span>'); ?> <?php endif; ?> </dd> <?php endif; ?> <?php if ($params->get('show_publish_date')) : ?> <dd class="published"> <span class="icon-calendar"></span> <time datetime="<?php echo JHtml::_('date', $this->item->publish_up, 'c'); ?>" itemprop="datePublished"> <?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?> </time> </dd> <?php endif; ?> <?php if ($info == 0) : ?> <?php if ($params->get('show_modify_date')) : ?> <dd class="modified"> <span class="icon-calendar"></span> <time datetime="<?php echo JHtml::_('date', $this->item->modified, 'c'); ?>" itemprop="dateModified"> <?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?> </time> </dd> <?php endif; ?> <?php if ($params->get('show_create_date')) : ?> <dd class="create"> <span class="icon-calendar"></span> <time datetime="<?php echo JHtml::_('date', $this->item->created, 'c'); ?>" itemprop="dateCreated"> <?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3'))); ?> </time> </dd> <?php endif; ?> <?php if ($params->get('show_hits')) : ?> <dd class="hits"> <span class="icon-eye-open"></span> <meta itemprop="interactionCount" content="UserPageVisits:<?php echo $this->item->hits; ?>" /> <?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?> </dd> <?php endif; ?> <?php endif; ?> </dl> <?php endif; ?> <?php if (isset($images->image_intro) && !empty($images->image_intro)) : ?> <?php $imgfloat = (empty($images->float_intro)) ? $params->get('float_intro') : $images->float_intro; ?> //new <?php if (isset($urls) and !empty($urls->urla)) : ?> <a href="<?php echo $urls->urla ?>" target="_blank"> <?php endif; ?> <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> <img <?php if ($images->image_intro_caption): echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"'; endif; ?> src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/> </div> //new <?php if (isset($urls) and !empty($urls->urla)) : ?> </a> <?php endif; ?> <?php endif; ?> <div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image"> <img <?php if ($images->image_intro_caption): echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"'; endif; ?> src="<?php echo htmlspecialchars($images->image_intro); ?>" alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/> </div> <?php endif; ?> <?php if (!$params->get('show_intro')) : ?> <?php echo $this->item->event->afterDisplayTitle; ?> <?php endif; ?> <?php echo $this->item->event->beforeDisplayContent; ?> <?php echo $this->item->introtext; ?> <?php if ($useDefList && ($info == 1 || $info == 2)) : ?> <dl class="article-info muted"> <dt class="article-info-term"> <?php echo JText::_('COM_CONTENT_ARTICLE_INFO'); ?> </dt> <?php if ($info == 1) : ?> <?php if ($params->get('show_author') && !empty($this->item->author )) : ?> <dd class="createdby" itemprop="author" itemscope itemtype="http://schema.org/Person"> <?php $author = $this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author; ?> <?php $author = '<span itemprop="name">' . $author . '</span>'; ?> <?php if (!empty($this->item->contact_link) && $params->get('link_author') == true) : ?> <?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', JHtml::_('link', $this->item->contact_link, $author, array('itemprop' => 'url'))); ?> <?php else : ?> <?php echo JText::sprintf('COM_CONTENT_WRITTEN_BY', $author); ?> <?php endif; ?> </dd> <?php endif; ?> <?php if ($params->get('show_parent_category') && !empty($this->item->parent_slug)) : ?> <dd class="parent-category-name"> <?php $title = $this->escape($this->item->parent_title); ?> <?php if ($params->get('link_parent_category') && $this->item->parent_slug) : ?> <?php $url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->parent_slug)) . '" itemprop="genre">' . $title . '</a>'; ?> <?php echo JText::sprintf('COM_CONTENT_PARENT', $url); ?> <?php else : ?> <?php echo JText::sprintf('COM_CONTENT_PARENT', '<span itemprop="genre">' . $title . '</span>'); ?> <?php endif; ?> </dd> <?php endif; ?> <?php if ($params->get('show_category')) : ?> <dd class="category-name"> <?php $title = $this->escape($this->item->category_title); ?> <?php if ($params->get('link_category') && $this->item->catslug) : ?> <?php $url = '<a href="' . JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug)) . '" itemprop="genre">' . $title . '</a>'; ?> <?php echo JText::sprintf('COM_CONTENT_CATEGORY', $url); ?> <?php else : ?> <?php echo JText::sprintf('COM_CONTENT_CATEGORY', '<span itemprop="genre">' . $title . '</span>'); ?> <?php endif; ?> </dd> <?php endif; ?> <?php if ($params->get('show_publish_date')) : ?> <dd class="published"> <span class="icon-calendar"></span> <time datetime="<?php echo JHtml::_('date', $this->item->publish_up, 'c'); ?>" itemprop="datePublished"> <?php echo JText::sprintf('COM_CONTENT_PUBLISHED_DATE_ON', JHtml::_('date', $this->item->publish_up, JText::_('DATE_FORMAT_LC3'))); ?> </time> </dd> <?php endif; ?> <?php endif; ?> <?php if ($params->get('show_create_date')) : ?> <dd class="create"> <span class="icon-calendar"></span> <time datetime="<?php echo JHtml::_('date', $this->item->created, 'c'); ?>" itemprop="dateCreated"> <?php echo JText::sprintf('COM_CONTENT_CREATED_DATE_ON', JHtml::_('date', $this->item->created, JText::_('DATE_FORMAT_LC3'))); ?> </time> </dd> <?php endif; ?> <?php if ($params->get('show_modify_date')) : ?> <dd class="modified"> <span class="icon-calendar"></span> <time datetime="<?php echo JHtml::_('date', $this->item->modified, 'c'); ?>" itemprop="dateModified"> <?php echo JText::sprintf('COM_CONTENT_LAST_UPDATED', JHtml::_('date', $this->item->modified, JText::_('DATE_FORMAT_LC3'))); ?> </time> </dd> <?php endif; ?> <?php if ($params->get('show_hits')) : ?> <dd class="hits"> <span class="icon-eye-open"></span> <meta itemprop="interactionCount" content="UserPageVisits:<?php echo $this->item->hits; ?>" /> <?php echo JText::sprintf('COM_CONTENT_ARTICLE_HITS', $this->item->hits); ?> </dd> <?php endif; ?> </dl> <?php if ($this->params->get('show_tags', 1)) : ?> <?php $this->item->tagLayout = new JLayoutFile('joomla.content.tags'); ?> <?php echo $this->item->tagLayout->render($this->item->tags->itemTags); ?> <?php endif; ?> <?php endif; ?> <?php if ($params->get('show_readmore') && $this->item->readmore) : if ($params->get('access-view')) : $link = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); else : $menu = JFactory::getApplication()->getMenu(); $active = $menu->getActive(); $itemId = $active->id; $link1 = JRoute::_('index.php?option=com_users&view=login&Itemid=' . $itemId); $returnURL = JRoute::_(ContentHelperRoute::getArticleRoute($this->item->slug, $this->item->catid)); $link = new JUri($link1); $link->setVar('return', base64_encode($returnURL)); endif; ?> <p class="readmore"><a class="btn" href="<?php echo $link; ?>" itemprop="url"> <span class="icon-chevron-right"></span> <?php if (!$params->get('access-view')) : echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE'); elseif ($readmore = $this->item->alternative_readmore) : echo $readmore; if ($params->get('show_readmore_title', 0) != 0) : echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit')); endif; elseif ($params->get('show_readmore_title', 0) == 0) : echo JText::sprintf('COM_CONTENT_READ_MORE_TITLE'); else : echo JText::_('COM_CONTENT_READ_MORE'); echo JHtml::_('string.truncate', ($this->item->title), $params->get('readmore_limit')); endif; ?> </a></p> <?php endif; ?> <?php if ($this->item->state == 0 || strtotime($this->item->publish_up) > strtotime(JFactory::getDate()) || ((strtotime($this->item->publish_down) < strtotime(JFactory::getDate())) && $this->item->publish_down != '0000-00-00 00:00:00' )) : ?> </div> <?php endif; ?> <?php echo $this->item->event->afterDisplayContent; ?>
Anhänge:
Mehr
10 Juni 2015 20:22 #41007 von seidlerweb
seidlerweb antwortete auf Link auf dem Einleitungsbild
bei mir lag's am falschen view...
ich mußte nur den override von Damian auf article statt featured anwenden;
danke @Damian ;-)

- der override für article funktioniert so wie Damian es beschreibt, nur
- die interessante Datei ist in com_content->article die default.php
- der a-tag muß so ca. ab Zeile 170 eingefügt werden
- und wer den normal generierten link jetzt nicht mehr haben will, muß nur noch 4,5 Zeilen höher

<?php //echo $this->loadTemplate('links'); ?>

den Aufruf von default_links.php auskommentieren...fertig
Folgende Benutzer bedankten sich: meteo
Mehr
27 Okt. 2015 11:35 - 27 Okt. 2015 11:36 #41769 von meteo
meteo antwortete auf Link auf dem Einleitungsbild
Hallo Seidlerweb

Ich habe diese Anletung durchspielen wollen, und habe den letzten Post erst zu spät gesehen. Auch bei mir geht die Anleitung von Damian nicht.
Ich weiss jedoch nicht, wie Du das genau meinst mit dem "a-tag"
Könntest Du nicht die Anleitung von Damian allenfalls nochmals anpassen und einstellen, so wie Du es gemacht hast?
Step-by-step .... für Blödiane wie mich ;-)

Das wäre extrem hilfreich, vierlen Dank vorab!

Markus

Nichts ist ärger als der Ärger.
Mehr
27 Nov. 2017 09:04 #45262 von Anja
Anja antwortete auf Link auf dem Einleitungsbild
Hallo Forum,
Ich habe ebenfalls versucht, mein Einleitungsbild mit einem Override von _item.php mit einem Link zu versehen, habe dabei die Anleitung von Damian benutzt, leider ergibt sich bei mir nach dem Einfügen immer ein Umleitungsfehler und die Seite wird nicht mehr dargestellt..
Die _item.php steht in mod_articles_news_adv
Könnt Ihr mir helfen?
Vielen Dank für eine Antwort

Code:

<?php
/**
* Articles Newsflash Advanced
*
* @license www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2
*
*/
defined('_JEXEC') or die;
$item_heading = $params->get('item_heading', 'h4');
$item_images = json_decode($item->images);
$urls = json_decode($this->item->urls);
?>

<!-- Item title -->
<?php if ($params->get('item_title')) : ?>
<<?php echo $item_heading; ?> class="item_title item_title__<?php echo $params->get('moduleclass_sfx'); ?>">
<?php if ($params->get('link_titles') && $item->link != '') : ?>
<a href="<?php echo $item->link;?>">
<?php echo $item->title;?></a>
<?php else : ?>
<?php echo $item->title; ?>
<?php endif; ?>
</<?php echo $item_heading; ?>>
<?php endif; ?>



<div class="item_content">

<!-- Intro Image -->
<?php if ($params->get('intro_image')): ?>
<?php if (isset($item_images->image_intro) and !empty($item_images->image_intro)) : ?>
<?php $imgfloat = (empty($item_images->float_intro)) ? $params->get('float_intro') : $item_images->float_intro; ?>

//new
<?php if (isset($urls) and !empty($urls->urla)) : ?>
<a href="<?php echo $urls->urla ?>" target="_blank">
<?php endif; ?>

<div class="pull-<?php echo htmlspecialchars($imgfloat); ?> item-image">
<img
<?php if ($images->image_intro_caption):
echo 'class="caption"'.' title="' .htmlspecialchars($images->image_intro_caption) .'"';
endif; ?>
src="<?php echo htmlspecialchars($images->image_intro); ?>"
alt="<?php echo htmlspecialchars($images->image_intro_alt); ?>"/>
</div>

//new
<?php if (isset($urls) and !empty($urls->urla)) : ?>
</a>
<?php endif; ?>

<?php endif; ?>


<div class="item_img img-intro img-intro__<?php echo htmlspecialchars($params->get('intro_image_align')); ?>">
<a href="<?php echo $item->link;?>">
<img
<?php if ($item_images->image_intro_caption):
echo 'class="caption"'.' title="' .htmlspecialchars($item_images->image_intro_caption) .'"';
endif; ?>
src="<?php echo htmlspecialchars($item_images->image_intro); ?>" alt="<?php echo htmlspecialchars($item_images->image_intro_alt); ?>"/></a>
</div>
<?php endif; ?>
<?php endif; ?>

<?php if (!$item_images->image_intro && $item_images->image_intro_caption): ?>
<i class="caption-ico <?php echo htmlspecialchars($item_images->image_intro_caption) ?>"></i>
<?php endif; ?>

<!-- Introtext -->
<?php if ($params->get('item_Introtext')) : ?>
<div class="item_introtext"><?php echo $item->introtext; ?></div>
<?php endif; ?>

<!-- Read More link -->
<?php if (isset($item->link) && $item->readmore != 0 && $params->get('readmore')) :
$readMoreText = JText::_('MOD_ARTICLES_NEWS_READMORE');
if ($item->alternative_readmore){
$readMoreText = $item->alternative_readmore;
}
echo '<a class="btn btn-info readmore" href="'.$item->link.'"><span>'. $readMoreText .'</span></a>';
endif; ?>
</div>

<div class="clearfix"></div>
  • Pinsel48
  • Autor
  • Offline
  • Junior Mitglied
  • Junior Mitglied
Mehr
21 Jan. 2018 11:53 #45392 von Pinsel48
Pinsel48 antwortete auf Link auf dem Einleitungsbild
Also ich weiss nicht ob das mit rechten Dingen zuging, es ist auch schon eine Weile her, aber es ging irgendwie so:
Ich habe im Joomla-Editor in einem Artikel einen Link auf das Bild gemacht und den Artikel veröffentlicht. Als ich dann das Bild von der Webseite wieder heruntergeladen und als Einleitungsbild wieder hochgeladen habe, blieb der Link irgendwie erhalten und hat funktioniert. Welcher Editior und welches Bildformat weiss ich leider nicht mehr
Grüessi
;)
Moderatoren: pascaleChris Hoefligeradiheutschi.chTribal6RePaoDragonlord
Powered by Kunena Forum

Joomla! Verband Schweiz - Mitglied werden