Sure, but that presumes a level of fluency with HTML, otherwise you’re potentially opening up your layout to the vagaries of MS Word or similar.
If you really only want a list of links, you could use something like this as your source:
//in a text file
http:link.one.dom/page.html Here's the fabulous link text
http:link.two.dom/page.html Here's more fabulous link text
http:link.three.dom/page.html Here's even more fabulous link text
The key is that the link goes first (and contains no spaces, right – it’s a URL, so it can’t have any spaces in it), followed by anything else you want until the end of the line as the link text. That file gets store somewhere safe, outside of the Web root, and you can then read it into your page very simply:
//in your .php page
<ul>
<?php
$data = file_get_contents('/path/to/your/data.txt');
$data = preg_split('/[rn]+/', $data, -1, PREG_SPLIT_NO_EMPTY);
foreach($data as $datum){
$parts = preg_split('/s+/', $datum, -1, PREG_SPLIT_NO_EMPTY);
$link = array_shift($parts);
$text = implode(' ', $parts);
echo '<li><a href="' . $link . '">' . $text . '</a></li>';
}
?>
</ul>
And that is seriously it. For bonus points, set up your client with a special FTP login/password that dumps her right into that data folder when she logs in.
Walter
On Aug 31, 2012, at 11:08 AM, Ernie Simpson wrote:
Wouldn’t something like an include work? Client could edit a text file that
is imported into the target page location?
–
Ernie Simpson
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options
freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options