SO!!!
Aus die Maus - Joomla had to admit defeed!
LÖSUNG:
Eingriff in die Datei \components\com_content\views\article\tmpl\default .php Zeile 1- 48 :
PHP-Code:
<?php // no direct access
defined('_JEXEC') or die('Restricted access');
$canEdit = ($this->user->authorize('com_content', 'edit', 'content', 'all') || $this->user->authorize('com_content', 'edit', 'content', 'own'));
?>
<?php if ($canEdit || $this->params->get('show_title') || $this->params->get('show_pdf_icon') || $this->params->get('show_print_icon') || $this->params->get('show_email_icon')) : ?>
<!-- ÄNDERUNG DES CODES -->
<!-- parent for move -->
<div id="button_heading_pos_frame">
<!-- container for buttons -->
<div id="button_heading_position">
<!-- let's have buttons on top of all in own table -->
<table>
<?php endif; ?>
<?php if (!$this->print) : ?>
<?php if ($this->params->get('show_pdf_icon')) : ?>
<td align="right" class="buttonheading">
<?php echo JHTML::_('icon.pdf', $this->article, $this->params, $this->access); ?>
</td>
<?php endif; ?>
<?php if ( $this->params->get( 'show_print_icon' )) : ?>
<td align="right" class="buttonheading">
<?php echo JHTML::_('icon.print_popup', $this->article, $this->params, $this->access); ?>
</td>
<?php endif; ?>
<?php if ($this->params->get('show_email_icon')) : ?>
<td align="right" class="buttonheading">
<?php echo JHTML::_('icon.email', $this->article, $this->params, $this->access); ?>
</td>
<?php endif; ?>
<?php if ($canEdit) : ?>
<td align="right" class="buttonheading">
<?php echo JHTML::_('icon.edit', $this->article, $this->params, $this->access); ?>
</td>
<?php endif; ?>
<?php else : ?>
<td align="right" class="buttonheading">
<?php echo JHTML::_('icon.print_screen', $this->article, $this->params, $this->access); ?>
</td>
<?php endif; ?>
</tr>
</table> <!-- end of table for button -->
</div>
</div>
<!-- now let's get the title -->
<table class="contentpaneopen<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<tr>
<?php if ($this->params->get('show_title')) : ?>
<td class="contentheading<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<?php if ($this->params->get('link_titles') && $this->article->readmore_link != '') : ?>
<a href="<?php echo $this->article->readmore_link; ?>" class="contentpagetitle<?php echo $this->params->get( 'pageclass_sfx' ); ?>">
<?php echo $this->escape($this->article->title); ?></a>
<?php else : ?>
<?php echo $this->escape($this->article->title); ?>
<?php endif; ?>
</td>
</tr>
</table><!-- end of title -->
im CSS kann man dann mit folgenden Klassen / ID's über die Icons verfügen:
HTML-Code:
/* NO Frames around PDF-Button */
.buttonheading img {
border:0px;
}
/* row in which buttons exists - set position here */
#button_heading_pos_frame{
float: right;
}
/* container - change width to separate buttons more or less */
#button_heading_position {
width: 100px;
}
EDIT: evtl. sind gleiche änderungen in anderen components zu machen, zumindest die Startseite hat in \components\com_content\views\ einen eigenen Code (saudumm eigentlich!).
Zudem brauchen die Buttons weiterhin recht viel Platz im Content, das Element ist ca. 50px hoch was pure Platzverschwendung ist. Ich werde dran bleiben und ggf. meine Lösung dazu auch hier noch einhängen.
Gruß
Torsten
Lesezeichen