Hi everyone,
Hope someone can help me with this, just recently I've been having some pages (seemingly on their own) stop appearing. All that is displayed is a plain white page (no source), looking at the templates on the web sever the file size is 0 bytes.
Below is the html for one of the templates:
Any help would be great! Thanks.
Hope someone can help me with this, just recently I've been having some pages (seemingly on their own) stop appearing. All that is displayed is a plain white page (no source), looking at the templates on the web sever the file size is 0 bytes.
Below is the html for one of the templates:
- Code: Select all
<?php require_once( 'admin/cms.php' ); ?>
<cms:template clonable='1' nested_pages='1' title='Information' order='2'>
<cms:editable
name='page_sub_heading'
label='Sub Heading'
type='text'
order='1'
/>
<cms:editable
name='header_image'
label='Header Image'
crop='0'
type='image'
order='2'
/>
<cms:editable
name='main_content'
label='Main Content'
type='richtext'
order='3'
/>
<cms:repeatable
name='my_multiple_docs'
label='Document Uploads'
order='4'>
<cms:editable type='file' name='my_doc' label='Document' show_preview='1' preview_width='150' input_width='200' col_width='300'/>
<cms:editable type='text' label='Description' name='my_desc' />
</cms:repeatable>
</cms:template>
<cms:if k_is_page >
<!DOCTYPE HTML>
<html lang="en-GB">
<head>
<title>Organisation Name</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<!--[if lte IE 8]><script src="assets/js/ie/html5shiv.js"></script><![endif]-->
<link rel="stylesheet" href="assets/css/main.css" />
<!--[if lte IE 9]><link rel="stylesheet" href="assets/css/ie9.css" /><![endif]-->
<!--[if lte IE 8]><link rel="stylesheet" href="assets/css/ie8.css" /><![endif]-->
</head>
<body>
<div id="Background"></div>
<div id="page-wrapper">
<!-- Header -->
<header id="header">
<h1 id="logo"><a href="index.php">Organisation Name</a></h1>
<a href="#content" class="skip">Skip To Content</a>
<nav id="nav">
<cms:embed 'menu.html' />
</nav>
</header>
<!-- Main -->
<div id="main" class="wrapper style1">
<div class="container">
<header class="major">
<h2><cms:show k_page_title /></h2>
<p><cms:show page_sub_heading /></p>
</header>
<div class="row 150%">
<div class="4u 12u$(medium)">
<!-- Sidebar -->
<section id="sidebar">
<section>
<h3>Further Information</h3>
<cms:if k_is_page>
<cms:set my_has_children='0' 'global' />
<!-- show children of the current page -->
<ul class="actions vertical small">
<cms:nested_pages childof=k_page_name depth='1'>
<li><a href="<cms:show k_nestedpage_link />" class="button small fit"><cms:show k_nestedpage_title /></a></li>
<cms:set my_has_children='1' 'global' />
</cms:nested_pages>
</ul>
<!-- if no children, show those of its parents -->
<cms:if my_has_children='0' >
<ul class="actions vertical small">
<cms:nested_pages childof='@current-1' depth='1'>
<li><a href="<cms:show k_nestedpage_link />" class="button small fit"><cms:show k_nestedpage_title /></a></li>
</cms:nested_pages>
</ul>
</cms:if>
</cms:if>
</section>
<hr />
<section>
<cms:embed 'contact-sidebar.html' />
</section>
</section>
</div>
<div class="8u$ 12u$(medium) important(medium)">
<!-- Content -->
<p id="breadcrumb"><a href="index.php">Home</a> » <cms:nested_crumbs masterpage='information.php' /></p>
<section id="content">
<a class="image fit"><img src="<cms:show header_image />" alt="<cms:show k_page_title />" title="<cms:show k_page_title />" width="100%" height="auto"/> </a>
<cms:do_shortcodes><cms:show main_content /></cms:do_shortcodes>
<cms:embed 'document_uploads.html' />
<hr>
<p><strong>Last Updated:</strong> <cms:date k_page_modification_date format='jS F Y'/></p>
</section>
</div>
</div>
</div>
</div>
<!-- Footer -->
<footer id="footer">
<cms:embed 'footer.html' />
</footer>
</div>
<!-- Scripts -->
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/jquery.dropotron.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<!--[if lte IE 8]><script src="assets/js/ie/respond.min.js"></script><![endif]-->
<script src="assets/js/main.js"></script>
<script>$( document ).ready(function() {
// bind a click event to the 'skip' link
$(".skip").click(function(event){
// strip the leading hash and declare
// the content we're skipping to
var skipTo="#"+this.href.split('#')[1];
// Setting 'tabindex' to -1 takes an element out of normal
// tab flow but allows it to be focused via javascript
$(skipTo).attr('tabindex', -1).on('blur focusout', function () {
// when focus leaves this element,
// remove the tabindex attribute
$(this).removeAttr('tabindex');
}).focus(); // focus on the content container
});
});</script>
</body>
</html>
<cms:else />
<cms:embed 'errorpage.html' />
</cms:if>
<?php COUCH::invoke(); ?>
Any help would be great! Thanks.