Forums / Developer / Custom creation form : trouble trouble trouble

Custom creation form : trouble trouble trouble

Author Message

Nabil Alimi

Wednesday 13 July 2005 3:38:55 am

Hi,

It sounds like big trouble... ^^
Here's the plot.

I have a container class "formation".
In this one, there can be several "option".

I have a "planning" class.
She was first linked to a formation.
Now, it appears that she must be linked to an option.
So when user create a new "planning" he chooses first a formation. And then, thanks to JAVASCRIPT, the list of linkde options is displayed. He can then choose a related option.

Example :

Formation : Ezpublish
Option 1 : Content management
Option 2 : Template creation

Planning :
- Formation : Ezpublish
- Option : Template creation
(And dates)

The main problems will be to :
- add javascript within the planning creation form in order to reload the form when the user has chosen a formation
- filter the available options to those who are in the previous selected formation

So...

Where can I find the display template for objectrelation ?
Before "breaking" what I've done yet,does objectrelation search object deeper than the 1st level of the node ?
I mean, I have a folder for formations. If I had in my class an objectrelation "linked option" and the formation folder node as node for searching options will the options be displayed ?

Awww...

Thanks for reading me.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Nabil Alimi

Wednesday 13 July 2005 5:27:38 am

I'll try something else.

I'm gonna use a text line.

But at object creation, instead of displaying an <input type="text"> I'd like to display a <select> box. The specified value will be stored into the text line.

Is this possible ? When looking at the content form creation, it seems that it cant be achieved so simply...

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Eivind Marienborg

Wednesday 13 July 2005 6:05:30 am

This is very possible. You just have to make sure to get the id's right. I've used this at several sites. Good luck :)

Nabil Alimi

Wednesday 13 July 2005 7:41:37 am

^^ ok but... Could you give a hint or two ? ^^'
The Ids in the object relation are not the node id's of the object they are related to.
So I dont see how I can make the link.
And it doesnt look as simple as you seems to say it. ^^

(Does my sentence means anything ?)

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

Eivind Marienborg

Wednesday 13 July 2005 8:06:36 am

Hum, I guess I was a bit unprecise there. I've used the dropdown to replace the text input with success, but not in a object relation.

Try and failing is a good method ;) And use the {$node|attribute(show)}. Good luck :)

eZ debug

Timing: Jan 20 2025 06:40:01
Script start
Timing: Jan 20 2025 06:40:01
Module start 'content'
Timing: Jan 20 2025 06:40:02
Module end 'content'
Timing: Jan 20 2025 06:40:02
Script end

Main resources:

Total runtime0.2757 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0251 589.0859180.8125
Module start 'content' 0.02510.0109 769.8984101.9297
Module end 'content' 0.03610.2396 871.8281533.3750
Script end 0.2756  1,405.2031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00401.4370200.0002
Check MTime0.00150.5372200.0001
Mysql Total
Database connection0.00060.224110.0006
Mysqli_queries0.199072.17431410.0014
Looping result0.00140.51581390.0000
Template Total0.239086.710.2390
Template load0.00090.343110.0009
Template processing0.238186.355010.2381
Override
Cache load0.00060.224510.0006
Sytem overhead
Fetch class attribute can translate value0.00090.331210.0009
XML
Image XML parsing0.00020.086310.0002
General
dbfile0.00491.7623200.0002
String conversion0.00000.001830.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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