Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • orsomannaro Friend
    #197847

    Portofolio is build with content-popup module.

    The module shows the articles of a category and, when “show popup” is enabled, clicking on a portfolio’s item will open a pop-up window that permit the user to browse the articles of this same category. I would like to browse the articles of a different category.

    What I want to obtain is: show a list of “projects categories” and when I click on a category, the popup window browse the “projects” for this category .

    Thank for any help.

    Pankaj Sharma Moderator
    #535496

    Hi if you want to change the category
    You can simply add your project category in the back end option of JA Content popup module settings .
    see this
    For more about the JA Content popup module
    follow this user guide

    Hope it helps


    1. EdTechNext-Administration-Module-Manager-Module-mod_jacontentpopup
    orsomannaro Friend
    #535504

    <em>@pankajsharma 427724 wrote:</em><blockquote>Hope it helps </blockquote>

    Not realy 😉

    <em>@pankajsharma 427724 wrote:</em><blockquote>Hi if you want to change the category …</blockquote>

    I know that, as I write in my post.

    But I made a different request.

    Pankaj Sharma Moderator
    #535505

    <em>@orsomannaro 427738 wrote:</em><blockquote>I know that, as I write in my post.

    I made a different request.</blockquote>
    Its seems you want that when you clicked on item it will not open that particular article . You want to open a different article .
    I am afraid that will need heavy customization, you should hire a developer to carry out such work, customization support is out of JA support scope.
    Still i forward your issue to the Development team for their review on it .
    Please attach a screenshot with your problem . It will help us to know about the issue you are facing .

    orsomannaro Friend
    #535526

    In modules/mod_jacontentpopup/tmpl/default_item.php I read this snippet:

    [PHP]
    <?php
    $ref = ‘ja-cp-group.active’;
    $target = ”;
    if ($show_popup) {
    $target = ‘target=”yoxview”‘;
    }

    foreach ($lists as $row) :
    $groupcls = ”;

    if ($row->jagroup) {
    $ref = ‘group_’.$row->id;
    $groupcls = ‘ group_’.$row->id;

    if(isset($row->otherlink)){
    $target = ‘target=”yoxview”‘;
    }else{
    $target = ”;
    }
    }
    ?>
    [/PHP]

    and this part:

    [PHP]
    if(isset($row->otherlink)){
    $target = ‘target=”yoxview”‘;
    }else{
    $target = ”;
    }
    [/PHP]

    That says to me there is a way to set otherlink somewhere …
    But maybe I’m wrong 🙁

    orsomannaro Friend
    #535532

    Ok …

    Here:

    [PHP]
    href=”<?php echo $row->link;?>” title=”<?php echo isset($row->subtitle)?htmlspecialchars($row->subtitle):htmlspecialchars($row->title);?>”
    [/PHP]

    change link with otherlink:

    [PHP]
    href=”<?php echo $row->otherlink;?>” title=”<?php echo isset($row->subtitle)?htmlspecialchars($row->subtitle):htmlspecialchars($row->title);?>”
    [/PHP]

    do the trick.

    Now I must to discover where I can set $row->otherlink

    orsomannaro Friend
    #535676

    From what I understand otherlink is set in this part of modules/mod_jacontentpopup/helpers/adapter:

    [PHP]
    $items = $db->loadObjectList();

    foreach ($items as $i=>$item){

    foreach ($item->content AS $c){
    if($c->link != $item->link){
    $item->otherlink .= ‘<a href=”‘.$c->link.'” …</a>’;
    [/PHP]

    So now: a developer can tell me what is $c->link?

    Thank

    Ninja Lead Moderator
    #535680

    The $c->link refers to the getList function in the modules/mod_jacontentpopup/helpers/adapter/content.php file. You will see snippet below:

    if ($access || in_array($row->access, $authorised)) {
    // We know that user has the privilege to view the article
    if(strpos(ContentHelperRoute::getArticleRoute($row->slug, $row->catslug),'Itemid') === false && isset($Itemid)){
    $articlelink = ContentHelperRoute::getArticleRoute($row->slug, $row->catslug).'&Itemid='.$Itemid;
    $row->link = JRoute::_($articlelink);
    }
    else{
    $row->link = JRoute::_(ContentHelperRoute::getArticleRoute($row->slug, $row->catslug));
    }

    } else {
    $row->link = JRoute::_('index.php?option=com_user&view=login');
    }

    orsomannaro Friend
    #535688

    Thank Ninja.

    Yes, going further studying the code I understood this.

    And now I fear otherlink is not a customizable field but used to identify the article where the click comes from … >:(

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

This topic contains 9 replies, has 3 voices, and was last updated by  orsomannaro 10 years, 6 months ago.

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