End of Support for Joomla 3 - Forum closed

[SOLVED] roksprocket image mit url verlinken

roksprocket image mit url verlinken was created by IUSBonn

Posted 10 years 2 months ago #10700
Guten Tag,

hoffe Sie können mir weiterhelfen.
Ich benutze das jp-life template mit roksprocket->strips->joomla. Ich möchte jetzt den read more button deaktivieren und den url link nur über das image durchführen.
Theme = separated
Animation = fly in

Es sieht ja schon komisch aus wenn das Image animiert ist, aber man extra noch auf read more klicken muß um einem link zu folgen, da macht die image animation ja keinen Sinn und ist nur spielkram.

Gibt es hierzu einen workaround?

Vielen Dank mit freundlichen Grüßen Victor
by IUSBonn

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic roksprocket image mit url verlinken

Posted 10 years 2 months ago #10701
Hallo, sie können die Ansicht des Module überschreiben.
>> Ihr Joomla\templates\jp-life\roksprocket\layouts\strips\themes\separated\item.php

Anbei habe ich ihnen die "item.php" so abgeändert. dass das Bild nun der Link zum Artikel ist

<?php
/**
* @version $Id: item.php 10885 2013-05-30 06:31:41Z btowles $
* @author RocketTheme www.rockettheme.com
* @copyright Copyright (C) 2007 - 2015 RocketTheme, LLC
* @license www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 only
*/

?>
<li class="sprocket-strips-s-block" data-strips-item>
<div class="sprocket-strips-s-item" data-strips-content>
<?php if ($item->getPrimaryImage()) :?>
<div style="overflow:hidden">
<a href="<?php echo $item->getPrimaryLink()->getUrl(); ?>">
<img src="<?php echo $item->getPrimaryImage()->getSource(); ?>" alt="<?php echo $item->getPrimaryImage()->getAlttext(); ?>" />
</a>
</div>
<?php endif; ?>
<div class="sprocket-strips-s-content">
<?php if ($item->getTitle()) : ?>
<h4 class="sprocket-strips-s-title" data-strips-toggler>
<?php if ($item->getPrimaryLink()) : ?><a href="<?php echo $item->getPrimaryLink()->getUrl(); ?>"><?php endif; ?>
<?php echo $item->getTitle();?>
<?php if ($item->getPrimaryLink()) : ?></a><?php endif; ?>
</h4>
<?php endif; ?>
<?php if ($item->getText()) :?>
<span class="sprocket-strips-s-text">
<?php echo $item->getText(); ?>
</span>
<?php endif; ?>
<?php if ($item->getPrimaryLink()) : ?>
<a href="<?php echo $item->getPrimaryLink()->getUrl(); ?>" class="uk-button uk-button-primary"><span><?php rc_e('READ_MORE'); ?></span></a>
<?php endif; ?>
</div>
</div>
</li>


Einfach mal ausprobieren!

Please Log in or Create an account to join the conversation.

Replied by IUSBonn on topic roksprocket image mit url verlinken

Posted 10 years 2 months ago #10765
Hallo, vielen Dank für die Hilfe.

<div style="overflow:hidden">
<a href="<?php echo $item->getPrimaryLink()->getUrl(); ?>">
<img class="hover-effect" img src="<?php echo $item->getPrimaryImage()->getSource(); ?>" alt="<?php echo $item->getPrimaryImage()->getAlttext(); ?>" />
</a>
</div>

Die von Ihnen geänderte Zeile habe ich eingebaut, funktioniert prima und um den hover effect ergänzt, und im script das weiterlesen entfernt.

Danke vielmals Victor
by IUSBonn

Please Log in or Create an account to join the conversation.

Replied by joomlaplates on topic [SOLVED] roksprocket image mit url verlinken

Posted 10 years 2 months ago #10767
Problem solved.

Please Log in or Create an account to join the conversation.

Moderators: joomlaplates

Installations-Service

Don´t waste your time, we install your purchased Template
with the "Demo Content" within the next 24 hours.

Buy Now - 59€

JoomlaPlates

Professional Joomla Templates with rich documentation and support since 2008. 60+ templates for Joomla 5 & 6.

Joomla 4 Joomla 5 Joomla 6
Contact & Legal
  • support@joomlaplates.com
  • Support Team
  • Mon-Fri: 9:00-18:00 CET

© JoomlaPlates. All rights reserved. 2008 - 2026

JoomlaPlates is not affiliated with or endorsed by the Joomla! Project. Joomla! is a registered trademark of Open Source Matters, Inc.