Originally Posted by
Arsov
how can we put external content in this placeholder. I presume ( as a primitive cms method) that if someone put a pre-named document on a specific place on a server, that text from this document can be recognized as a content, so how and where I should put link in a placeholder?
First of all, make sure that your hosting plan supports php scripts. Then place following code in the placeholder:
Code:
<?php include 'my_document.txt'; ?>
Replace the blue text with the actual document name.
To make sure it all works fine, the page that contains this code should have a .php extension instead of .htm or .html.
Originally Posted by
Arsov
Another dummy cms alike question - is this dynamic thing works also with pictures?
Your content file can be any HTML code fragment. So it can contain <img> element/s. If so, it will work with pictures. Similarly, it will work with almost any possible HTML content that you put into the included text file. But remember, you should not include complete HTML pages, only HTML fragments (i.e. without the <head> or <body> tags).
Bookmarks