Custom designs and switching in shop areas

Custom designs and switching in shop areas

Thursday 16 December 2004 3:26:28 am - 6 replies

Author Message

Eirik Alfstad Johansen

Friday 17 December 2004 12:30:19 am

Hi Steve,

Once you reach the shop module, the section id no longer exists. Sections only exist for the content module.

Hope this helps.

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

steve walker

Friday 17 December 2004 2:12:20 am

Eirik,

Thanks for your reply.

So if sections canot be used here, whats the unique identifier that can be used?

Is it possible, say, to use the template as an identifier:

Match[template]=basket.tpl

Someone must have experienced this issue?

Cheers, Steve.

http://www.oneworldmarket.co.uk

Eirik Alfstad Johansen

Friday 17 December 2004 2:44:20 am

Hi Steve,

Check out http://ez.no/ez_publish/documentation/customization/custom_design/template_variables_set_by_ezpublish

Perhaps you could use $module_result.path or $module_result.uri?

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

steve walker

Friday 17 December 2004 4:21:19 am

Thanks Eirik.

I have tried puting:

{$node|attribute(show,3)}
{$DesignKeys:used|attribute(show)}
{$node|attribute(show)}

and also:

module_result <br />{$module_result|attribute(show,5)}
designkeys <br />{$DesignKeys:used|attribute(show,5)}
view_parameters <br />{$view_parameters|attribute(show)}
uri_string {$uri_string} <br />
requested_uri_string {$requested_uri_string} <br />
site <br />{$site|attribute(show)}
ezinfo <br /> {$ezinfo|attribute(show)}

but the only info I can get out of it is that it belongs to section 5, which is the section that the product page leading to /shop/basket came from...

I don't suppose any of the Ez Crew could shed some light on this?

Thanks, Steve.

http://www.oneworldmarket.co.uk

Eirik Alfstad Johansen

Friday 17 December 2004 4:47:34 am

Hi Steve,

When I do {$module_result.uri} in my pagelayout.tpl, it prints out the URI, also when I'm in the basket view of the shop module (remember to check for the $module_result.uri in the pagelayout template and not the shop/basket template).

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

steve walker

Friday 17 December 2004 7:48:57 am

Eirik,

Hurray! Yep, the problem was I was putting the code into basket.tpl..

Have got a switch working using:

{switch match=$module_result.uri}
{case match="/gia/shop/basket"}

this is basket page

{/case}
{case} 

this isnt!!!

{/case}
{/switch}

Many thanks for your help on this.

Regards, Steve.

http://www.oneworldmarket.co.uk

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

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