Custom designs and switching in shop areas

Author Message

steve walker

Thursday 16 December 2004 3:26:28 am

Hi there,

Echoing the frustrations of:

http://ez.no/community/forum/developer/where_to_assign_section_layout_for_shop_and_search_modules

http://ez.no/community/forum/setup_design/unique_shop_layout

I'm trying to carry through my use of section switches dependent on the area of the website the user is in.

Its all fine with node_ids and sections - but once you enter the checkout areas like /shop/basket.tpl the model seems to break. It just seems to take on the identity (section id at least) from the area you came from...

Could anyone tell me the magic words that fix this?

Thanks, Steve.

http://www.oneworldmarket.co.uk

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

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