-
AuthorPosts
-
orsomannaro Friend
orsomannaro
- Join date:
- January 2008
- Posts:
- 241
- Downloads:
- 32
- Uploads:
- 18
- Thanks:
- 1
- Thanked:
- 3 times in 1 posts
May 16, 2014 at 12:11 pm #197847Portofolio 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 ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
May 17, 2014 at 4:00 am #535496Hi 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 guideHope it helps
orsomannaro Friendorsomannaro
- Join date:
- January 2008
- Posts:
- 241
- Downloads:
- 32
- Uploads:
- 18
- Thanks:
- 1
- Thanked:
- 3 times in 1 posts
May 17, 2014 at 6:20 am #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 ModeratorPankaj Sharma
- Join date:
- February 2015
- Posts:
- 24589
- Downloads:
- 144
- Uploads:
- 202
- Thanks:
- 127
- Thanked:
- 4196 times in 4019 posts
May 17, 2014 at 6:26 am #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 Friendorsomannaro
- Join date:
- January 2008
- Posts:
- 241
- Downloads:
- 32
- Uploads:
- 18
- Thanks:
- 1
- Thanked:
- 3 times in 1 posts
May 17, 2014 at 9:07 am #535526In 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 Friendorsomannaro
- Join date:
- January 2008
- Posts:
- 241
- Downloads:
- 32
- Uploads:
- 18
- Thanks:
- 1
- Thanked:
- 3 times in 1 posts
May 17, 2014 at 9:50 am #535532Ok …
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 Friendorsomannaro
- Join date:
- January 2008
- Posts:
- 241
- Downloads:
- 32
- Uploads:
- 18
- Thanks:
- 1
- Thanked:
- 3 times in 1 posts
May 19, 2014 at 10:38 am #535676From 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 ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 19, 2014 at 10:52 am #535680The $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 Friendorsomannaro
- Join date:
- January 2008
- Posts:
- 241
- Downloads:
- 32
- Uploads:
- 18
- Thanks:
- 1
- Thanked:
- 3 times in 1 posts
May 19, 2014 at 11:51 am #535688Thank 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 … >:(
AuthorPostsViewing 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
Content-popup module customization
Viewing 9 posts - 1 through 9 (of 9 total)