Content and divs not showing?

Discussion in 'Joomla' started by Audiomad, Feb 13, 2012.

  1. #1
    I'm having issues with a custom template I've created as no content is showing even if set in the menu. The css is fine as it world before the adding of the php in the index.php file.

    xml
    <extension version="1.7" type="template" client="site">
    	<name>Zio</name>
    	<creationDate>13 Feb 2012</creationDate>
    	<author>Barry O' Brien</author>
    	<authorEmail> </authorEmail>
    	<authorUrl></authorUrl>
    	<copyright>All rights reserved.</copyright>
    	<version>1.7.0</version>
    	<description>Ziovex Template</description>
    
    	<files>
    		<folder>css</folder>
    		<folder>html</folder>
    		<folder>fresh</folder>
    		<folder>img</folder>
    		<filename>index.html</filename>
    		<filename>index.php</filename>
    		<filename>templateDetails.xml</filename>
    		<filename>template_preview.png</filename>
    		<filename>template_thumbnail.png</filename>
    		<filename>favicon.ico</filename>
    		<filename>component.php</filename>
    		<filename>error.php</filename>
    	</files>
    
    	<positions>
    		<position>p-search</position>
    		<position>p-01</position>
    		<position>p-02</position>
    		<position>p-03</position>
    		<position>p-04</position>
    		<position>p-05</position>
    		<position>p-06</position>
    		<position>p-07</position>
    		<position>p-08</position>
    		<position>p-09</position>
    		<position>p-10</position>
    		<position>p-11</position>
    		<position>p-12</position>
    		<position>p-13</position>
    		<position>p-14</position>
    		<position>p-15</position>
    		<position>p-16</position>
    		<position>p-17</position>
    		<position>p-18</position>
    		<position>p-19</position>
    		<position>p-20</position>
    	</positions>
    </extension>
    Code (markup):
    index.php

    <?php echo '<?'; ?>xml version="1.0" encoding="<?php echo $this->_charset ?>"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
    	<head>
    		<!-- The following JDOC Head tag loads all the header and meta information from your site config and content. -->
    		<jdoc:include type="head" />
    		<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/index.css" type="text/css" />
    		</head>
    
    <body>
    
    <?php if($this->countModules('p-01')) : ?>
    <div id="breaking-news"><jdoc:include type="modules" name="p-01" style="none" /></div>
    <?php endif; ?>
    Code (markup):

    I have all the module positions setup using this format "p-01, 02 etc"

    <?php if($this->countModules('p-01')) : ?>
    <div id="breaking-news"><jdoc:include type="modules" name="p-01" style="none" /></div>
    <?php endif; ?>
    Code (markup):
    Any ideas?
     
    Audiomad, Feb 13, 2012 IP
  2. Rankx

    Rankx Active Member

    Messages:
    119
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    50
    #2
    Where is the line to include the component?
     
    Rankx, Feb 19, 2012 IP
  3. Audiomad

    Audiomad Peon

    Messages:
    1,028
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Further down in the code line but no difference still won't show. I never got an answer on Joomla's own forum.
     
    Audiomad, Feb 20, 2012 IP