[Zope] (no subject)

Hamzal Kamal k_hamzat@yahoo.com
Tue, 5 Mar 2002 02:19:24 -0800 (PST)


Hello Steve,

I want visitors my site to see the content_html inside news folder as
they typed my url into the address of their browsers,
at the same time i did not want to include the name of the folder
(news) in that my url.

There4 i have to define the root content_html like this;

<dtml-in "news.objectItems(['DTML Method'])">
<dtml-let content=id>
<dtml-if expr="content=='content_html'">
<dtml-var expr="_.getitem(content,1)">
</dtml-if>
</dtml-let>
</dtml-in>

And i defined the content_html inside the news folder as follows;

<table>
<tr>
<td width=300><!-- table col 1 content -->
<dtml-in "objectItems(['Folder'])">
<dtml-var title>
<dtml-try>
<dtml-call "REQUEST.set('mm', ZopeTime().strftime('%d%m%y'))">
<dtml-var expr="_.getitem(mm,1)[0:500]">
<a href="&dtml-URL1;/&dtml-id;/">
More...
</a><br>
<dtml-except>
</dtml-try>
</dtml-in>

</td>
<td><!-- table col 2 content -->
<ul>
<dtml-in "others.objectValues(['DTML Document'])" sort=title>
<dtml-call "REQUEST.set('mm', ZopeTime().strftime('%d%m%y'))">
<dtml-call "REQUEST.set('today', id)">
<dtml-if expr="mm==today()[0:6]">
<li>
<a href="&dtml-URL0;/&dtml-id;">
&dtml-title;
</a>
</li>
</dtml-if>
</dtml-in>
</ul>

</td>
</tr>
</table>

Then my problem here is that when i run the content_html in the news
folder it gives me the expected result i.e it displays the content in
the table col 1 and table col2 accurately but when i run the
content_html in the root it displayes only the content in the table
col2 .

Kindly help me out.
Regards
kamal

  





=====
Hamzat kamaldeen Ishola
Dnet Systems Limited
223 Ikorodu Road, Lagos.
234 1 7749381, 234 08033011305

__________________________________________________
Do You Yahoo!?
Try FREE Yahoo! Mail - the world's greatest free email!
http://mail.yahoo.com/