End of Support for Joomla 3 - Forum closed

[SOLVED] RockSprocket-Modul - Bildverlinkung

  • ofv1907
  • ofv1907's Avatar Offline Topic Author
  • Gold Boarder
  • Gold Boarder
  • Posts: 280
  • Thank you received: 15

Replied by ofv1907 on topic RockSprocket-Modul - Bildverlinkung

Posted 5 years 3 months ago #24548
Guten Tag,

das verstehe ich sehr. Daher habe ich versucht einen Teil vom Beitrags-Verlinkungs-Script -->

<a data-lightbox-type="iframe" data-uk-lightbox="{group:'<?php echo $item->getPrimaryImage()->getAlttext(); ?>'}" href="<?php echo $item->getPrimaryLink()->getUrl(); ?>?tmpl=component" class=" readon uk-button "><span><?php rc_e('READ_MORE'); ?></span></a>

mit dem von Bild -->

<?php if (!$item->getPrimaryImage()) :?>
<div class="plain">
<?php endif; ?>
<!--Plain-->
<div class="sprocket-strips-c-item" data-strips-content>
<?php if ($item->getPrimaryImage()) :?>
<img src="<?php echo $item->getPrimaryImage()->getSource(); ?>" class="sprocket-strips-c-image" alt="<?php echo $item->getPrimaryImage()->getAlttext(); ?>" />
<?php endif; ?>

zuverbinden. Klappt aber nicht wie gewollt, damit beim Klicken auf das Beitragsbid ebenso das PopUp öffnet.

Vielen Dank für Ihre Geduld und Bemühungen...
by ofv1907

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

Replied by joomlaplates on topic RockSprocket-Modul - Bildverlinkung

Posted 5 years 3 months ago #24552
Posten sie mal den org code von der "item.php" aber ohne ihre Änderungen.
Und was möchten sie denn generell?
1.) Popup vom Bild zum Artikel oder vom Bild auf ein größeres Bild?
2.) Popup vom Readmore zum Artikel?

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

  • ofv1907
  • ofv1907's Avatar Offline Topic Author
  • Gold Boarder
  • Gold Boarder
  • Posts: 280
  • Thank you received: 15

Replied by ofv1907 on topic RockSprocket-Modul - Bildverlinkung

Posted 5 years 3 months ago #24557
... zusätzlich zur bestehenden "Read more..."-PopUp-Verlinkung zun Artikel noch eine Verlinkung vom Bild zum Artikel.

Bestehender Code mit PopUp über "Read more..."
<?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
*/

?>
<div class="sprocket-strips-c-block" data-strips-item>
<!--Plain-->
<?php if (!$item->getPrimaryImage()) :?>
<div class="plain">
<?php endif; ?>
<!--Plain-->
<div class="sprocket-strips-c-item" data-strips-content>
<?php if ($item->getPrimaryImage()) :?>
<img src="<?php echo $item->getPrimaryImage()->getSource(); ?>" class="sprocket-strips-c-image" alt="<?php echo $item->getPrimaryImage()->getAlttext(); ?>" />
<?php endif; ?>
<div class="sprocket-strips-c-content">
<?php if ($item->getTitle()) : ?>
<h4 class="sprocket-strips-c-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; ?>
<div class="sprocket-strips-c-extended">
<div class="sprocket-strips-c-extended-info">
<?php if ($item->getText()) :?>
<span class="sprocket-strips-c-text">
<?php echo $item->getText(); ?>
</span>
<?php endif; ?>
<?php if ($item->getPrimaryLink()) : ?>
<a data-lightbox-type="iframe" data-uk-lightbox="{group:'<?php echo $item->getPrimaryImage()->getAlttext(); ?>'}" href="<?php echo $item->getPrimaryLink()->getUrl(); ?>?tmpl=component" class=" readon uk-button "><span><?php rc_e('READ_MORE'); ?></span></a>
<?php endif; ?>
</div>
</div>
</div>
</div>
<!--Plain-->
<?php if (!$item->getPrimaryImage()) :?>
</div>
<?php endif; ?>
<!--Plain-->
</div>
Last Edit:5 years 3 months ago by ofv1907
Last edit: 5 years 3 months ago by ofv1907.

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

Replied by joomlaplates on topic RockSprocket-Modul - Bildverlinkung

Posted 5 years 3 months ago #24560
Folgender Code sollte funktionieren

<?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
*/

?>
<div class="sprocket-strips-c-block" data-strips-item>
<!--Plain-->
<?php if (!$item->getPrimaryImage()) :?>
<div class="plain">
<?php endif; ?>
<!--Plain-->
<div class="sprocket-strips-c-item" data-strips-content>
<?php if ($item->getPrimaryImage()) :?>
<a data-lightbox-type="iframe" data-uk-lightbox href="<?php echo $item->getPrimaryLink()->getUrl(); ?>?tmpl=component"><img src="<?php echo $item->getPrimaryImage()->getSource(); ?>" class="sprocket-strips-c-image" alt="<?php echo $item->getPrimaryImage()->getAlttext(); ?>" /></a>
<?php endif; ?>
<div class="sprocket-strips-c-content">
<?php if ($item->getTitle()) : ?>
<h4 class="sprocket-strips-c-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; ?>
<div class="sprocket-strips-c-extended">
<div class="sprocket-strips-c-extended-info">
<?php if ($item->getText()) :?>
<span class="sprocket-strips-c-text">
<?php echo $item->getText(); ?>
</span>
<?php endif; ?>
<?php if ($item->getPrimaryLink()) : ?>
<a data-lightbox-type="iframe" data-uk-lightbox="{group:'<?php echo $item->getPrimaryImage()->getAlttext(); ?>'}" href="<?php echo $item->getPrimaryLink()->getUrl(); ?>?tmpl=component" class=" readon uk-button "><span><?php rc_e('READ_MORE'); ?></span></a>
<?php endif; ?>
</div>
</div>
</div>
</div>
<!--Plain-->
<?php if (!$item->getPrimaryImage()) :?>
</div>
<?php endif; ?>
<!--Plain-->
</div>

The following user(s) said Thank You: ofv1907

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

  • ofv1907
  • ofv1907's Avatar Offline Topic Author
  • Gold Boarder
  • Gold Boarder
  • Posts: 280
  • Thank you received: 15

Replied by ofv1907 on topic RockSprocket-Modul - Bildverlinkung

Posted 5 years 3 months ago #24563
Das funktioniert prima. Vielen Dank...
by ofv1907

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

  • ofv1907
  • ofv1907's Avatar Offline Topic Author
  • Gold Boarder
  • Gold Boarder
  • Posts: 280
  • Thank you received: 15

Replied by ofv1907 on topic [SOLVED] RockSprocket-Modul - Bildverlinkung

Posted 5 years 3 months ago #24564
Problem solved.
by ofv1907

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/Theme-Point is not affiliated with or endorsed by Open Source Matters or the Joomla! Project

Copyright © 2024 JoomlaPlates | Professional Joomla Templates with Uikit 3

Disclaimer & Privacy | License