Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • oficyna21 Friend
    #930250

    I have a problem with adding new extra fields for articles in my portfolio. I don’t need the fields like: "Type", "Version", "Modified date". I want to post the following fields (in Polish): "Autor", "Tytuł", "Przekład", "Opracowanie", "Ilustracje", "ISBN", "Rok wydania", "Oprawa", "Format", "Liczba stron". I remade all the possibilities described on: https://www.joomlart.com/documentation/joomla-templates/ja-jason-template/configuring-ja-jason-template#article-extrafield – but I get only some of new fields in my back-end, not in the front-page. I also did new extra fields file .xml according to the instruction from: http://www.t3-framework.org/documentation/extend-com-content#add-extra-fields – but it doesn’t work too. The template can’t see this file. Could you help me?

    oficyna21 Friend
    #930347

    Hello, is anybody there?

    Saguaros Moderator
    #930942

    Hi

    You can update the Admin & FTP account of your site so I will have a look.

    Also tell me the article you’re trying to add extra fields.

    oficyna21 Friend
    #930973

    Hello,
    example of article: http://oficyna21.pl/index.php/ksiazki/proza/3-chrystus-wyladowal-w-grodnie
    But I’m afraid I don’t understand your response. What should I do? Do you want to look in my ftp? Is that necessary? No other way? Maybe you could just steer me?

    oficyna21 Friend
    #931446

    Hello,
    can you answer me?

    oficyna21 Friend
    #931918

    I really need your support…

    Ninja Lead Moderator
    #931927

    @oficyna21: You can give me the admin login backend of your site and set as private reply. I will help you to check the configuration directly on your site.

    oficyna21 Friend
    #931930
    This reply has been marked as private.
    Ninja Lead Moderator
    #932354

    In this case, you have to change the extra field from templates/ja_jason/etc/extrafields/portfolio.xml and set the configuration under category as my screenshot.


    1. Screen-Shot-2016-05-19-at-22.20.25
    oficyna21 Friend
    #932558

    I did it but it does not work. I can get only some of new fields in my back-end, not in the front-page. I wrote about this 7 days ago. Please read my previous entries.

    oficyna21 Friend
    #932562

    What should I change in this data:
    <field
    name="jcontent_author"
    type="text"
    label="TPL_CONTENT_AUTHOR_LABEL"
    description="TPL_CONTENT_AUTHOR_DESC"
    />
    to receive the fields that I want to get?

    Ninja Lead Moderator
    #932620

    After changing that code above from portfolio.xml file, you need to customize both files below

    • Open templates/ja_jason/templateHelper.php file
    if($data instanceof JRegistry) {
        return array(
            'jcontent_type'      =>$data->get('jcontent_type', ''),
    'jcontent_updateon'   =>$data->get('jcontent_updateon', ''),
    'jcontent_version'    =>$data->get('jcontent_version', ''),
    'jcontent_author'     =>$data->get('jcontent_author', ''),
    'jcontent_carousel'       =>$data->get('jcontent_carousel', '')
        );
    }
    
    return array (
        'jcontent_type'      => '',
    'jcontent_updateon' => '',
    'jcontent_version'  =>'',
    'jcontent_author'   =>'',
    'jcontent_carousel'   =>''
    );
    • Open templates/ja_jason/html/com_content/article/porfolio.php file
    <?php if($extrafieldsexist || $params->get('show_category')): ?>
    <ul class="extrafield-list">
    <?php if($extrafieldsexist): ?>
        <?php if($extrafields['jcontent_type']) : ?>
            <li class="info">
              <span><?php echo JText::_('TPL_CONTENT_TYPE_LABEL'); ?></span>
              <?php echo $extrafields['jcontent_type'] ?>
            </li>
        <?php endif; ?>
        <?php if($extrafields['jcontent_updateon']) : ?>
        <li class="info">
          <span><?php echo JText::_('TPL_CONTENT_UPDATEON_LABEL'); ?></span>
          <?php echo $extrafields['jcontent_updateon'] ?>
        </li>
        <?php endif; ?>
        <?php if($extrafields['jcontent_version']) : ?>
        <li class="info">
          <span><?php echo JText::_('TPL_CONTENT_VERSION_LABEL'); ?></span>
          <?php echo $extrafields['jcontent_version'] ?>
        </li>
        <?php endif; ?>
        <?php if($extrafields['jcontent_author']) : ?>
        <li class="info">
          <span><?php echo JText::_('TPL_CONTENT_AUTHOR_LABEL'); ?></span>
          <?php echo $extrafields['jcontent_author'] ?>
        </li>
        <?php endif; ?>
    <?php endif; ?>
    oficyna21 Friend
    #932972

    Ok, I’ll try.

Viewing 13 posts - 1 through 13 (of 13 total)

This topic contains 12 replies, has 3 voices, and was last updated by  oficyna21 8 years, 6 months ago.

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