Share » Forums » Developer » fetch not working in page_head.tpl

fetch not working in page_head.tpl

fetch not working in page_head.tpl

Friday 05 September 2008 5:15:18 am - 4 replies

Modified on Friday 05 September 2008 5:16:29 am by Oliver Frommel

Author Message

Pierre Tissot

Monday 08 September 2008 8:12:52 am

Hi:

I never had this sort of problem, but I always use:

$module_result.content_info.node_id

I know that in theory it's the same but try it, maybe this will work

PiR

Oliver Frommel

Thursday 11 September 2008 12:06:06 am

Thanks for the hint. Only it doesn't help because the node_id I get is always ok. It's only the fetch that fails.
best
Oliver

Xavier Serna

Monday 15 September 2008 6:16:43 am

Have you checked that the include is not inside any cache-block? this can cause symptoms like yours...

hth!

--
Xavier Serna
eZ Publish Certified Developer
Departament de Software
Microblau S.L. - http://www.microblau.net
+34 937 466 205

Oliver Frommel

Monday 15 September 2008 7:41:58 am

Unfortunately not. Thanks for the proposal however. The strange thing is that only the fetch fails. I will just paste the few code lines in question:

{def $active_node_id=$module_result.node_id
     $node=fetch('content','node',hash('node_id', $active_node_id))}

<title>
"{$node.name}" - "{$active_node_id}"
</title>

The node id is always shown, the name isn't in most cases. It works only with folders.
Now I am beginning to think that it has to do with localisation, maybe.

Best
Oliver

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu