Forums / Setup & design / fetchin inside pagelayout.I dont understund why.RESOLVED.

fetchin inside pagelayout.I dont understund why.RESOLVED.

Author Message

alvaro alvaro

Saturday 10 June 2006 4:28:46 pm

{def $npp=fetch('content','list', hash( parent_node_id, 129,
offset, 0,
sort_by, array( array( published, true() ) )
)
)
}

Why this code dosent works inside pagelayout, $npp its empty.

But it works inside my frontpage that is the node 2 with an overriden template, the $npp has values here.

I dont understund.

----RESOLVED----

Finally i resolved it:

It was that i was fetching an structure that dont depend of the language, but i hang it below a folder, that yes depends of the language. So from pagelayout and from node 2 i was in different languages so i see diferent results in the fetching list.

Thx, i will continue fighting.