Forums / Install & configuration / switch root node/object

switch root node/object

Author Message

Jacek S

Friday 07 July 2006 7:37:00 am

I would like to have in root node(id 2) object of other class than folder.
How could I do it? Can I set other node as root node or set other object in that node?

Kristian Hole

Friday 07 July 2006 7:51:56 am

You can do this in (atleast) two ways:

1)
Create a subfolder and use this as your root node. You need to update a lot of settings then (PathPrefix, ...)

2)
In the content structure menu on the left side of the admin interface, you can left click on the icon of the root node. This will give you a popup menu. In this menu you can select Advanced -> Swap with another node.

Option 2 is probably the best one for you :-)

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Jacek S

Friday 07 July 2006 8:03:51 am

Yes, I think 2 option will be the best.

Thanks for answer, i have been looking for this menu quite a long time :) (it was LEFT clik ....)

Kristian Hole

Friday 07 July 2006 8:14:43 am

The left click is a bit tricky, because the browser steals the right-click, its not possible for us to use that, so we have to use the left-click :-)

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Jacek S

Friday 07 July 2006 8:28:32 am

Switching was successful, but now there is a mess in admin interface.
Whatever i click (Content, Design Setup etc), I get message:

The requested page could not be displayed. (20)

The requested address or module could not be found.

Possible reasons:

* The address was misspelled. Try changing the URL.
* The name of the module was misspelled. Try changing the URL.
* There is no <test__1> module available on this site.
* The site is using URL matching to determine which siteaccess to use, but the name of the siteaccess is missing from the URL. Try to add the name of the siteaccess, it should be specified before the name of the module.

Edit:
I can also switch back to the old root node. The same reaction.

Any help or suggestions?

Kristian Hole

Monday 10 July 2006 7:29:17 am

Strange, It worked when i tested here.

Which version of eZ publish are you running?
Does it always say (in media,content,users), "the module <test_1> was not found" ?

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Kristian Hole

Wednesday 12 July 2006 7:57:50 am

Did you get it working?

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Jacek S

Thursday 13 July 2006 9:46:43 am

Yes, I get it working. I throw that ez publish installation and start a new one. I was short of time and this was only a testing installation.
Maybe there was a problem with configuration of class that was in new root node. It has only one attribute named new_attribute. This attribute was text line with "test" value.
Like I said - testing installation.
After switching nodes there was something werid with objects names. For example: old node got name: "__1".

Im running version 3.8.1.
"the module <test_1> was not found" was shown almost always. Only looking over attributes of objects worked properly.

I have a backup of database, if you want to look over this database i can send it to you.

Kristian Hole

Monday 17 July 2006 8:11:55 am

Testing is allways good.

When you have a class you should allways have one required field (the first one) which is a text-line. This will then be used as the name for the objects you create.

Well... actually the name is given by the object-name-pattern, but if you do not specify anything there, it will use the first attribute as object name pattern for your installation.

I will do some small test, and see if i can replicate it. No need for your database dump.

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Jacek S

Tuesday 18 July 2006 11:47:27 pm

<i>Well... actually the name is given by the object-name-pattern, but if you do not specify anything there, it will use the first attribute as object name pattern for your installation.</i>

I think I might do something wrong with object-name-pattern. I probably set name pattern to relate to non-existing field.

eZ debug

Timing: Jan 18 2025 16:12:18
Script start
Timing: Jan 18 2025 16:12:18
Module start 'content'
Timing: Jan 18 2025 16:12:19
Module end 'content'
Timing: Jan 18 2025 16:12:19
Script end

Main resources:

Total runtime0.7472 sec
Peak memory usage4,096.0000 KB
Database Queries215

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 588.8594180.8359
Module start 'content' 0.00530.6308 769.6953624.8281
Module end 'content' 0.63600.1111 1,394.5234344.4688
Script end 0.7472  1,738.9922 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.5373210.0002
Check MTime0.00150.2011210.0001
Mysql Total
Database connection0.00070.089410.0007
Mysqli_queries0.668789.49472150.0031
Looping result0.00190.25842130.0000
Template Total0.724997.020.3624
Template load0.00200.264620.0010
Template processing0.722996.742320.3614
Template load and register function0.00010.018210.0001
states
state_id_array0.00080.103510.0008
state_identifier_array0.00060.082620.0003
Override
Cache load0.00180.2381570.0000
Sytem overhead
Fetch class attribute can translate value0.00240.324630.0008
Fetch class attribute name0.00100.1297110.0001
XML
Image XML parsing0.00100.128130.0003
class_abstraction
Instantiating content class attribute0.00000.0039150.0000
General
dbfile0.00340.4501270.0001
String conversion0.00000.000630.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
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 42
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs