View Issue Details

IDProjectCategoryView StatusLast Update
0009592mantisbtwikipublic2019-06-22 09:53
Reporterbanke Assigned To 
PrioritynormalSeverityminorReproducibilityN/A
Status acknowledgedResolutionopen 
Summary0009592: Integrating the wiki directly into mantis
Description

With the current wiki integration the user needs to leave the mantis page to view/edit in the wiki. This makes it difficult to get back into mantis again if the wiki has been navigated alot.

This path integrates the wiki into mantis using an iframe so the user stil has the mantis interface around the wiki when it is navigated and edited.

It also makes sure the wiki iframe is scaled so there is no scrollbars.

You can see an example of the integration in the attached screenshot. The patch is made agains r5531 which is the current trunk.

Tagspatch

Relationships

has duplicate 0025880 closedatrol Display wiki within mantis in iframe 

Activities

2008-09-01 13:41

 

2008-09-01 13:42

 

wikipatch.patch (1,006 bytes)   
Index: wiki.php
===================================================================
--- wiki.php	(revision 5531)
+++ wiki.php	(working copy)
@@ -42,5 +42,25 @@
 		$t_url = wiki_link_bug( $f_id );
 	}
 
-	print_header_redirect( $t_url, true, false, true );
+	html_page_top1();
+    html_page_top2();
+	print_recently_visited();
+	?> 
+<script language="JavaScript"> 
+	function autoResize(id){ 
+	    var newheight; 
+	    var newwidth; 
+ 
+		newheight=document.getElementById(id).contentWindow.document .body.scrollHeight; 
+		newwidth=document.getElementById(id).contentWindow.document .body.scrollWidth; 
+
+		document.getElementById(id).height= (newheight) + "px"; 
+	    document.getElementById(id).width= (newwidth) + "px"; 
+	}  
+</script> 
+<div style="width:95%;margin-left:auto;margin-right:auto;"> 
+	<iframe onLoad="autoResize('wiki');" style="border:0;" border="0" id="wiki" name="wiki" src="<?php echo $t_url; ?>" width="95%"></iframe> 
+</div> 
+<?php 
+	html_page_bottom1( __FILE__ );
 ?>
wikipatch.patch (1,006 bytes)   
vboctor

vboctor

2008-09-02 00:28

manager   ~0019284

I like the idea, at least as an optional way of integrating with the wiki.

banke

banke

2008-09-16 09:44

reporter   ~0019401

What is the best way to make it optional? Add a config variable or?

VYu

VYu

2008-10-01 06:45

reporter   ~0019482

I like the screenshot, too. Especially great that there is no Logout button on wiki "subpage", so there is probably no login/logout mess between Mantis and Wiki anymore.

nurikabe

nurikabe

2008-10-01 08:28

reporter   ~0019483

I second this as an option. Would much prefer to have tighter wiki integration like this.

cas

cas

2011-01-17 06:00

reporter   ~0027962

Much better like this