Help with News Section

5 posts by 3 authors in: Forums > CMS Builder
Last Post: June 22, 2010   (RSS)

By Guidian - June 20, 2010 - edited: June 21, 2010

I am sure this had been asked before however I am new to php and to CMSB and I am probably not wording this correctly. I have managed to create news pages on my site http://www.anfgroup.com/news/news.php however what I am trying to achieve is when someone clicks on my news button they get sent to a page that list all of my news articles and can select the one they want instead of going to a page that has the full content of the article and a previous and next button below. I am sure this is something very easy but I just cannot figure it out. Any help would be greatly appreciated. Or at least point me to a thread that has already answered this.

Re: [Jason] Help with News Section

By Guidian - June 22, 2010

Jason,



Thanks a bunch. I was able to get it working. There is one more questions though. How do I change this: [url "/news/newsDetail.php?Eleventh-Annual-Student-Life-Achievement-Awards-5"]/news/newsDetail.php?Eleventh-Annual-Student-Life-Achievement-Awards-5[/#0066cc][/url]
to say Read More ? I can tell this is the code: <a href="<?php echo $record['_link'] ?>"><?php echo $record['_link'] ?></a><br/> and I tried changing the ['_link'] to read like this ['Read More'] but that didn't work. I know this is probably a dumb fix but like I said before I am a php Noob!

Re: [Guidian] Help with News Section

By zip222 - June 22, 2010

Change your code to this...

<a href="<?php echo $record['_link'] ?>">Read More</a><br/>

Re: [zip222] Help with News Section

By Guidian - June 22, 2010

zip222,

[;)] Thank you very much! I was able to get that Read More working flawlessly!