Posting..

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to make a template in which I could post news daily? The ones
I'm looking at usually have the time they were posted, a title and then a
paragraph inside the post. Can this be created in Front page?
 
Andrew said:
Yes....but it would take a little effort in getting this off the
ground. There are two options

1) create a page, and update it with news items manually

2) create pages that are generated from databases.e g
http://www.webwizguide.com/asp/sample_scripts/site_news_script.asp
(requires Windows Servers) and here's one for Unix/Linux:
http://www.newsscript.net.

Yes, I had similar thoughts.

Re 1), there is such a page on my site http://tandcl.homemail.com.au/ , called by
<button onclick="loadIframe('News','news.html')">Open/Close News of this Site</button>
<iframe class="c1" id="News" src=""></iframe>
where loadIframe() loads the news.
function loadIframe(id,sPath)
{
var x = document.getElementById(id)
if (x.style.display != 'block')
{ x.src = sPath
x.style.display = 'block'}
else
x.style.display = 'none'
}
If it is more than 7 days old, it is not shown (controlled by another function).

But perhaps some help could be given by writing a JS function to set up the page with a title and the text, both user supplied,
perhaps in text boxes.
JS could also write the time and date.

But I wonder whether the OP wants to replace a current page, add more data to it, or write new pages for each day. I think in the
last case, the OP would have to manually save it, e.g. do a cut and paste to a new page, "Save as.." with a new file name and then
change the link to refer to that page.

Re 2), I can't advise as I am still having difficulty writing to a database on my MVPS site below. (I used the code from
webwizguide, specifically the code in "database tutorials\guestbook_example\add_to_guestbook.asp", but I get an error 500. I am
still wondering why)
 
Back
Top