+ Antworten
Ergebnis 1 bis 5 von 5

Thema: Weitere Symbole in der div.buttonheading

  1. #1
    Neu an Board
    Registriert seit
    04.03.2010
    Beiträge
    59
    Bedankte sich
    6
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard Weitere Symbole in der div.buttonheading

    Über meinen Beiträgen habe ich einen Container, in dem der Autor, das Erstellungsdatum und die Print/email/pdf Buttons angeziegt werden. ("div.article-tools div.article-meta div.buttonheading").

    Nun habe ich mir das Plug-In "Twitter article plugin" installiert.
    Es handelt sich um ein content Plug-In.

    Ist es nun möglich, das Symbol in den Container, neben die print/email/pdf Symbole zu bekommen.
    Im Plugin selbst, kann ich die Position nur innerhalb des Content wählen.


    Vllt kann man das Plugin in die /components/com_content/views/frontpage/tmpl/default_item.php laden.
    Wie kompliziert ist das? Leider kann ich (noch) kein php.
    Kann mir jmd sagen wie kompliziert das allgemein ist und ob mir jmd helfen könnte, die Idee umzusetzen?

    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 ($this->item->state == 0) : ?>
    <div class="system-unpublished">
    <?php endif; ?>

    <?php if ($canEdit || $this->item->params->get('show_title') || $this->item->params->get('show_pdf_icon') || $this->item->params->get('show_print_icon') || $this->item->params->get('show_email_icon')) : ?>
    <table class="contentpaneopen<?php echo $this->item->params->get'pageclass_sfx' ); ?>">
    <tr>
        <?php if ($this->item->params->get('show_title')) : ?>
        <td class="contentheading<?php echo $this->item->params->get'pageclass_sfx' ); ?>" width="100%">
            <?php if ($this->item->params->get('link_titles') && $this->item->readmore_link != '') : ?>
            <a href="<?php echo $this->item->readmore_link?>" class="contentpagetitle<?php echo $this->item->params->get'pageclass_sfx' ); ?>">
                <?php echo $this->item->title?></a>
            <?php else : ?>
                <?php echo $this->escape($this->item->title); ?>
            <?php endif; ?>
        </td>
        <?php endif; ?>

        <?php if ($this->item->params->get('show_pdf_icon')) : ?>
        <td align="right" width="100%" class="buttonheading">
        <?php echo JHTML::_('icon.pdf'$this->item$this->item->params$this->access); ?>
        </td>
        <?php endif; ?>

        <?php if ( $this->item->params->get'show_print_icon' )) : ?>
        <td align="right" width="100%" class="buttonheading">
        <?php echo JHTML::_('icon.print_popup'$this->item$this->item->params$this->access); ?>
        </td>
        <?php endif; ?>

        <?php if ($this->item->params->get('show_email_icon')) : ?>
        <td align="right" width="100%" class="buttonheading">
        <?php echo JHTML::_('icon.email'$this->item$this->item->params$this->access); ?>
        </td>
        <?php endif; ?>
        <?php if ($canEdit) : ?>
        <td>
            <?php echo JHTML::_('icon.edit'$this->item$this->item->params$this->access); ?>
        </td>
        <?php endif; ?>
    </tr>
    </table>
    <?php endif; ?>
    <?php  
    if (!$this->item->params->get('show_intro')) :
        echo 
    $this->item->event->afterDisplayTitle;
    endif; 
    ?>
    <?php 
    echo $this->item->event->beforeDisplayContent?>
    <table class="contentpaneopen<?php echo $this->item->params->get'pageclass_sfx' ); ?>">
    <?php if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
    <tr>
        <td>
            <?php if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) : ?>
            <span>
                <?php if ($this->item->params->get('link_section')) : ?>
                    <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">'?>
                <?php endif; ?>
                <?php echo $this->item->section?>
                <?php if ($this->item->params->get('link_section')) : ?>
                    <?php echo '</a>'?>
                <?php endif; ?>
                    <?php if ($this->item->params->get('show_category')) : ?>
                    <?php echo ' - '?>
                <?php endif; ?>
            </span>
            <?php endif; ?>
            <?php if ($this->item->params->get('show_category') && $this->item->catid) : ?>
            <span>
                <?php if ($this->item->params->get('link_category')) : ?>
                    <?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug$this->item->sectionid)).'">'?>
                <?php endif; ?>
                <?php echo $this->item->category?>
                <?php if ($this->item->params->get('link_section')) : ?>
                    <?php echo '</a>'?>
                <?php endif; ?>
            </span>
            <?php endif; ?>
        </td>
    </tr>
    <?php endif; ?>

    <?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?>
    <tr>
        <td width="70%"  valign="top" colspan="2">
            <span class="small">
                <?php JText::printf'Written by', ($this->item->created_by_alias $this->item->created_by_alias $this->item->author) ); ?>
            </span>
            &nbsp;&nbsp;
        </td>
    </tr>
    <?php endif; ?>

    <?php if ($this->item->params->get('show_create_date')) : ?>
    <tr>
        <td valign="top" colspan="2" class="createdate">
            <?php echo JHTML::_('date'$this->item->createdJText::_('DATE_FORMAT_LC2')); ?>
        </td>
    </tr>
    <?php endif; ?>

    <?php if ($this->item->params->get('show_url') && $this->item->urls) : ?>
    <tr>
        <td valign="top" colspan="2">
            <a href="http://<?php echo $this->item->urls ?>" target="_blank">
                <?php echo $this->item->urls?></a>
        </td>
    </tr>
    <?php endif; ?>

    <tr>
    <td valign="top" colspan="2">
    <?php if (isset ($this->item->toc)) : ?>
        <?php echo $this->item->toc?>
    <?php 
    endif; ?>
    <?php 
    echo $this->item->text?>
    </td>
    </tr>

    <?php if ( intval($this->item->modified) != && $this->item->params->get('show_modify_date')) : ?>
    <tr>
        <td colspan="2"  class="modifydate">
            <?php echo JText::_'Last Updated' ); ?> ( <?php echo JHTML::_('date'$this->item->modifiedJText::_('DATE_FORMAT_LC2')); ?> )
        </td>
    </tr>
    <?php endif; ?>

    <?php if ($this->item->params->get('show_readmore') && $this->item->readmore) : ?>
    <tr>
        <td  colspan="2">
            <a href="<?php echo $this->item->readmore_link?>" class="readon<?php echo $this->item->params->get('pageclass_sfx'); ?>">
                <?php if ($this->item->readmore_register) :
                    echo 
    JText::_('Register to read more...');
                elseif (
    $readmore $this->item->params->get('readmore')) :
                    echo 
    $readmore;
                else :
                    echo 
    JText::sprintf('Read more...');
                endif; 
    ?></a>
        </td>
    </tr>
    <?php endif; ?>

    </table>
    <?php if ($this->item->state == 0) : ?>
    </div>
    <?php endif; ?>
    <span class="article_separator">&nbsp;</span>
    <?php echo $this->item->event->afterDisplayContent?>
    Geändert von Epozz (29.07.2010 um 10:36 Uhr)

  2. #2
    War schon öfter hier
    Registriert seit
    28.06.2009
    Beiträge
    110
    Bedankte sich
    11
    Erhielt 24 Danksagungen
    in 22 Beiträgen

    Standard

    Poste bitte dochmal einen Link zu deiner Webseite.
    So wie ich es verstanden habe ist alles mit Css lösbar.
    Joomla - Wordpress - Webdesign - Content Managment Systeme - Printmedien - Hamm - Lippstadt: www.medienwerkstatt-lippstadt.de

  3. #3
    Neu an Board
    Registriert seit
    04.03.2010
    Beiträge
    59
    Bedankte sich
    6
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard

    Nach Recherche im Internet, wird das Thema PDF-Icon usw schon heiß diskuttiert ;-)

    Nur über CSS wirds nicht gehen, da es eine unsaubere Lösung ist.
    Ich möchte das Plug-In in die "/components/com_content/views/frontpage/tmpl/default_item.php" einbinden.

    im Prinzip müsste man doch den Codeschnippsel anpassen können und das Plug-In dort reinladen können:

    PHP-Code:
    <?php if ($this->item->params->get('show_pdf_icon')) : ?>
        <td align="right" width="100%" class="buttonheading">
        <?php echo JHTML::_('icon.pdf'$this->item$this->item->params$this->access); ?>
        </td>
        <?php endif; ?>
    Sozusagen den php-Code für das PDF an das Twitter-Plugin anpassen.

    Die Seite wollte ich noch nicht freigeben, da sie noch nicht fertig ist.
    Ich weiß, nicht sehr förderlich... aber zum diskuttieren muss das reichen ;-), da ich keine (reine) CSS Lösung haben will, sondern das Plug-In in das PHP integrieren möchte.
    Geändert von Epozz (29.07.2010 um 10:39 Uhr)

  4. #4
    Hat hier eine Zweitwohnung Avatar von JoomDesign
    Registriert seit
    19.03.2006
    Ort
    Berlin, Deutschland
    Beiträge
    1.927
    Bedankte sich
    269
    Erhielt 594 Danksagungen
    in 511 Beiträgen

    Standard

    Zitat Zitat von Epozz Beitrag anzeigen

    im Prinzip müsste man doch den Codeschnippsel anpassen können und das Plug-In dort reinladen können:
    Eigentlich brauchst Du dort dann nur einen Code-Schnipsel von dieser Seite einfügen. Das Plugin brauchst dann garnicht, es sei denn Du musst das Ding an/aus machen können im Backend.

  5. #5
    Neu an Board
    Registriert seit
    04.03.2010
    Beiträge
    59
    Bedankte sich
    6
    Erhielt 0 Danksagungen
    in 0 Beiträgen

    Standard

    ok, das werde ich mir mal in ruhe angucken ;-) sieht schon nach einem Lösungsansatz aus.

    Ich melde mich, ob ich es hinbekommen habe.

+ Antworten

Lesezeichen

Berechtigungen

  • Neue Themen erstellen: Nein
  • Themen beantworten: Nein
  • Anhänge hochladen: Nein
  • Beiträge bearbeiten: Nein