Forums / Developer / Question about eZ possibilities

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.

eZ debug

Timing: Jan 18 2025 05:07:32
Script start
Timing: Jan 18 2025 05:07:33
Module start 'content'
Timing: Jan 18 2025 05:07:33
Module end 'content'
Timing: Jan 18 2025 05:07:33
Script end

Main resources:

Total runtime0.8138 sec
Peak memory usage4,096.0000 KB
Database Queries203

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.8359180.8281
Module start 'content' 0.00670.6788 769.6641537.4141
Module end 'content' 0.68550.1282 1,307.0781338.1016
Script end 0.8138  1,645.1797 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.5803210.0002
Check MTime0.00200.2396210.0001
Mysql Total
Database connection0.00090.116010.0009
Mysqli_queries0.736990.54952030.0036
Looping result0.00200.25032010.0000
Template Total0.782996.220.3914
Template load0.00270.332020.0014
Template processing0.780195.861320.3901
Template load and register function0.00020.027410.0002
states
state_id_array0.00090.114010.0009
state_identifier_array0.00160.198320.0008
Override
Cache load0.00230.2844360.0001
Sytem overhead
Fetch class attribute can translate value0.00230.277230.0008
Fetch class attribute name0.00230.283860.0004
XML
Image XML parsing0.00060.071330.0002
class_abstraction
Instantiating content class attribute0.00000.002260.0000
General
dbfile0.00390.4772210.0002
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs