tmpl - how to use - error?

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
yuluma
Posts: 53
Joined: Wed 29. Sep 2004, 04:00
Location: Alkmaar - Netherlands - Europe
Contact:

tmpl - how to use - error?

Post by yuluma »

Dear experts,

I use the tmpl system where I created a template for the listing and one for the whole article. The first is very need with a 'read more' link and the second is without and with a creation date.

I only asume that this is not working yet, because when I click the readmore link I just see the same summary in a different template. new content parts are NOT shown within the template but outside.

For the second tmpl I used SUMMARY, this could be my mistake but I couldn find a different RT for the tmpl. :shock:

http://www.projectaware.nl/beta/index.php
Last edited by yuluma on Mon 10. Oct 2005, 08:51, edited 1 time in total.
Yuluma Nunbanna - workaholic ad dies vitae
Pappnase

Post by Pappnase »

hello

please post your template code!
yuluma
Posts: 53
Joined: Wed 29. Sep 2004, 04:00
Location: Alkmaar - Netherlands - Europe
Contact:

tmpl code

Post by yuluma »

Code: Select all

<table class="breedvlak" cellspacing="0" cellpadding="0" border="0">
<tbody><tr>
    <td align="left" height="26" valign="top" width="15">
    <img src="img/blocks/white_topleft_corner.jpg" alt="" border="0" height="26" width="15"></td>  
    <td colspan="3" class="whiteTopMiddle">
    [TITLE]{TITLE}[/TITLE]	
    </td>
    <td align="left" height="26" valign="top" width="15">
    <img src="img/blocks/white_topright_corner.jpg" alt="" border="0" height="26" width="15"></td>	
  </tr>
  <tr> 	
    <td class="whiteLeft">
    <br></td>
    <td colspan="3" class="whiteCenter">
	<table class="breedvlakContent">
	 <tr>
	  <td>
		{SUMMARY}<br><br><div align="right">[ARTICLELINK]<a href="{ARTICLELINK}">Naar artikel...</a>[/ARTICLELINK]</div>
	  </td>
	 </tr>
	</table>
    </td>
    <td class="whiteRight">
    <br></td>
  </tr>
  <tr>
    <td align="left" height="14">
    <img src="img/blocks/white_bottomleft_corner.jpg" alt="" border="0" height="14" width="15"></td>  	
    <td align="left" height="14" valign="top" width="85">
    <img src="img/blocks/white_bottomleft.jpg" alt="" border="0" height="14" width="85"></td>
    <td class="whiteBottomCenter">
    <img src="img/blocks/white_bottommiddle.jpg" alt="" border="0" height="100%" width="100%"></td>
    <td align="left" height="14" valign="top" width="85">
    <img src="img/blocks/white_bottomright.jpg" alt="" border="0" height="14" width="85"></td>
    <td align="left" height="14">
    <img src="img/blocks/white_bottomright_corner.jpg" alt="" border="0" height="14" width="15"></td>    		
  </tr>	
</tbody>
</table><br>
and this is the code for the whole article

Code: Select all

<table class="breedvlak" cellspacing="0" cellpadding="0" border="0">
<tbody><tr>
    <td align="left" height="26" valign="top" width="15">
    <img src="img/blocks/white_topleft_corner.jpg" alt="" border="0" height="26" width="15"></td>  
    <td colspan="3" class="whiteTopMiddle">
    {TITLE} | {SUB}	
    </td>
    <td align="left" height="26" valign="top" width="15">
    <img src="img/blocks/white_topright_corner.jpg" alt="" border="0" height="26" width="15"></td>	
  </tr>
  <tr> 	
    <td class="whiteLeft">
    <br></td>
    <td colspan="3" class="whiteCenter">
	<table class="breedvlakContent">
	 <tr>
	  <td>
		{IMAGE}{SUMMARY}[DATE]<br><div align="right">{DATE:d-m-Y:NL}</div>[DATE]
	  </td>
	 </tr>
	</table>
    </td>
    <td class="whiteRight">
    <br></td>
  </tr>
  <tr>
    <td align="left" height="14">
    <img src="img/blocks/white_bottomleft_corner.jpg" alt="" border="0" height="14" width="15"></td>  	
    <td align="left" height="14" valign="top" width="85">
    <img src="img/blocks/white_bottomleft.jpg" alt="" border="0" height="14" width="85"></td>
    <td class="whiteBottomCenter">
    <img src="img/blocks/white_bottommiddle.jpg" alt="" border="0" height="100%" width="100%"></td>
    <td align="left" height="14" valign="top" width="85">
    <img src="img/blocks/white_bottomright.jpg" alt="" border="0" height="14" width="85"></td>
    <td align="left" height="14">
    <img src="img/blocks/white_bottomright_corner.jpg" alt="" border="0" height="14" width="15"></td>    		
  </tr>	
</tbody>
</table><br>
Yuluma Nunbanna - workaholic ad dies vitae
yuluma
Posts: 53
Joined: Wed 29. Sep 2004, 04:00
Location: Alkmaar - Netherlands - Europe
Contact:

explanation

Post by yuluma »

Dear readers.

I've got some issues:

1.
I don't understand how or why the templates don't work. I thought there is one template for the summary (the first part of the article) and there is one template for the whole article. I created 2 articles (as above) but when I click the link for the whole article I get the summary with the whole article beneath it. I can't seem to get to display the article content parts into the template. Is my thinkin or my programming wrong?

2.
I'm building this website for Project Aware! A NGO (or goed doel in dutch) and they are desparate to use the system because there current page is not satisfying (http://www.projectaware.com). Normaly, and that means in the last 2 years, I never ask for fast action. After all Oliver took all this time to create the OS system and all of you took time to make it one perfect system ;-) But for one time I realy bag you to help! :oops: :oops: :oops:

Thanx for any explanation!
Yuluma Nunbanna - workaholic ad dies vitae
Post Reply