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.
Do need to include the C5 Excecute header?
yes.
something to the effect of this:
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);
Viewing 15 lines of 21 lines. View entire code block.
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
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.
<?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
Viewing 15 lines of 24 lines. View entire code block.
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.
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...
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
C