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

eZ debug

Timing: Jan 18 2025 10:43:14
Script start
Timing: Jan 18 2025 10:43:14
Module start 'content'
Timing: Jan 18 2025 10:43:14
Module end 'content'
Timing: Jan 18 2025 10:43:15
Script end

Main resources:

Total runtime0.9553 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0075 588.9688180.8203
Module start 'content' 0.00750.7900 769.7891565.3828
Module end 'content' 0.79750.1578 1,335.1719336.7500
Script end 0.9552  1,671.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.4672210.0002
Check MTime0.00180.1857210.0001
Mysql Total
Database connection0.00070.075710.0007
Mysqli_queries0.869991.06281970.0044
Looping result0.00230.24511950.0000
Template Total0.925996.920.4630
Template load0.00200.210120.0010
Template processing0.923996.712420.4620
Template load and register function0.00010.012010.0001
states
state_id_array0.00070.078410.0007
state_identifier_array0.00140.143820.0007
Override
Cache load0.00170.1787330.0001
Sytem overhead
Fetch class attribute can translate value0.00150.160130.0005
Fetch class attribute name0.00130.135760.0002
XML
Image XML parsing0.00140.141830.0005
class_abstraction
Instantiating content class attribute0.00000.001980.0000
General
dbfile0.00460.4804350.0001
String conversion0.00000.001030.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/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: 16
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs