Content with no theme

Permalink
Is there a way of displaying a block on a page without displaying any of the theme. I would like to include a list of sub pages that are automatically updated inside a PHP page that i can display in an iframe without displaying the theme.

MattGreyDesign
 
RadiantWeb replied on at Permalink Reply
RadiantWeb
You could just create a custom template view. call it "blank_view.php" in your templates folder. Then just style as desired with no header or footer elements included. Just would have one area on it.

C
MattGreyDesign replied on at Permalink Reply
MattGreyDesign
Do need to include the C5 Excecute header?
RadiantWeb replied on at Permalink Best Answer Reply
RadiantWeb
yes.

something to the effect of this:

<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" media="screen" type="text/css" href="<?php echo $this->getStyleSheet('style.css')?>" />
<?php  Loader::element('header_required'); ?>
</head>
<body>
<div id="content_contain">
      <div id="content">
         <div id="home_left">
             <?php 
         $a = new Area('main');
         $a->display($c);
jgarcia replied on at Permalink Reply
jgarcia
I'm using the following code on a page type called "blank" within a theme...when rendered, it essentially display nothing except what is generated by the blocks on that page

<?php defined('C5_EXECUTE') or die(_("Access Denied.")); ?>
<?php
$cp = new Permissions($c);
if($cp->canAdmin() && $cp->canAddSubContent()){ 
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
   <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
   <?php Loader::element('header_required'); ?>
<?php 
} else {
   echo '<?xml version="1.0" encoding="ISO-8859-1"?>';
} ?>
<?php


The whole Permissions and if/else section essentially says, only display the doctype and html head if you are logged in as Admin, since that stuff is needed to edit the page. I am actually using this page type to render an RSS feed using Concrete5.
jgarcia replied on at Permalink Reply
jgarcia
As I posted that I realized it might be a little more complicated that what I stated in the post. :) Let me know if you need further explanation...
MattGreyDesign replied on at Permalink Reply
MattGreyDesign
The original response was the type of thing I was looking for, but thanks anyway. I'm still learning how to develop in PHP and with concrete