[Pmwiki-users] Easy Question...Includes

Patrick R. Michaud pmichaud
Wed Mar 17 17:54:07 CST 2004


On Wed, Mar 17, 2004 at 08:39:08PM -0400, Andres Yver wrote:
> On Wednesday, March 17, 2004, at 07:45 PM, 
> Pmwiki-users-request at pmichaud.com wrote:
> 
> >>You might also try making use of the includeurl.php
> >>script that comes with the PmWiki distribution (in the scripts 
> >>directory).
> >>It allows the contents of another (HTML) page on the web to be 
> >>inserted into
> >>the current page.
> 
> ok i tried that and it includes text, no images from the external html 
> document, but is formatted with the wiki skin, not the included site's 
> css or even markup. 

All that the includeurl.php script does is provide markup to take the 
exact contents of another resource on the web (given by the URL) and 
insert it in the output.   It doesn't make any attempt to analyze
or process the content, (e.g., adjust relative URLs, remove any 
<head>...</head> sections, etc.)  So, if you just use it to try to
include another complete standalone HTML page (head, css, body, etc.) 
into a Wiki page, it's likely to not work.

Pm



More information about the pmwiki-users mailing list