|
Cookbook /
IncludeSiteSummary: Include an entire page in a wiki page
Version: 2005-05-08
Prerequisites:
Status:
Maintainer:
Categories: Includes
QuestionHow can I include a complete page in a wiki page? AnswerFirst, be sure you're aware of the security and possible copyright risks of letting the content of other (arbitrary!) URLs appear in your pages. Once you've gotten past that hurdle, download includeSite.phpΔ and put it into cookbook/includeSite.php Add the following line into your config.php include_once("cookbook/includeSite.php");
the following code adds a Notes and CommentsSupported (optional) fields are:
DiscussionIs there a way to get rid of the 2cm whitespace above the included site? DirkBlaas Yes, remove the two " $Output .= "\n\n<!--/ X-include -->\n\n";" lines from includeSite.php. -computerdude33 I found this to be a great way to incorporate dynamic content into our intranet however the regex used to parse the parameters seems to mangle urls with parameters. Is there a workaround or should I work on fixing this. --dddavis Work on fixing this. fraz
How do I use the above supported (optional) fields? The recipe works great, but the default size is not really well-suited for my application, and I can't seem to change it. Thanks in advance! :-) --Henning February 03, 2006, at 10:52 AM It works for me, for example: (:includeSite http://www.google.com height=600 border=0:) -Mushiro February 14, 2006, at 10:50 AM I couldn't get percent directive work such as height=90%. It goes back to the default height when ever I use percent option. If the content is longer than the default height value, scroll bars appear (I added scroll=no option too). Has any one tested percent height ? Thanks -Ali Friday, June 02 2006 I use this cookbook and using % in the height line doesn't work for me either. I have found that height=400px works well for my tastes. Try using a pixel setting instead of a percent setting. - IanMacGregor Sunday, August 27, 2006 The problem of heigh percentage not working, has nothing to do with this script. It's an HTML problem. Height percentage only works when the containing block has a known height. Typically, it doesn't. If you place the iframe in a block with for example height=200px, then the percentage does work. So this will depend on the skin of your site... Anthony. 23.11.2007 See AlsoContributors
|