This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > August 2004 > dynamic text





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author dynamic text
jellyfishjam

2004-08-26, 12:20 pm

Hi, this is I'm sure a simple question, but can't seem to find a simple answer.
I need to know how to import text dynamically from an external text file (from
wordpad for example), in order that it may be updated without the updater
having to use dreamweaver.
many thanks in advance for any help offered....

Dan Vendel *GOF*

2004-08-26, 12:20 pm

jellyfishjam wrote:
> Hi, this is I'm sure a simple question, but can't seem to find a simple answer.
> I need to know how to import text dynamically from an external text file (from
> wordpad for example), in order that it may be updated without the updater
> having to use dreamweaver.
> many thanks in advance for any help offered....
>


From your description, it appears as if SSI (Server-Side Include) could
be what you're looking for. However, the "updater" need to have a
ftp-client to upload the file, e.g. Filezilla. Your host also need to
accept SSI and you must ask him which file extension you need to use
(commonly shtml or shtm).

In short, it works like this:

You create you page as usual and save it with the file extension your
host is using to parse for SSI, e.g. myfile.shtml.
Then you place the SSI insert tag where you want the external file to be
included. In DW, it's in menu Insert -> html -> scripts or something
like that (don't have DW open right now) and navigate to the external file.

That file can't be a regular html file (with head, body, etc), but just
a plain text file. You can use almost any file extension, e.g.
myinclude.txt.

PS: I think DW will create the SSI tag using the words "include file"
(and then the path to the textfile). You might have to change that to
"include virtual". You also might have to try different paths to the
include-file, i.e. doc relative as well as root relative and absolute
(an URL).

--
Dan Vendel - *GOF*
Contact: http://www.proformica.com/en/contact.shtml
Formmail tutorial: http://www.proformica.com/en/formmail_tutorial.shtml
Nested tables: http://www.proformica.com/en/nested_table_demo.shtml
SEO: http://www.proformica.com/en/search...imization.shtml
SE Utility: http://www.proformica.com/en/advanced_web_ranking.shtml
Search Dreamweaver newsgroup: http://www.proformica.com/google.html
Sponsored Links


Copyright 2003 - 2009 forum4designers.com  Software forum  Computer Hardware reviews