Creating form to select which part of the site to enter

Author Message

Bernhard Reiter

Friday 04 March 2005 4:17:52 am

Hello,
I am new to ezPublish and still have a lot to learn.
So my question is:
Suppose you have two different parts of the site which look the same but have different content and some menus are changed. So before entering the site you have to choose which one to enter. Its obvious you need a form for that but how to do it?
I fist wanted to do it like this:
http://www.ez.no/ez_publish/documentation/incoming/http_post_to_url_conversion
but then i realized that you need an content object to access the form. Sure i could make an empty one, but i am asking myself if there is an easier way to accomplish this.

Any suggestions?

Ɓukasz Serwatka

Friday 04 March 2005 5:08:25 am

Hi Bernhard,

You can do this using two links with different variable value for every part of your site.

For example.
mysite.com/siteaccess/(variable)/value

In templates:

{section show=eq($view_parameters.var, 'value')}
display content, include tpl
{section-else}
do something else
{/section}

You can also use two siteaccess.
http://ez.no/ez_publish/documentation/incoming/design/designs_and_siteaccesses

I hope it will help.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Bernhard Reiter

Friday 04 March 2005 6:36:25 am

Thanks. I will need to figure out which solution fits better for me.

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