View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009592 | mantisbt | wiki | public | 2008-09-01 13:41 | 2019-06-22 09:53 |
Reporter | banke | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | N/A |
Status | acknowledged | Resolution | open | ||
Summary | 0009592: 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. | ||||
Tags | patch | ||||
Attached Files | 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__ ); ?> | ||||
I like the idea, at least as an optional way of integrating with the wiki. |
|
What is the best way to make it optional? Add a config variable or? |
|
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. |
|
I second this as an option. Would much prefer to have tighter wiki integration like this. |
|
Much better like this |
|