Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • kadad Friend
    #161944

    Hello,

    Article in K2 Portfolio with extra field have a certain presentation. Like this :
    [/URL]

    I would like to change this and get this result :

    [/URL]

    Note that image comes from k2’s image embedded tab.

    Thanks for your help.

    khoand Friend
    #383330

    Hi,
    Do you give me your page url?

    Phill Moderator
    #383332

    Can you not use the image button on the content tab and click the align dropdown to position your image?

    kadad Friend
    #383335

    It would be easier for me but not for the guy that will have to make articles. If there is no other solution.

    Anyway I need the extra field grid and text to be placed another way. So I’ll probably need to make modifications.

    kadad Friend
    #383336

    The website is here :

    http://www.api973.fr

    I sent you login to enter.

    kadad Friend
    #383337

    You are right. It’s easier for me, but not for the guy I’m making the website. If there is no other solution.

    I also need the extra field grid to be next to the text. I wil have to change disposition.

    khoand Friend
    #383358

    Hi,
    You do following steps:
    – Open <joomla url>templatesja_portfolio1htmlcom_k2templatesja_portfolio_blogitem.php file, find and move this code


    <?php if($this->item->params->get('itemExtraFields') && count($this->item->extra_fields)): ?>
    <!-- Item extra fields -->
    <div class="itemExtraFields">
    <h3><?php echo JText::_('Additional Info'); ?></h3>
    <ul>
    <?php foreach ($this->item->extra_fields as $key=>$extraField):?>
    <li class="<?php echo ($key%2) ? "odd" : "even"; ?> type<?php echo ucfirst($extraField->type); ?> group<?php echo $extraField->group; ?>">
    <span class="itemExtraFieldsLabel"><?php echo $extraField->name; ?>:</span>
    <span class="itemExtraFieldsValue"><?php echo $extraField->value; ?></span>
    </li>
    <?php endforeach; ?>
    </ul>
    <div class="clr"></div>
    </div>
    <?php endif; ?>

    before


    <?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?>

    – Open <joomla url>templatesja_portfolio1cssk2.css file, find these code

    div.itemExtraFields {
    margin: 15px 10px 20px 0; <-- change value
    padding: 15px;
    border: 2px solid #ddd;
    background: #fcfcfc;
    float:left; <--add this line
    }


    div.itemExtraFields ul li span.itemExtraFieldsLabel {
    display: block;
    float: left;
    font-weight: bold;
    margin: 0 4px 0 0;
    width: 60%; <-- change value
    }

    kadad Friend
    #384992

    Thank you for your answer. Sorry to answer so late.

    In your explanation, I don’t understand what has to be change in template.css.

    I changed the information described in the two last code box you furnished. The extrafield is a bit less large but at the exact same position, which means not integrated in the text.

    Maybe I missed something.

    kadad Friend
    #385296

    I managed to place extra field at the right position. Thanx a lot.

    I still had to :

    – Get rid of date of article and name of author that appears in the middle of the extra field
    – To integrate texte and image such as on illustration.
    – Get rid of all that appears under text

    Thank again.

    kadad Friend
    #385969

    Any help to close the subject ?

    Thanx

    khoand Friend
    #386131

    Hi,
    Could you give me a link to your page that has extra field? I can’t find such page on your site.

    kadad Friend
    khoand Friend
    #386705

    <em>@kadad 232828 wrote:</em><blockquote>
    Get rid of date of article and name of author that appears in the middle of the extra field
    </blockquote>
    – Open <joomla url>templatesja_portfolio1htmlcom_k2templates ja_portfolio_blogitem.php file, remove this code


    <div class="blog-post-date clearfix">
    <?php
    $stringDate = JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC3'));
    $arrdate = explode(" ", $stringDate);
    ?>
    <span class="date"><?php echo $arrdate[0]; ?></span>
    <div class="month-year">
    <span class="month"><?php echo substr($arrdate[1], 0, 3); ?></span>
    <span class="year"><?php echo substr($arrdate[2], 0, 4); ?></span>
    </div>
    </div>

    – Replace this code


    <h3><?php echo JText::_('Additional Info'); ?></h3>

    with

    <?php
    $stringDate = JHTML::_('date', $this->item->created , JText::_('DATE_FORMAT_LC3'));
    $arrdate = explode(" ", $stringDate);
    ?>
    <h3><?php echo substr($arrdate[1], 0, 3); ?>-<?php echo $arrdate[0]; ?>-<?php echo substr($arrdate[2], 0, 4); ?></h3>

    kadad Friend
    #392706

    Hi, it’s been a long time since I didn’t came back on that website, and to that thread too.

    I made all the change you told me to, and the only thing that appears to move in my articles is the size of extra field’s table.

    All the rest doesn’t move an each or doesn’t desappeared as expected.

    I can send acces login if needed.

    khoand Friend
    #392889

    Could you give me usename+password of ftp? I will check it.

Viewing 15 posts - 1 through 15 (of 20 total)

This topic contains 20 replies, has 3 voices, and was last updated by  kadad 13 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum