Sunday 14 March 2004 2:16:45 am
Dear ALL, first , please take a moment to read and help if u can. Please.
I want to created a new class for a daily word that would be fetched and published aoutomatically based on the date.
The custom class i created included date field, and a text field. not an XML field.
I created a section for that class. I added 2 daily words in a folder that is assigned to the section i created. in the front page i will show these fetched words. so i wrote direcly in the front_folder.tpl the following code:-
{let children=fetch(content,list,hash('parent_node_id',$n.node_id)) ch_count=fetch(content,list_count,hash('parent_node_id',$n.node_id)) }
{$ch_count}
{section var=child loop=$children}
{$child.item.name}
{/section} {/let}
the problem that the always, the $ch_count is 0 while i ahve children in this folder, i am sure of that, and when i change the parent node id i can c that everythign is normal and so it never enters the section to print out anything as it see nothing.:(
as amatter of fact i thought it may be a matter of anonymous user's roles problem, so enabled the anonymous user to read that section whereever it is in the contect "content read Section( word ) "
I do appriciate your help. even if u have no answer for this please le tm eknow that my voice reached you please write me anything.
This matter had been bothering me since last week and i don't know how to proceed working i need that alot in my project so please try to help me if any suggestions Sincerely John
|