Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • fls64 Friend
    #204188

    Hi.

    I have a problem with JA EXTRA FIELDS in my site.

    I´m try to put some extra fileds for a category, but after make all the modifications in:
    – portifolio.xml (portifolio.zip)
    – portfolio.php
    (all files attached)

    The extra fields that I did out in articles, don´t show in front-end.
    All functions on back-end, work fine, but for the customer (front-end) don´t work.

    Please, anybody can help me?


    Ninja Lead Moderator
    #561197

    Because you have to load and change it from front-end with new fields in templates/ja_jason/templateHelper.php file


    public static function loadParamsPortfolioContents($item, $pdata = 'attribs') {
    $data = $item->$pdata;
    if(is_string($pdata)) {
    $data = new JRegistry;
    $data->loadString($item->$pdata);
    }

    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' =>''
    );
    }

    fls64 Friend
    #561235

    Hi

    This work perfect.

    More one question:
    – It´s possible show only the fields where have information?

    Ninja Lead Moderator
    #561329

    <em>@fls64 461067 wrote:</em><blockquote>
    More one question:
    – It´s possible show only the fields where have information?</blockquote>

    Should you clarify me more detail? I will help you to consider the solution.

    fls64 Friend
    #561427

    Example:
    – a have several custom fields create for portfolio page.
    – if one or more fields are blank in your value, the frontpage will don´t show the label/value.

    Ninja Lead Moderator
    #561501

    Yes, you can control to add and show extra fields with page on your site. If you don’t want to show it, you don’t load it from layout

    For example:

    Open templates/ja_jason/html/com_content/article/porfolio.php file, you will see code to load and show extra field


    1. Screen-Shot-2015-03-04-at-11.01.33
    2. Screen-Shot-2015-03-04-at-10.56.24
Viewing 6 posts - 1 through 6 (of 6 total)

This topic contains 6 replies, has 2 voices, and was last updated by  Ninja Lead 9 years, 2 months ago.

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