Link to detail page
7 posts by 4 authors in: Forums > CMS Builder
Last Post: May 17, 2010 (RSS)
Re: [MercerDesign] Link to detail page
By Chris - October 19, 2009 - edited: October 19, 2009
How do you determine whether there's no detail page?
If you can give me concrete examples of when your detail link should and should not appear, I can probably come up with a simple solution for you.
P.S. If possible, please post your PHP source code for your page also.
Chris
Re: [chris] Link to detail page
By MercerDesign - May 14, 2010
http://www.ardingly.com/cmsTest/News_Independent_Schools_Sussex/News_list.php
Re: [MercerDesign] Link to detail page
By Jason - May 14, 2010
If you could attach the file News_list.php I can take a look at it for you.
Also, what are you using as the criteria for not including a link?
Thanks.
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] Link to detail page
By MercerDesign - May 17, 2010
Re: [MercerDesign] Link to detail page
By Damon - May 17, 2010
If there is no content in the "Content" field on the detail page then we don't want a link.
Replace your current detail page link code with this code to only ouput the link to the detail page if there is content in the content field.
<?php if($record['content'] != "") : ?>
<p><b><a href="<?php echo $record['_link'] ?>">Find out more >></a></b></p>
<?php endif; ?>
If the content field is left empty, no detail link will appear.
If the content field has content, a detail link will appear.
Hope that helps.
Damon Edis - interactivetools.com
Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/
Re: [Damon] Link to detail page
By MercerDesign - May 17, 2010