Not logged in. · Lost password · Register
Forum: General Discussion Templates and Layout RSS
Embedding DokuWiki in a web page
Page:  1  2  next 
Abacus #1
Member since Nov 2007 · 28 posts
Group memberships: Members
Show profile · Link to this post
Subject: Embedding DokuWiki in a web page
Our research departments current web site relies on the admin making corrections/additions to pages (all the time). I was wondering if it was possible to produce a template that just showed the text of the wiki page and an edit button and embed that within an HTML page for users to change. We would prefer the embedding method as there are many things on the page that we do not want altering.
grahack #2
Member since May 2007 · 121 posts · Location: Nantes, France
Group memberships: Members
Show profile · Link to this post
I'm not sure to understand what you want. Could you give us a link to your website?
Do you want to build something looking similar?
Did you try a basic install of DokuWiki? What do you like/don't like in a basic DW install?
Abacus #3
Member since Nov 2007 · 28 posts
Group memberships: Members
Show profile · Link to this post
Perhaps I didn't make myself clear. We have a lot of pages - some 28,000 - changing the entire thing over to a wiki is out of the question! Now everytime somebody wants to make a change to the research notes on the page (its the only small part of a page that ever changes) it has to be done manually in the HTML and there are a lot of page changes every day.

What I want to do from now on is change the research notes section of each page over to a wiki section/page so that the person looking at the page can make corrections to the research notes. Basically its a case of can I generate a wiki page without the header and sidebar -is this possible?

Unfortunately its a closed system otherwise I would let you have a look which may give you a better idea..
pchan #4
Member since Apr 2007 · 110 posts · Location: Lille, France
Group memberships: Members
Show profile · Link to this post
Hi,
If I understand, your situation is how to add on Wiki features to an existing intranet containing some 28,000 HTML pages. In each page, there is 'Research notes' section where people can make changes.

I suppose that you want to keep the rest of the page?
- My reaction is that this is not a good design option because both the 'look and feel' and the informational contents are binded together. Today, they are usually separated, allowing the same content to be displayed and used differently, simply by changing visual 'templates' or 'skins'.
- The best thing to do is to redesign the site... IMHO. E.g. build a program to extract the informational contents into XML pages.

Your question: generate a wiki page without header and sidebar, is possible and already available in DokuWiki (search for export to XHTML in the Wiki pages). The problem is the source itself: how will this information be available ?

Cheers.
grahack #5
Member since May 2007 · 121 posts · Location: Nantes, France
Group memberships: Members
Show profile · Link to this post
In reply to post #3
Quote by Abacus:
changing the entire thing over to a wiki is out of the question!
Maybe, maybe not!
I trust our machines enough to make a smart import, if ever it's correctly coded! ;-)
Anyway, there is work to do. A huge import, or a huge integration.
its the only small part of a page that ever changes and there are a lot of page changes every day.
What I want to do from now on is change the research notes section of each page over to a wiki section/page so that the person looking at the page can make corrections to the research notes.
Do you trust your 'persons' enough to leave them the permission to modify the part that is above the 'research note' (anyway, you'll be able to monitor any change and revert it)?
If yes, it's a basic import process.
If no, it's an integration. Well I'm just thinking that we could disable the global edit button and find a trick to trigger only the last partial edit button. What is the appearance of the notes? Are they a single paragraph, several paragraphs, splitted in sections, sub-sections...?
Basically its a case of can I generate a wiki page without the header and sidebar -is this possible?
I don't think so, else you're done. You can easily tweak the templates to remove header and sidebar.
Unfortunately its a closed system otherwise I would let you have a look which may give you a better idea..
Last questions: I understood that it's static html,
- will you have php  :huh:  ?
- what is the format of the names of the html files?
- is the content 'top secret'? can you send us a representative single html file?
Abacus #6
Member since Nov 2007 · 28 posts
Group memberships: Members
Show profile · Link to this post
After some fiddling I have done what I wanted to do on my own personal site. You can see it here...

http://www.jedsite.info/content/test.html

My next question is can I modify the template so that it only shows the buttons I want to show?

 :cool:
grahack #7
Member since May 2007 · 121 posts · Location: Nantes, France
Group memberships: Members
Show profile · Link to this post
Mmmf, an iframe...
Go to lib/tpl/main.php and remove what you don't need, it's clearly coded.
Just a question, can the things on the photos hurt ?
Abacus #8
Member since Nov 2007 · 28 posts
Group memberships: Members
Show profile · Link to this post
Quote by grahack:
Mmmf, an iframe...

plus a little bit of js that should have made it fit :-(

Go to lib/tpl/main.php and remove what you don't need, it's clearly coded.

Thanks - been looking through the templates - one thing I cannot seem to locate is the setting for the page width...

Just a question, can the things on the photos hurt ?

Only if you print out hundreds of images and force feed someone with them :-) as for the real things - well they are just inanimate machinery to a human gets control...

 :cool:
grahack #9
Member since May 2007 · 121 posts · Location: Nantes, France
Group memberships: Members
Show profile · Link to this post
Quote by Abacus:
Thanks - been looking through the templates - one thing I cannot seem to locate is the setting for the page width...
this is css I think
Abacus #10
Member since Nov 2007 · 28 posts
Group memberships: Members
Show profile · Link to this post
Yes its somewhere there but where?

I've found the top and bottom bar settings but removing them results in the page collapsing..

 :cool:
pchan #11
Member since Apr 2007 · 110 posts · Location: Lille, France
Group memberships: Members
Show profile · Link to this post
Abacus,
To be sure, you are using the default template.

You want to locate the setting for the page width...
I doubt it exist: the elements I see on this template adapts to the browser's width.

What do you want the width for, or what elements do you want to change ?
Cheers.
Abacus #12
Member since Nov 2007 · 28 posts
Group memberships: Members
Show profile · Link to this post
What I'm after is setting the width of the page to a fixed size.

You can see why here...

http://www.jedsite.info/content/test.html

 :cool:
Avatar
chi (Moderator) #13
Member since Jun 2006 · 607 posts · Location: Munich Germany
Group memberships: Global Moderators, Members
Show profile · Link to this post
This is the code you use to embed the wiki in your page (taken form the html source) - please have a closer look at it again - the answer should be obvious ;-)

  1. <iframe id="textframe" src="../dokuwiki/doku.php?id=jed" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>
Please add [SOLVED] to the initial thread subject if you feel your question has been answered.
Abacus #14
Member since Nov 2007 · 28 posts
Group memberships: Members
Show profile · Link to this post
Quote by chi:
This is the code you use to embed the wiki in your page (taken form the html source) - please have a closer look at it again - the answer should be obvious ;-)

  1. <iframe id="textframe" src="../dokuwiki/doku.php?id=jed" scrolling="no" marginwidth="0" marginheight="0" frameborder="0" vspace="0" hspace="0" style="overflow:visible; width:100%; display:none"></iframe>

Unfortunately the wiki ( unlike the other embeds) takes no notice of the iFrame...

 :cool:
Avatar
chi (Moderator) #15
Member since Jun 2006 · 607 posts · Location: Munich Germany
Group memberships: Global Moderators, Members
Show profile · Link to this post
Hmm ok - then just put the following in your conf/userstyle.css (if it doesn't exist you have to create it):

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

if it doesn't change immediately the CSS is probably still cached - then just try a hard reload in Firefox CTRL-SHIFT-R.
Please add [SOLVED] to the initial thread subject if you feel your question has been answered.
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:  1  2  next 
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, 06:16:54 (UTC +02:00)
WikiForumIRCBugsTranslate