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 :)

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 31 2025 06:20:23
Script start
Timing: Jan 31 2025 06:20:23
Module start 'layout'
Timing: Jan 31 2025 06:20:23
Module start 'content'
Timing: Jan 31 2025 06:20:23
Module end 'content'
Timing: Jan 31 2025 06:20:23
Script end

Main resources:

Total runtime0.0437 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.2656151.2266
Module start 'layout' 0.00670.0030 739.492236.6797
Module start 'content' 0.00970.0324 776.171998.1875
Module end 'content' 0.04210.0015 874.359437.9922
Script end 0.0436  912.3516 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00225.0050140.0002
Check MTime0.00102.2758140.0001
Mysql Total
Database connection0.00102.337410.0010
Mysqli_queries0.004510.200030.0015
Looping result0.00000.027310.0000
Template Total0.00102.310.0010
Template load0.00081.799310.0008
Template processing0.00020.528810.0002
Override
Cache load0.00051.206110.0005
General
dbfile0.026660.991380.0033
String conversion0.00000.015340.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