More News Box

5 posts by 2 authors in: Forums > CMS Builder
Last Post: November 16, 2010   (RSS)

By Joseph - November 16, 2010

I have created a More News box on this page - http://www.socanews.com/music/radioArticle.php?The-Calaloo-Show-19. The headlines all show up ok in the More News Box but when a headline is clicked it goes to a dead page.

Link 1 - http://www.socanews.com/music/article.php?Festival-of-de-lights-155 - i can see that the link has inserted /music/ but this should actually point to http://www.socanews.com/articles/article.php?Festival-of-de-lights-155 how would i go about changing the path?

thanks

Re: [socanews] More News Box

By Jason - November 16, 2010

Hi,

Can you attach the code so we can see how you're outputting this?

If you're just using ['_link'], edit your section and click on the "Viewer Urls" tab and make sure you're using /articles/ instead of /music/.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [socanews] More News Box

By Jason - November 16, 2010

Hi,

Try changing the code to this:
(changes highlighted in red)

<table width="200" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="50" bgcolor="#FFFFFF" ><div class="siHeaderBlue">more news</div>
<div align="left">
<?php foreach ($morenews['image'] as $upload): ?>
<img src="<?php echo $upload['urlPath']; ?>" width="190" height="100" style="padding: 5px"/>
<?php break; ?>
<?php endforeach; ?>
<div class="articleContent"><a class="articleContentBold" href="/articles/<?php echo $morenews['_link']; ?>"><?php echo $morenews['title']; ?></a><br />
<div style="background-color: #C0DEED; height: 1px; width: 100%; margin: 4px 0 4px 0;"> </div>
<?php foreach ($morenewsRecords as $key => $morenewsextra): ?>
<?php if ($key == 0): ?><?php continue; ?><?php endif; ?>
<a href="/articles/<?php echo $morenewsextra['_link']; ?>" class="articleContentBold"><?php echo $morenewsextra['title']; ?></a><br/>
<div style="background-color: #C0DEED; height: 1px; width: 100%; margin: 4px 0 4px 0;"> </div>
<?php endforeach; ?>
</div>
</div></td>
</tr>
</table>


That way these links will always redirect to the /articles/ folder.

Hope this helps.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

Re: [Jason] More News Box

By Joseph - November 16, 2010

Thanks Jason that works fine.