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