Hi
I've created a frameset header that calls moodle. Works OK except when creating a resource linking to a webpage I loose my original frameset. Can anybody tell me how I can overcome this problem.
Thanks
Ray
Thanks Greg
I'll try using my own theme and creating the frameset in the header.html as suggested. Hope it works.
Thanx
I've created my own theme and placed images and links in header.html. I've stored my images folder in the root directory of moodle.
On entering moodle all is fine but when moving around the site, say in resources for instance all the image links are gone. Do I have to make a config change to point to the images folder? If so what would the command be
Any ideas - please help I'm very new to this but think its a great product
Thanks
Thanks Martin. Have managed to frameset OK and am using the $CFG->wwwroot where the image folder is stored for the frameset.
Thanks for reply
Hi John
I first created a new folder calling it mytheme and copied the contents of the standard theme folder into it.
I placed my html code which was to be my frameset in header.html in two places both after the if statements. I'll paste the original header.html and just mark where to put your own html code in. I hope I've explained myself, if not just email me and I'll see if I can describe it a bit better
I also made a change in mod/resource/lib changing the depth of the frame header
$RESOURCE_FRAME_SIZE = 130;
In my case I changed it to 220 to avoid the header from scrolling
Heres the header.html with "where you put your html coded" in red
<HTML<?=$direction?>>
<HEAD>
<TITLE><?=$title ?></TITLE>
<META NAME="keywords" CONTENT="Moodle, <?=$title ?> ">
<?=$meta ?>
<LINK REL="stylesheet" TYPE="text/css" HREF="<?=$styles ?>">
<LINK REL="SHORTCUT ICON" HREF="<?=$CFG->wwwroot?>/theme/standard/favicon.ico">
<? include("$CFG->javascript"); ?>
</HEAD>
<BODY <? if ($focus) { echo "setfocus()"; } echo " bgcolor=\"$THEME->body\">"; ?>
<? if ($home) { // This is what gets printed on the home page only ?>
******* PUT YOUR HTML CODE IN HERE WITHIN A <TABLE> ********
<TABLE WIDTH=100% CELLPADDING=10 CELLSPACING=0 BORDER=0>
<TR>
<TD VALIGN=TOP><FONT SIZE=4><B><?=$heading?></B></FONT></TD>
<TD ALIGN=RIGHT VALIGN=TOP><?=$menu ?></TD>
</TR>
</TABLE>
<? } else if ($heading) { // This is what gets printed on any other page with a heading ?>
********** REPEAT THE SAME HTML CODE IN HERE ********************
<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0 BORDER=0>
<TR>
<TD VALIGN=TOP><FONT SIZE=4><B><?=$heading?></B></FONT></TD>
<TD ALIGN=RIGHT VALIGN=TOP><?=$menu ?></TD>
</TR>
</TABLE>
<? } ?>
<? if ($navigation) { // This is the navigation table with breadcrumbs ?>
<TABLE BORDER=0 CELLPADDING=3 CELLSPACING=0 WIDTH=100%>
<TR>
<TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar">
<FONT SIZE=2><B><? print_navigation("$navigation"); ?></B></FONT>
</TD>
<TD BGCOLOR="<?=$THEME->cellheading?>" CLASS="navbar" ALIGN=RIGHT WIDTH=20 VALIGN=TOP><?=$button ?></TD>
</TR>
</TABLE>
<IMG SRC="<?=$CFG->wwwroot?>/pix/spacer.gif" ALT="" HEIGHT=5 WIDTH=1><BR>
<? } else if ($heading) { // If no navigation, but a heading, then print a line ?>
<HR SIZE=1 NOSHADE>
<? } ?>
<!-- END OF HEADER -->
Hope this helps
Regards
Ray