-
AuthorPosts
-
rud0lph Friend
rud0lph
- Join date:
- January 2012
- Posts:
- 71
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
January 23, 2012 at 2:28 pm #173091Is there a way to change the article links in the displayed sidenews articles so they go to different articles?
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
January 23, 2012 at 2:56 pm #434961Sorry, that feature is not available with this extension. It simply pulls the articles from the chosen category and will link to those.
rud0lph Friendrud0lph
- Join date:
- January 2012
- Posts:
- 71
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
January 23, 2012 at 3:09 pm #434966Thanks. Can the links be removed so the article displayed shows the title, headline and image, but the link to the article is not active.
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
January 23, 2012 at 3:47 pm #434972Sure but you will need to modify a little code.
Open modules>mod_jasidenews>tmpl>sidenews_content.php and remove the bit of code highlighted in red below.<div class="ja-sidenews" <?php echo $onclick ;?> style="display:none; height:<?php echo $height;?>px" >
<?php echo $helper->renderImage ($item, $params, $descMaxChars, $iwidth, $iheight ); ?>
<div class="ja-slidenews-cover" style="height:<?php echo $height;?>px;">
<div class="ja-opacity" style=" <?php echo $bgcolor;?>;height:<?php echo $height;?>px;"></div>
<div class="ja-sidenews-display">
<div class="ja-sidenews-desc" style="<?php echo $color; ?>;">Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
January 23, 2012 at 3:50 pm #434976Nope. Still not working
<blockquote>Sure but you will need to modify a little code.
Open modules>mod_jasidenews>tmpl>sidenews_content.php and remove the bit of code highlighted in red below.</blockquote>
[PHP]<div class=”ja-sidenews” <?php echo $onclick ;?> style=”display:none; height:<?php echo $height;?>px” >
<?php echo $helper->renderImage ($item, $params, $descMaxChars, $iwidth, $iheight ); ?>
<div class=”ja-slidenews-cover” style=”height:<?php echo $height;?>px;”>
<div class=”ja-opacity” style=” <?php echo $bgcolor;?>;height:<?php echo $height;?>px;”></div>
<div class=”ja-sidenews-display”>
<div class=”ja-sidenews-desc” style=”<?php echo $color; ?>;”>[/PHP]Remove this bit from the block above
[PHP]<?php echo $onclick ;?>[/PHP]
1 user says Thank You to Phill for this useful post
rud0lph Friendrud0lph
- Join date:
- January 2012
- Posts:
- 71
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
January 23, 2012 at 4:25 pm #434980Thanks much for your help. I think I got it working the way I need it, based on your info. Again, many thanks!
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
January 23, 2012 at 11:49 pm #434975Hmm, for some reason the forum will not let me post the code. I will speak to the forum admin and see if they can get this fixed. In the mean time drop me a PM and I will send you the code.
Many thanks to Arvind for fixing the code.
James Weston FriendJames Weston
- Join date:
- September 2014
- Posts:
- 1030
- Downloads:
- 11
- Uploads:
- 70
- Thanks:
- 408
- Thanked:
- 16 times in 1 posts
February 4, 2012 at 8:55 am #436886Phil,
Just saw this post which half solved one of my problems as I liked the function of the sidenews display but did not want it clicking through to an article.
Is there a way to take it a stage further and ad some code that would mean that when you clicked on one of the sidenews boxes http://www.myjakartaconcierge.com/index.php?lang=en it clicked through to the link that had been attached to the photo and the text?
Jim
<em>@phill luckhurst 296240 wrote:</em><blockquote>Nope. Still not working
[PHP]<div class=”ja-sidenews” <?php echo $onclick ;?> style=”display:none; height:<?php echo $height;?>px” >
<?php echo $helper->renderImage ($item, $params, $descMaxChars, $iwidth, $iheight ); ?>
<div class=”ja-slidenews-cover” style=”height:<?php echo $height;?>px;”>
<div class=”ja-opacity” style=” <?php echo $bgcolor;?>;height:<?php echo $height;?>px;”></div>
<div class=”ja-sidenews-display”>
<div class=”ja-sidenews-desc” style=”<?php echo $color; ?>;”>[/PHP]Remove this bit from the block above
[PHP]<?php echo $onclick ;?>[/PHP]</blockquote>
rud0lph Friendrud0lph
- Join date:
- January 2012
- Posts:
- 71
- Downloads:
- 0
- Uploads:
- 15
- Thanks:
- 5
- Thanked:
- 1 times in 1 posts
February 4, 2012 at 4:37 pm #436934I could use that too!. Then I could make the side news module windows link to menus.
James Weston FriendJames Weston
- Join date:
- September 2014
- Posts:
- 1030
- Downloads:
- 11
- Uploads:
- 70
- Thanks:
- 408
- Thanked:
- 16 times in 1 posts
February 5, 2012 at 7:36 am #437000Hi Rudolph, that is my aim as well. I have put a link on the image and the text in the article so am hoping we can find some code that will link the links. Jim
James Weston FriendJames Weston
- Join date:
- September 2014
- Posts:
- 1030
- Downloads:
- 11
- Uploads:
- 70
- Thanks:
- 408
- Thanked:
- 16 times in 1 posts
February 5, 2012 at 4:22 pm #437021Anyone have any thoughts or ideas on this?
Jim
<em>@origomedia 298689 wrote:</em><blockquote>Phil,
Just saw this post which half solved one of my problems as I liked the function of the sidenews display but did not want it clicking through to an article.
Is there a way to take it a stage further and ad some code that would mean that when you clicked on one of the sidenews boxes http://www.myjakartaconcierge.com/index.php?lang=en it clicked through to the link that had been attached to the photo and the text?
Jim</blockquote>
October 22, 2012 at 4:03 am #470684Bump…could really use a solution that linked the slidenews to a menu item.
Found this which might help…
<blockquote>I harcoded workaround in module code, its not optimized solutions but its works and maybe helps someone:
in file /modules/mod_jasidenews/helper.php line 206 function getLink() add lines before original return
$alias = “”; // input published menu alias name, eg. about-us
$part = explode(“:”, $item->slug);
return “index.php/” . $alias . “/” . $part[0] . “-” . $part[1] . “.html”;JA Side News article url will looks like index.php/about-us/id-article-alias-name.html </blockquote>
placidpete Friendplacidpete
- Join date:
- May 2010
- Posts:
- 57
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 9
- Thanked:
- 3 times in 1 posts
November 23, 2012 at 8:17 am #474006I also like this suggestion but I’d like to use sidenews functionality on the home page to link to selected products in Joomshopping rather than an articles category.
Any ideas if the code can be modified to do this?
Thanks
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
November 23, 2012 at 2:00 pm #474031The sidenews module was not really designed to do that. It probably could be done but you would need to code it yourself or hire a freelancer to write the new code. It shouldn’t take long but only if the coder was familiar with Joomshopping.
-
AuthorPosts
This topic contains 14 replies, has 5 voices, and was last updated by Phill 12 years, 1 month ago.
We moved to new unified forum. Please post all new support queries in our New Forum