Forums / General / Code not processed :O:(

Code not processed :O:(

Author Message

John Mina

Thursday 01 July 2004 2:03:56 am

hi All
the following code is having problem to be processed on the server
i am using v 3.3-3 and it is working fine on my machine but not the same thins o nthe server ,

<img src={$news.item.data_map.thumbnail.content.small.url|ezroot} hspace="5" align="right" /> 

the output of this {included code} is null always
and i am not able to retrieve the picture using the

{attribute_view_gui attribute=$news.item.data_map.thumbnail image_class=small}

though the data fetching is wrking
and there is no problem about it
at all

Any Help PLEASE
it is serious the web site is opening in days :(

Vadym Savchuk

Thursday 01 July 2004 9:35:27 am

The following code certainly works:

{let fetched_news=fetch_alias(news_list)}
{section name=News loop=$fetched_news}
    <img src={$News:item.data_map.thumbnail.content.small.url|ezroot}/><br/>
{/section}
{/let}

Maybe you should replace dot with colon between "$news" and "item"?

John Mina

Sunday 04 July 2004 2:46:53 am

hi Vadym
I do really thank you very much

but Unfortunalty the case here is fine with the code i wrote, and it is fine as long as it is running from the local machine , but on the server it is not , i beleiev i may have missed up with one of the setting pages
, do you have any idea how could i run the setup once again , without removing the while files i uploaded for design stuff adn var\news ?

Please let me know
Apriciating your help a lot
thanks
Jo
John Mina

Sergiy Pushchin

Tuesday 06 July 2004 3:01:25 am

To initiate setup procedure you need to set to true one setting in site.ini file..

[SiteAccessSettings]
CheckValidity=true