Not logged in. · Lost password · Register
Forum: General Discussion Templates and Layout RSS
Embedding DokuWiki in a web page
Page:  previous  1  2 
Abacus #16
Member since Nov 2007 · 28 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4892
Excellent - it works perfectly!

Its looks pretty much how I envisioned it now and just a few minor things like making the admin etc open in a new page and I'll give a really good road test across the web site.

 :cool:
This post was edited on 2007-11-23, 21:16 by Abacus.
larry@portcommodore.com #17
User title: Larry
Member since Jan 2007 · 6 posts · Location: San Andreas, CA
Group memberships: Members
Show profile · Link to this post
In reply to post ID 4821
Subject: Im trying the same thing but... how do I pass parameters
What a timely thread!

My site's Wiki is used on the same server for both private and public stuff, I am working out a public front-end but I am having a problem passing the required parameters to doku.php; since it is local i cannot use include "../dokuwiki/doku.php?id=page&do=export_xhtmlbody";  I tried defining $do and $id before my include() but it looks like the code fetches the GET data only.

How do you get the ID and GO parameters passed to doku.php locally?

Thanks.
larry@portcommodore.com #18
User title: Larry
Member since Jan 2007 · 6 posts · Location: San Andreas, CA
Group memberships: Members
Show profile · Link to this post
Subject: Ok... templates are probably better.
After more extensive fiddling I can see the value of reduced frustration in templates. (the wiki links point back to the main doku page)  Will recode my pages to just use a different template depending on the condition.
 :-)
Abacus #19
Member since Nov 2007 · 28 posts
Group memberships: Members
Show profile · Link to this post
Quote by larry@portcommodore.com on 2007-11-25, 05:33:
After more extensive fiddling I can see the value of reduced frustration in templates. (the wiki links point back to the main doku page)  Will recode my pages to just use a different template depending on the condition.
 :-)

Sounds like a better option to me - mainly because i didn't understand your first one (serious gaps in my knowledge)

Anyway... somebody tell me where the div class 'clearer' is specified - I cannot see it for looking I suspect  ;-)
 :cool:
This post was edited on 2007-11-27, 00:32 by Abacus.
Abacus #20
Member since Nov 2007 · 28 posts
Group memberships: Members
Show profile · Link to this post
Well the template is working so well I've incorporated it in my own web site.

Just to reprise it - it enables you to have a separate dokuwiki page anywhere you like on a web site embedded in a web page. If anyone is interested I'll bundle it up and send it in.

One final thing thats bothering me is that I would like the width of the displayed text to be the same as the button bars... Finding how to do this is proving difficult. Is there a workaround?
Abacus #21
Member since Nov 2007 · 28 posts
Group memberships: Members
Show profile · Link to this post
Okay just a reminder that I am looking to change the width of ther displayed text file - where is this parameter located?
jsnel #22
Member since Jan 2008 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: without javascript?
I'm also trying to embed my Dokuwiki into an existing web page.

I followed all the advice dispensed in this thread but I'm left with a question. First let me explain what I did:

I inserted the iframe id line from Abacus into my document, and put his embed.js file into my web directory:

<SCRIPT SRC="embed.js"></SCRIPT>
<iframe id="textframe" src="/wiki/doku.php?id=start" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>

Next I followed the tip from chi to put the following in my wiki conf/userstyle.css (if it doesn't exist you have to create it):

div.dokuwiki {
  width: <your-fixed-width>;
}

I manged to get it working. However it doesn't work without the embed.js and I was wondering if it's also possible to get it to work without Javascript. Does anyone have any idea?
Abacus #23
Member since Nov 2007 · 28 posts
Group memberships: Members
Show profile · Link to this post
I haven't tried it without the embed parameters - they are only there to pop up a frame the size needed by the dokuwiki file and to keep the width to the size I wanted.

The dokuwiki I use has reduced headers send me your email and I'll file-attach them to you as there isn't a storage area on the forum.

 :cool:
jsnel #24
Member since Jan 2008 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: Embedding a (dokuwiki) web page as an html object
You can read about it here: http://intranation.com/test-cases/object-vs-iframe/

The code is fairly simple and requires no javascript whatsoever, your code will remain HTML1.0 Strict (if it was before):

<object classid="clsid:25336920-03F9-11CF-8FD0-00AA00686F13" type="text/html"
         data="object.html" style="width:300px;height:200px;">
    <p>Fallback text</p>
</object>

I've tested it and it works (using IE and Firefox), however for IE you need to make some changes to your style sheet to prevent it from rendering borders. I assume one has to add these lines of code to the user style sheet or something:

<!--[if IE]>
    <style type="text/css">html, body {border:0;overflow:visible;}</style>
<![endif]-->

Mind of course that you'll still need to set the width that docuwiki can use as described earlier in this thread.

Good luck!

PS: Abacus, I haven't received your templates yet by e-mail  :rolleyes:
Abacus #25
Member since Nov 2007 · 28 posts
Group memberships: Members
Show profile · Link to this post
There seems to be something wrong with your email addy - it was rejected...
jsnel #26
Member since Jan 2008 · 3 posts
Group memberships: Members
Show profile · Link to this post
In reply to post #24
Subject: Embedding a (dokuwiki) web page means using javascript
Apparently there is no way to embed a Dokuwiki page inside a div an have it dynamically resize based on the content, without Javascript.

However if your page is a fixed dimension using the object tag is a very good alternative, which is XHTML1.0 Strict. Using iframes and Javascript makes your website XHTML1.0 Transitional.

Oh well, there are worse things in life than not having a XHTML1.0 Strict website. :)
Abacus #27
Member since Nov 2007 · 28 posts
Group memberships: Members
Show profile · Link to this post
I'm working on a modified doku.php file at the moment that may be able to do everything. It will be a case of calling the normal doku.php file for a normal dokuwiki display or calling the modified file for an embedded wiki page display - as always IE is causing no end of problems......
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please note the verification code from the picture into the text field next to it.
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Page:  previous  1  2 
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 1.6.4, © 2003-7 by Yves Goergen
Current time: 2008-05-17, 04:09:52 (UTC +02:00)
WikiForumIRCBugsTranslate