Re: [Zope] any cleaner or cleverer way of inclusion ?
OdesÃlatel: Can Burak Cilingir <canburak@knuth.cs.bilgi.edu.tr> i have a folder hierarchy which has "index_html(dtml doc)", "left(dtml mtd)", "main(dtml mtd)" etc in the root folder, and "my_index(dtml method)" in all folders. (index_html has <dtml-var left><dtml-var main>)
when i add "my_index" at the "main" (<dtml-var my_index>)and call say "http://xxx/Something/Otherthing", i saw "my_index" which is at the root,
not the one inside "Something/Otherthing".
Easy :-) You need to call folder "Otherthing", not a page "Otherthing" 8-) http://xxx/Something/Otherthing/ ^ Regards JL.
You need to call folder "Otherthing", not a page "Otherthing" 8-) http://xxx/Something/Otherthing/ ^ this is a good suggestion. i don't undestand why zope assigns urls without a trailing slash (absolute_url). my navigation method now uses href="<dtml-var id>/"> (was href="<dtml-id>">)
but this doesn't solved the problem. following code ---cut--- ---------var---------- <dtml-var bilgi_cs_index> ------loooooop-------- <dtml-in expr="PARENTS[0].objectValues('DTML Method')" > <dtml-comment>this was returning. this behaviour is a must to illustrate the problem.</dtml-comment> <dtml-var bilgi_cs_index> </dtml-in> ---cut--- displays ---------var---------- No content for this folder. ------loooooop-------- Year 1 address is: http://xxx/Courses/Year_1/ "Year 1" comes from http://xxx/Courses/Year_1/my_index "No content.." comes from http://xxx/my_index (this will be changed with "missing" later.) thanks in advance.
participants (2)
-
Can Burak Cilingir -
Jaroslav Lukesh