0

Hi, I want to replace $data['introhtml'] with some actual html, any ideas? I need to update a friends CMS database driven Website the content panel does not allow Div which I need to put a Calendar in so the only option is to change the PHP. The PHP code is below, currently has a image in introhtml, I want it to include the HTML below instead.

PHP - $content->introhtml = isset($data['introhtml']) ? $data['introhtml'] : array();

<link rel="Stylesheet" type="text/css" href="css/jquery-ui-1.8.17.nugc.css" />
<div id="calendar">
</div>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.17.custom.min.js"></script>
<script type="text/javascript" src="js/wazygoose.js"></script>

Any help would be greatly appreciated.

Thank you.

Noel.

Edited by theNORTH: missed a word out

2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by theNORTH
0

If you're sure $data['introhtml'] is the right place to put it.

$data['introhtml'] = '<div id="calendar"></div>';
$content->introhtml = isset($data['introhtml']) ? $data['introhtml'] : array();
0

Hi Biiim, thanks. It's definitely the right place, can I also refernce the css and js files like below?
$data['introhtml'] = '
<link rel="Stylesheet" type="text/css" href="css/jquery-ui-1.8.17.nugc.css" />
<div id="calendar">
</div>
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-1.8.17.custom.min.js"></script>
<script type="text/javascript" src="js/wazygoose.js"></script>';

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.