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.

eZ debug

Timing: Jan 20 2025 17:33:09
Script start
Timing: Jan 20 2025 17:33:09
Module start 'layout'
Timing: Jan 20 2025 17:33:09
Module start 'content'
Timing: Jan 20 2025 17:33:10
Module end 'content'
Timing: Jan 20 2025 17:33:10
Script end

Main resources:

Total runtime1.1585 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 589.2891151.2422
Module start 'layout' 0.00590.0025 740.531336.7109
Module start 'content' 0.00851.1491 777.2422561.1719
Module end 'content' 1.15760.0009 1,338.414111.7969
Script end 1.1585  1,350.2109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2845160.0002
Check MTime0.00140.1220160.0001
Mysql Total
Database connection0.00070.062910.0007
Mysqli_queries1.115496.2776570.0196
Looping result0.00050.0434550.0000
Template Total1.128297.420.5641
Template load0.00190.165120.0010
Template processing1.126297.215320.5631
Template load and register function0.00020.018010.0002
states
state_id_array0.00100.088010.0010
state_identifier_array0.00160.138120.0008
Override
Cache load0.00150.1253240.0001
Sytem overhead
Fetch class attribute can translate value0.00080.065820.0004
Fetch class attribute name0.00110.096340.0003
XML
Image XML parsing0.00080.070620.0004
class_abstraction
Instantiating content class attribute0.00000.001340.0000
General
dbfile0.00080.0694180.0000
String conversion0.00000.000940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs