Welcome, Guest
Username: Password: Remember me

TOPIC: RokSprocket v2.1.21 - Mosaic - alt-tags

RokSprocket v2.1.21 - Mosaic - alt-tags 2 years 2 months ago #1

  • andweb
  • andweb's Avatar
  • Offline
Hi,
I use the template snowflake and the extension RokSprocket, Mosaic. I have unfortunately a problem with the alt-tags.
The images are taken from the corresponding article (introduction picture), where the alternative text was specified.
The override (<?php echo $item->getPrimaryImage()->getAlttext(); ?>) I have adapted:
/templates/corporategames/roksprocket/layouts/mosaic/default/item.php
<?php if ($item->getPrimaryLink()) : ?><a href="<?php echo $item->getPrimaryLink()->getUrl(); ?>"><?php endif; ?>
				<img src="<?php echo $item->getPrimaryImage()->getSource(); ?>" alt="<?php echo $item->getPrimaryImage()->getAlttext(); ?>" class="sprocket-mosaic-image" />
					<span class="sprocket-mosaic-hover"></span>
					<span class="sprocket-mosaic-shadow"></span>
					<?php if ($item->getPrimaryLink()) : ?>	<span class="sprocket-mosaic-hovercontent"><span>&nbsp;</span></span> <?php endif; ?>
				<?php if ($item->getPrimaryLink()) : ?>	
				</a>
				<?php endif; ?>
			</div>
			<?php else : ?>
				<?php if ($item->getPrimaryImage()) :?>
				<div class="sprocket-mosaic-image-container">
					<?php if ($item->getPrimaryLink()) : ?><a href="<?php echo $item->getPrimaryLink()->getUrl(); ?>"><?php endif; ?>
					<img src="<?php echo $item->getPrimaryImage()->getSource(); ?>" alt="<?php echo $item->getPrimaryImage()->getAlttext(); ?>" class="sprocket-mosaic-image" />
					<?php if ($item->getPrimaryLink()) : ?>
						<span class="sprocket-mosaic-hover"></span>
						<span class="sprocket-mosaic-shadow"></span>
						<span class="sprocket-mosaic-hovercontent"><span>&nbsp;</span></span>
					</a>
					<?php endif; ?>
				</div>
				<?php endif; ?>
However, the alternative text of the article image is not displayed in the source code: http://www.corporate-games.de
What am I doing wrong? :)

Thx in advance
Uli
The administrator has disabled public write access.

RokSprocket v2.1.21 - Mosaic - alt-tags 2 years 2 months ago #2

  • joomlaplates
  • joomlaplates's Avatar
  • Offline
Hi Uli,
please update the roksprocket and then use the following code for the "alt" parameter:
alt="<?php echo $item->getPrimaryImage ()->getAlttext(); ?>"
The administrator has disabled public write access.

RokSprocket v2.1.21 - Mosaic - alt-tags 2 years 2 months ago #3

  • andweb
  • andweb's Avatar
  • Offline
Hi,
I am a bit confused :)
I already use the current version (RokSprocket v2.1.21) and the code is already included.
The administrator has disabled public write access.

RokSprocket v2.1.21 - Mosaic - alt-tags 2 years 2 months ago #4

  • joomlaplates
  • joomlaplates's Avatar
  • Offline
Hi there,
1.) Clean your Joomla and Browser cache
2.) Insert an alt tag for the Content image > image 1
3.) Check the source code > image 2


The administrator has disabled public write access.

RokSprocket v2.1.21 - Mosaic - alt-tags 2 years 2 months ago #5

  • andweb
  • andweb's Avatar
  • Offline
Hi again,
Unfortunately, all this has brought no success.





Uli
The administrator has disabled public write access.

RokSprocket v2.1.21 - Mosaic - alt-tags 2 years 2 months ago #6

  • joomlaplates
  • joomlaplates's Avatar
  • Offline
Maybe you are in the wrong file.
Please check it, because there are 2 different styles > gallery and default.
/templates/corporategames/roksprocket/layouts/mosaic/default/item.php
and
/templates/corporategames/roksprocket/layouts/mosaic/gallery/item.php
The administrator has disabled public write access.
The following user(s) said Thank You: andweb

RokSprocket v2.1.21 - Mosaic - alt-tags 2 years 2 months ago #7

  • andweb
  • andweb's Avatar
  • Offline
Thank you for your support!
Your note to another file has brought me to the solution.
The override for the style "default" was created (The override "Gallery" does not exist with me.), but changes to the item.php have not caused anything. For this the direct changes in the "components/com_roksprocket/ ..." directory worked. Funny.

Many many thanks.
Uli
The administrator has disabled public write access.
Moderators: joomlaplates

Einzelnes Theme ( Download 1 Template)

Das sog. "Einzelne Theme" ist für alle Kunden geeignet die lediglich ein (1) Template benötigen, egal ob kommerziell oder privat genutzt. Sie dürfen das erworbene Template auf einer Joomla Installation produktiv nutzen.


Mitgliedschaft ( Download alle Templates)

Während ihrer Mitgliedschaft ist es ihnen erlaubt alle Templates herunter zu laden und unseren Bestimmungen entsprechend zu nutzen. Nach Ablauf der Mitgliedschaft dürfen sie natürlich alle bereits in Nutzung befindlichen Templates weiter einsetzen. Sie haben jedoch nach Ende ihrer Mitgliedschaft keinen Zugriff mehr auf den Download Bereich und keinen Zugriff mehr auf Updates.

Die Zahlung ist einmalig und ihr Membership läuft automatisch aus, sofern sie es nicht erneuern.

Unsere Mitgliedschaften bieten wir ausschließlich über JoomlaPlates.com an.

Jetzt kaufen