PDA

View Full Version : Help: how to create frameset in dotproject?


xln
13-10-05, 10:06 PM
Hi.

I'm a beginner of dp,I want to create a frameset page in dotproject.I wrote a file index.php just like this:

-----------------------------------------------
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html>
<head>
<title>dotproject</title>
<meta http-equiv="Content-Type" content="text/html; charset='utf-8' ?>" />
<link rel="stylesheet" type="text/css"/>
</head>
<?php
echo '<frameset cols="200,*" rows="*" border="1" frameborder="1" framespacing="1" id="leftFrameset" >' . "\n";
echo ' <frame src="left.php? name="nav" frameborder="0" id="leftFrame" />' . "\n";
echo ' <frame src="main.html?" name="main" id="rightFrame" frameborder="1" />' . "\n";
?>
<noframes>
<body bgcolor="#FFFFFF"></body>
</noframes>
</frameset>
</html>
-----------------------------------------------
If I run this file in IE lonely(not in dotproject),it will display a frameset(with a left frame and a main frame page) ,but it will not display anything if I run it in dotproject. Why?

Please give me a hand. Thx very much.

pedroa
13-10-05, 11:53 PM
That depends on what you are trying to do as far as dP is concerned.
If you want dP to run on the main frame then be sure your webserver starts another file before it starts index.php and have your main frame point to index.php

Like I said this is an assumption, you better than me know what you want, but you sure are not really seeing the purpose of dPs root index.php, and that is to manage all other dP files GUI working.

You can frame it all like said or you can introduce frame elements to the way it manages the files but for this options you will have to understand it more than just injecting frameset and frames elements, you must know where exactly they should be placed (and that depends obviously of what is the final goal).

Pedro A.

xln
15-10-05, 11:37 AM
Thx for you help !

I wrote a new module of dp,I installed it in dp,I hope it's first page(index.php) is a frameset page,the left page shows a list of something(such as files),and the right page shows the detail of one item of the list.

But I cann't display anything with the above codes,what shell I do?

As a beginner,I hope to get some example which could display a frameset page in dp. Who can show me some codes?

Thx very much!