The topMenu's root location is actually the home page, so it must exist before other pages can access it. Please read the new Template Developer guide draft for more information about absolute addressed container lists.
Regards, Serge Huber.
Greg Kerdemelidis wrote:
Hi all,
As a follow-up, we’ve figured out a workaround:
1) Start up the server
2) Go to my settings in edit mode, click ‘Add’ in the menu.
3) It fails with the exception below every time.
4) Go to the homepage.
5) Click workflow.
6) In this instance, there is nothing to approve, but click [OK] anyway.
7) Go to my settings again.
8) Click ‘add’ in the menu – it works fine now.
So, what’s the story here? Does the workflow engine re-init some components that are responsible for managing container lists?
Cheers,
-Greg
------------------------------------------------------------------------
*From:* Greg Kerdemelidis [mailto:[EMAIL PROTECTED] *Sent:* Thursday, 7 October 2004 1:28 p.m. *To:* [EMAIL PROTECTED] *Subject:* Exception adding a new page
Hello,
We’re trying to add a new page to our Jahia-driven site and are experiencing some recurring errors… Our setup could be considered slightly non-standard, in that page addition is handled through the “My Settings” page, since it is the only page left on the site to use the topMenu container list. (All the other pages use a hard-coded menu).
Our problem is that attempting to add a new page to the site produces the following exception everytime:
org.jahia.exceptions.JahiaException: Field -1 cannot be found in topMenu, JahiaContainer : Field -1 cannot be found in topMenu
at org.jahia.data.containers.JahiaContainer.getField(JahiaContainer.java:496)
.
.
.
While the dialog just says “No field to edit.”
Any ideas on what might cause this? It’s quite a show-stopper, as you might imagine…
The id for the topMenu container list is [3], which maps via the jahia_ctn_lists to Jahia_ctn_def 4, which is the topMenu. It all seems to be consistent in the db. Very frustrating!
Regards,
-Greg
