norashlea
-
8/14/2006 1:01:08 AM
Multiple Workflows
Hi,
I need to implement multiple workflows (6 altogether). This is a similar to the situation described at http://www.kentico.com/Forums/ShowPost.aspx?PostID=1261, where each division of the organization will be administering their own sections of the site.
I thought that I could implement it by creating an additional 5 document templates for the individual divisions, based on Page (Menu Item).
To start with just one of the divisions, in my application I created a new aspx page and recorded it as a new page template in CMS Desk.
I also created a role "CMS Training Approver", and then a new Workflow called Training with the CMS Training Approver as the only allowed Role.
Then in Application: CMS, I created a new template which I called Page (Menu Item - Training), setting the Workflow to "Training", and ensured that it had the same set of transformations, queries etc as Page (Menu Item). As this creates a separate table in the database as CMS_Training, I left all the fieldnames exactly the same as they are in CONTENT_MenuItem.
In my application, this created ../cms/training and the historyview.ascx file, but not the *.cs file. So I copied the one from ../cms/menuitem and modified the namespace. All the other folders and files under ../cms/training were created ok, and my application builds without error.
In the database, I also created a new stored procedure Proc_CMS_Training_SelectMenuItemFromAliasPath.
Then I set about modifying the page template that had been used for creation of all the pages in the Training section (on the Content tab), selecting the newly created Page (Menu Item - Training). But nothing changed!
So I first checked the table CMS_Class to make sure Page (Menu Item - Training) had been recorded correctly. Then I checked CMS_Tree, and found that all the /Training pages still had the ClassID for Page (Menu Item) recorded, rather than the ID for the new class.
To check that a page records correctly, I created a new page at the root level of the site, based on the new contentTraining.aspx page. It creates a new entry in CMS_Tree with the correct NEW ClassID recorded, and it has created an entry in the new CMS_Training table. But I can't actually access the page to edit content. It just throws me to the root page when I select it in the tree.
For the existing pages, I tried manually changing the ClassID to the new ID and then manually creating an entry in CMS_Training, deleting the old one from CONTENT_MenuItem, but I just get an error in the display window -- which I can't actually read because it is somehow being "cut off" -- I can see only about 2mm of the top line, which I think is saying "An error occurred [can't see next bit] your request. Please contact your administrator for help."
Regards, Sharon.
|