Question about eZ possibilities

Author Message

Noicokuna Niemoge

Friday 24 April 2009 3:37:35 am

Hi;

I'm working on one project, in which several advanced features must be added.

Can I:

1. Display products in such a way that near each product there's a checkbox and below is one "submit" button, adding all selected products in a bulk to shopping cart?

2. Can eZ load data as objects from external MySQL database, or at least from foreign tables in the same database as eZ?

3. Is there a possibility to define a second level of access for a user, password-protected?

That would be all. Do you have any ideas?

Shiki soku ze ku...

Arnoud van Steen

Friday 24 April 2009 4:31:08 am

Hi :)

1: cannot confirm for sure, I have not worked with the shopping cart in Ez Publish yet.
Guessing by the api I've seen of other aspects of Ez Publish, this should be possible.

2: Definitely yes, from the same database, you can create new tables in it and use the database objects or your own queries to retrieve the data. Not sure about the external database, that would be an interesting thing to check :)

3. Just a protected area within the site you mean? Seeing Ez Publish has a lot of options for user groups, their roles and policies etc.. this should be no problem.
See if these articles answer your question:
http://ez.no/developer/articles/section_segmentation_and_user_permissions_part_1_of_2
http://ez.no/developer/articles/section_segmentation_and_user_permissions_part_2_of_2

Good luck :)

Noicokuna Niemoge

Friday 24 April 2009 6:57:20 am

Hi;

Thank you for reply, do you possibly know where I can learn more about database objects? :)

Shiki soku ze ku...

Arnoud van Steen

Friday 24 April 2009 7:07:45 am

For one there's an interesting article about creating extensions to Ez Publish, you might want to go through this to learn how to add functionality. In there is also a part where an additional table to the database is created and used.

Besides that, there's limited info in the documentation, API etc, most useful is to look in the filestructure of Ez Publish and find the php code there. At least the files dealing with the database also have DB in them. :)

Noicokuna Niemoge

Friday 24 April 2009 7:17:53 am

Hi again :)

Thank you for the hint. :) I'll check these articles out! :)

As for User permissions, I want to create a system in which several people will log in by the same username. Let's call it Level 1 of access. Now, a "chief" of that group of people will be able to enter level 2 access, by putting in another password.

So either one username will have two passwords that will open various level of access, or one username will have one password, and then there will be another restricted area in it, to access which another password must be used.

sounds a bit complicated... :/

Shiki soku ze ku...

Arnoud van Steen

Monday 27 April 2009 7:14:50 am

hi :)

Isnt it a whole lot easier to create two types of users? One that can access part of the restricted area and one that can access everything (level 2) of that restricted area?
The user that can access level 2 will only have to log in once as well in this case.

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 30 2025 21:42:02
Script start
Timing: Jan 30 2025 21:42:02
Module start 'layout'
Timing: Jan 30 2025 21:42:02
Module start 'content'
Timing: Jan 30 2025 21:42:02
Module end 'content'
Timing: Jan 30 2025 21:42:02
Script end

Main resources:

Total runtime0.0395 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0078 588.1406151.2109
Module start 'layout' 0.00780.0047 739.3516220.6875
Module start 'content' 0.01250.0253 960.03911,001.6797
Module end 'content' 0.03780.0017 1,961.718833.9922
Script end 0.0395  1,995.7109 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00317.9101140.0002
Check MTime0.00143.4203140.0001
Mysql Total
Database connection0.00123.025810.0012
Mysqli_queries0.004110.262030.0014
Looping result0.00000.055510.0000
Template Total0.00122.910.0012
Template load0.00092.209010.0009
Template processing0.00030.693110.0003
Override
Cache load0.00061.540610.0006
General
dbfile0.00030.697980.0000
String conversion0.00000.027140.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs