How to make php constructions work in pagelayout.tpl?!

Author Message

Katya Sedova

Friday 06 May 2005 9:08:19 am

Hello!

I'm workin with eZ for the first time and
have such a problem of using built-in php code in the pagelayout.tpl.

I have a <b>php variable</b> being initialiezed in the beginning of a file /<? $Page="" ?>/
and also the <? if...else ?> clause, according to which the current menu item
behaves as text and other items - as links.
what should I do to make it work in pagelayout.tpl?

Please, help me!!
Thanks!

kracker (the)

Friday 06 May 2005 9:28:45 am

Katya,

Congratulations on your first steps with eZ publish.

Sadly you can't simply embed php code into an eZ publish template without a little abstraction.

Sorry,
//kracker

Sole : Shoot The Messenger

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

kracker (the)

Friday 06 May 2005 9:48:24 am

Katya,

I didn't mean to be quite so brief, I was distracted by a sudden phone call :)

These references regarding this subject should do more than I can in Xmin.

<i>References:
http://ez.no/community/forum/developer/php_code_in_templates
http://ez.no/community/forum/developer/how_to_include_php_code_in_templates

http://ez.no/ez_publish/documentation/customization/tips_tricks/including_php_files_in_templates
http://ez.no/ez_publish/documentation/customization/tips_tricks/how_can_i_use_my_own_php_script_inside_ezp

http://ez.no/ez_publish/documentation/development/extensions/template_operator
http://ez.no/ez_publish/documentation/development/kernel/custom_template_operators

http://www.google.com/search?hl=en&q=site%3Aez.no+php+code&btnG=Google+Search
</i>

//kracker

Sole : Live From Rome : Drive by Detournment

Member since: 2001.07.13 || http://ezpedia.se7enx.com/

Katya Sedova

Sunday 08 May 2005 3:11:24 am

Thank you!! :)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.