Welcome, Guest
Username: Password: Remember me

TOPIC: Read More only shown as text in a Blog Articel

Read More only shown as text in a Blog Articel 1 year 10 months ago #1

  • DJ-Rene
  • DJ-Rene's Avatar
  • Offline
Read More only shown as text "Read More" not as a button in a Blog article.
I use the <hr id="system-readmore" />.
How can set it up, so it looks like in the Demo of the Template, as a button?
Attachments:
The administrator has disabled public write access.

Read More only shown as text in a Blog Articel 1 year 10 months ago #2

  • joomlaplates
  • joomlaplates's Avatar
  • Offline
Hi there,
the Interior theme has no button for the Joomla article read more function.
The button is only for the modules.

If you want to have a button for the Joomla article you have to create an override.
yootheme.com/themes/documentation/developers/customization

The administrator has disabled public write access.

Read More only shown as text in a Blog Articel 1 year 10 months ago #3

  • DJ-Rene
  • DJ-Rene's Avatar
  • Offline
Hi thank you for the quick answer, but i don't what to do, that the readmore text looks like the readmore button in the template demo

I have found this code in the default.php:
<p class="readmore">
<a href="<?php echo $link; ?>" class="register">
<?php $attribs = json_decode($this->item->attribs); ?>
<?php
if ($attribs->alternative_readmore == null) :
echo JText::_('COM_CONTENT_REGISTER_TO_READ_MORE');
elseif ($readmore = $attribs->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>

Can you tell me what i must set here?
The administrator has disabled public write access.

Read More only shown as text in a Blog Articel 1 year 10 months ago #4

  • joomlaplates
  • joomlaplates's Avatar
  • Offline
Hi there,
you have to copy the file:
..\jp-interior\warp\systems\joomla\layouts\article.php
to
..\jp-interior\layouts\article.php
and add a class uk-button to the read more link.


I have add the file with modified read more. Please copy this file to the folder:
..\jp-interior\layouts\article.php

This attachment is hidden for guests.
Please log in or register to see it.
The administrator has disabled public write access.

Read More only shown as text in a Blog Articel 1 year 10 months ago #5

  • DJ-Rene
  • DJ-Rene's Avatar
  • Offline
Wow, thank you very much, that works perfectly!
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