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.

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();

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>';

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.