Is there a way to do this using iframes or something similar. I have over 200 pages and don't want to make everyone of them .php instead of .html. I use dreamweaver template system so I can have the headline list on every page except the news.php and fullstory.php of course.
nootkan wrote at 2012-03-06 00:56:57
Is there a way to do this using iframes or something similar. I have over 200 pages and don't want to make everyone of them .php instead of .html. I use dreamweaver template system so I can have the headline list on every page except the news.php and fullstory.php of course.
You could use iframes. For example on the main page, have it list all the article headlines that when clicked, load the full article within an iframe on the same page. You could do that by using the template code on the first page of this thread that I posted but edited it slightly so that the links open within the iframe.
Not sure if it's of any use to you but you can make your .html files work like .php files by adding the following to your .htaccess
file
AddType application/x-httpd-php .php .html
This would save you having to rename all of your files. This may not work however, entirely depends if your server configuration allows it.
Okay I followed the steps outlined above and I get the links inside my left side bar like I want but when I click on them to go to fullstory.php inside my root I am sent to the blog page and not the actual post page of the link. Is this the way it is supposed to work?
Also when I add the
<p><h3>News</h3></p> <?php $npage = "3"; $template = 'Headlines'; include 'news/index.php'; ?><br />
to the news.php page it looks fine in the side link until I click on the "full story" link and go to the actual article where the comments script seems to conflict with the sidebar news links. So I have no way to link back to the news links without using the top menu. Does this make sense?