improving configurability of framesets
This commit is contained in:
@@ -452,6 +452,49 @@ bibtexbrowser_configure('PAGE_SIZE','3');
|
|||||||
?>
|
?>
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
|
====How to override framesets and headers?====
|
||||||
|
|
||||||
|
You can customize every view as follows, in particular by playing with ''BIBTEXBROWSER_URL''.
|
||||||
|
|
||||||
|
''frameset.html'':
|
||||||
|
<pre>
|
||||||
|
<html>
|
||||||
|
<frameset cols="15%,*">
|
||||||
|
<frame name="menu" src="menu.php" />
|
||||||
|
<frame name="main" src="output.php" />
|
||||||
|
</frameset>
|
||||||
|
</html>
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
''menu.php'':
|
||||||
|
<pre>
|
||||||
|
MENU (no header sent)
|
||||||
|
<?php
|
||||||
|
define('BIBTEXBROWSER_URL','output.php');
|
||||||
|
$_GET['menu']=1;
|
||||||
|
$_GET['bib']='foo.bib';
|
||||||
|
include('bibtexbrowser.php');
|
||||||
|
?>
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
''output.php'':
|
||||||
|
<pre>
|
||||||
|
OUTPUT (no header sent)
|
||||||
|
<?php
|
||||||
|
define('BIBTEXBROWSER_URL','elem.php');
|
||||||
|
include('bibtexbrowser.php');
|
||||||
|
?>
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
''elem.php'':
|
||||||
|
<pre>
|
||||||
|
ELEM (no header sent)
|
||||||
|
<?php
|
||||||
|
include('bibtexbrowser.php');
|
||||||
|
?>
|
||||||
|
</pre>
|
||||||
|
|
||||||
|
|
||||||
=====Related tools=====
|
=====Related tools=====
|
||||||
|
|
||||||
Old-fashioned:
|
Old-fashioned:
|
||||||
|
|||||||
+1
-1
@@ -2539,7 +2539,7 @@ Based on createQueryString.
|
|||||||
@nodoc
|
@nodoc
|
||||||
*/
|
*/
|
||||||
function makeHref($query = NULL) {
|
function makeHref($query = NULL) {
|
||||||
return 'href="?'. createQueryString($query) .'"';
|
return 'href="'.bibtexbrowser_configuration('BIBTEXBROWSER_URL').'?'. createQueryString($query) .'"';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user