Okee, het is een ingewikkeld verhaal. De code die ik nu heb ziet er als volgt uit:

	<td width="20%">
   <?php if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
	<?php if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) : ?>
		<?php if ($this->item->params->get('link_section')) : ?>
			<?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">'; ?>
		<?php endif; ?>
		<?php echo $this->escape($this->item->section); ?>
		<?php if ($this->item->params->get('link_section')) : ?>
			<?php echo '</a>'; ?>
		<?php endif; ?>
			<?php if ($this->item->params->get('show_category')) : ?>
			<?php echo ' - '; ?>
		<?php endif; ?>
	<?php endif; ?>
	<?php if ($this->item->params->get('show_category') && $this->item->catid) : ?>
		<?php if ($this->item->params->get('link_category')) : ?>
			<?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; ?>
		<?php endif; ?>
		<?php echo $this->escape($this->item->category); ?>
		<?php if ($this->item->params->get('link_category')) : ?>
			<?php echo '</a>'; ?>
		<?php endif; ?>
	<?php endif; ?>
<?php endif; ?>
    </td>
    
    
     &nbsp; <td="80%">
<b> <a href="<?php echo $this->item->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>">
		<?php echo $this->escape($this->item->title); ?>
	</a> </b>
	<?php else : ?>
		<?php echo $this->escape($this->item->title); ?>
	<?php endif; ?> <br /> 
	<?php if ($this->item->params->get('show_create_date')) : ?>
	<?php echo $Tijd; ?>
    <?php endif; ?> | <?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?>
		<?php JText::printf(($this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author) ); ?>
 | 0 reacties </td>


Mijn bedoeling is eigenlijk:
 Categorie: Titelvanmijn eigenartikel 


en dan strak onder titel
 11:22 | Liptem Jongles | 0 reacties 


als iemand mij een code kan geven dat ik hem er zelf in kan zetten graag. Ben niet zo thuis in de tables, maar wat ik tot nu toe zelf doe:

<td width="20%"> -> categorie
<td width="100%"> -> voor titel en daaronder.

Bitte help!
Zoiets?:


<?php

	echo '<p><table>
		<thead>
			<tr>
				<td width="100%" colspan="3">Artikelen</td>
			</tr>
		</thead>
		<tbody>';

			while() {
				echo '<tr>
					<td width="100%" colspan="3">Naam artikel</td>
				</tr>
				<tr>
					<td width="20%">11:22</td>
					<td width="40%">Liptem Jongles</td>
					<td width="40%">0 reacties</td>
				</tr>';
			}

		echo '</tbody>
	</table></p>';

?>
Eén php tag is méér dan genoeg :P
Het komt uit een joomla bestand, kan ik al die php edinf gewoon weghalen?

Ik go je script proberen oetzie, laat je het resultaat weten

Edit:
Nu krijg ik heel raar dit resultaat: http://yfrog.com/jpschermafbeelding2010011pp

Met de code
	 <p> <table> <thead <tr> <td width="20%">
   <?php if (($this->item->params->get('show_section') && $this->item->sectionid) || ($this->item->params->get('show_category') && $this->item->catid)) : ?>
	<?php if ($this->item->params->get('show_section') && $this->item->sectionid && isset($this->item->section)) : ?>
		<?php if ($this->item->params->get('link_section')) : ?>
			<?php echo '<a href="'.JRoute::_(ContentHelperRoute::getSectionRoute($this->item->sectionid)).'">'; ?>
		<?php endif; ?>
		<?php echo $this->escape($this->item->section); ?>
		<?php if ($this->item->params->get('link_section')) : ?>
			<?php echo '</a>'; ?>
		<?php endif; ?>
			<?php if ($this->item->params->get('show_category')) : ?>
			<?php echo ' - '; ?>
		<?php endif; ?>
	<?php endif; ?>
	<?php if ($this->item->params->get('show_category') && $this->item->catid) : ?>
		<?php if ($this->item->params->get('link_category')) : ?>
			<?php echo '<a href="'.JRoute::_(ContentHelperRoute::getCategoryRoute($this->item->catslug, $this->item->sectionid)).'">'; ?>
		<?php endif; ?>
		<?php echo $this->escape($this->item->category); ?>
		<?php if ($this->item->params->get('link_category')) : ?>
			<?php echo '</a>'; ?>
		<?php endif; ?>
	<?php endif; ?>
<?php endif; ?>
    </td> 
    
    
 <td width="80%">
<b> <a href="<?php echo $this->item->readmore_link; ?>" class="contentpagetitle<?php echo $this->escape($this->item->params->get( 'pageclass_sfx' )); ?>">
		<?php echo $this->escape($this->item->title); ?>
	</a> </b> </td> </tr> </thead>
	<?php else : ?>
		<?php echo $this->escape($this->item->title); ?>
	<?php endif; ?> <br /> <tbody> <tr> <td> </td> <td>
	<?php if ($this->item->params->get('show_create_date')) : ?>
	<?php echo $Tijd; ?>
    <?php endif; ?> | <?php if (($this->item->params->get('show_author')) && ($this->item->author != "")) : ?>
		<?php JText::printf(($this->item->created_by_alias ? $this->item->created_by_alias : $this->item->author) ); ?>
 | 0 reacties </td></tr> </tbody>
</table></p>
<?php endif; ?>
<hr>
@Glenn

Post het in je topic en/of verander je 'vraag' (Bericht)
Dan kunnen andere mensen er ook nog wat aan hebben ;-)
@victor,

als de oplossing is gevonden oke ;)
niemand kan me verder helpen?
Je moet ook zorgen dat je HTML wel oke is..

<p> <table> <thead <tr> <td width="20%">


In de 1e regel zit al een fout. Je sluit de thead niet af. Als je dat nou is eerst oplost :']
LOOOOOOOOOOOOOOOOOOOOOOOOOOOOL AL DIE PHP TAGS
@Dennis,

komt uit een Joomla! bestand, zat in een html mapje. Dus ik denk dat dat de oorzaak is.


@Joris,
done maar geen resultaat, teminste niet verbeterd.

Reageren