Forums / General / Automatically putting content objects into folders

Automatically putting content objects into folders

Author Message

Tim Dickinson

Thursday 07 September 2006 3:37:01 pm

Hi all,

I'm trying to create a site where a content object has various tick boxes that that object can have to determine which categories they belong to. This is fine normally and is searchable, however I want to be able to browse these categories not just search them, so I really need these tick boxes to be folders, or at least appear as such to the end user. Is this possible, and if so could anyone point me in the direction of how to get started?

Thanks

Tim

http://www.AdBalance.com - Ad network news and reviews
http://www.DevPublisher.com - Website publisher guides, tools and news
http://www.AudioMelody.com - Make better music

Marko Žmak

Friday 08 September 2006 12:44:05 am

I'm not sure what you mean by "autmatically" but maybe this could help...

In the admin interface go to the "My account" tab, and there on the ledt under "Edit mode settings" set "Location" to "on". After that when you go to create a new object, in the edit window wor that object you will have a "Locations" section on the bottom when you can add locations to the newly created object.

Another way to add locations to the object is to go to it's full view after publishing it and add locations from the "Locations" section in the full view. In order to see the "Locations" section you have to have the "Locations" button on (it's a the thin button on top of the objects view).

I hope this helps a bit. Is this what you wanted or something else?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Tim Dickinson

Friday 08 September 2006 10:30:22 am

Hi Marko and thanks for your reply.

I know you can add locations, and that is how I was going to do it manually. However what I want to do is with this content type there are a few options, so when adding content I would like a user to be presented with the folder options as checkboxes.

Content Object
-folder 1/2/3/4
-folder a/b/c/d
-folder x/y/z
-description
-url

Any ideas?

Tim

http://www.AdBalance.com - Ad network news and reviews
http://www.DevPublisher.com - Website publisher guides, tools and news
http://www.AudioMelody.com - Make better music

Marko Žmak

Friday 08 September 2006 11:26:15 am

Well, as I can see in the eZ admin interface, the edit form when creating new object contains form variables as this one:

<input name="AssignmentIDSelection[]" value="#node_id#">

for each node that is listed in the "Locations" section of the edit page. Where #node_id# is the actual node id of the listed node.

Maybe you could try putting something like this in the edit page of your user site? I never tried it myself.

Also try searchin the eZ forum for words like "publishing mutliple nodes" or similar. I remember that there were some topics that discuss this issue.

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth