 |

orangeoctane
Novice
May 29, 2005, 4:05 PM
Post #1 of 5
(5721 views)
Shortcut
|
|
How to display headlines on the home page?
|
Can't Post
|
|
Hello, I wanted to see how I go about displaying headlines on my .html home page? I understand that some sort of PHP include should be used, but I am not totally sure how to pull it off. Can anyone point me in the right direction here? Thanks for the help. Dave Fore
|
|
|  |
 |

ross
Staff
/ Moderator

May 29, 2005, 4:37 PM
Post #2 of 5
(5715 views)
Shortcut
|
|
Re: [orangeoctane] How to display headlines on the home page?
[In reply to]
|
Can't Post
|
|
Hi Dave. Thanks for posting! PHP isn’t actually my specialty, however using a PHP includes is actually quite easy once you have the right code . So here is an example for you:
<?php include("filename.php") ?> Just replace filename.php with the name and path to the file you want to include. One thing to keep in mind is that on most servers you’ll actually want a page to have .php as its extension if you want to have php code on it. You could get in touch with your web host though and ask them to turn on php parsing in html documents if you wanted to keep index.html as your home page. Does that all make sense? Just let me know if you would like anymore details . ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

orangeoctane
Novice
May 29, 2005, 7:30 PM
Post #3 of 5
(5706 views)
Shortcut
|
|
Re: [ross] How to display headlines on the home page?
[In reply to]
|
Can't Post
|
|
Thanks Ross. The include works, however all of the links for each of the stories is no longer pointing to the correct location. The names are right, but it thinks the stories are in the same directory as the page the links are on, not the full nm/publish/ directory. Now what?
|
|
|  |
 |

ross
Staff
/ Moderator

May 30, 2005, 8:55 AM
Post #4 of 5
(5692 views)
Shortcut
|
|
Re: [orangeoctane] How to display headlines on the home page?
[In reply to]
|
Can't Post
|
|
Hi Dave. Thanks for the update! Because you are including the links onto a different page, you’ll want to be basing all your links off of the webroot. New Manager should actually already be creating links like this though, so I’ll get you to double check how your paths are setup on the _index.html template. Anywhere you are linking to an article page try using the $url$ placeholder. This should give you the correct path. Keep in mind though that the place holder will only work on your News Manager templates . Could you take a look into that for me and let me know how you make out? ----------------------------------------------------------- Cheers, Ross Fairbairn - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

orangeoctane
Novice
May 30, 2005, 9:11 AM
Post #5 of 5
(5691 views)
Shortcut
|
|
Re: [ross] How to display headlines on the home page?
[In reply to]
|
Can't Post
|
|
Thanks for all of your help Ross. I've actually decided to get a refund on NM. Not because I've had technical issues or due to a lack of friendly support, but because I need more control over the number of headlines displayed on any given page. I may have 10 articles published but I just want to see the latest 3 headlines on the home page (or 5 on another page). I understand that Article Manager can do this, but AM would be overkill for the solution I need not to mention blowing the tiny budget I have for this project. Thanks again for your assistance. Dave
|
|
|  |
|