HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Stupid mistake

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#21120 (In Topic #5098)
Avatar

Well-settled

I added a comcode page but forgot to add the zone. I tried to add it later by typing the zone in the name field starting with a : .
That didn't work to well. O_o

In fact, the page is visible in the pulldown menu where i can chose a comcode page to edit but when i try to edit it it gives me:

Code

You must input the name of a new page as in the format 'zone:file' (e.g. 'adminzone:adminguide' or ':userguide')

So i have two silly questions:
1. How can i fix this? ( i don't want to rebuild the whole page)
2. How do i move a page from one zone to another?


Last edit: by Webrunner


Vrouwen Power! | Fibsboard backgammon forum

There is a difference between knowing the path and walking the path.
Back to the top
 
Posted
Rating:
#21129
Avatar

I'm very sorry to hear of this problem, but I unfortunately have to tell you that your data is gone. It's too late for this advice to be of direct help, but in the future I would use a combination of:
  • the back button
  • Microsoft Word / Open Office/ notepad
  • the clipboard
as a way to recover the data.

ocPortal does actually have code that would normally prevent this occuring. I tested it just now, and error messages are given if a non-existant zone is specified – with one exception, however. If a zone name is given and a directory exists on the server with that name, then ocPortal assumes it is a zone. I am guessing that this is what happened in your case in absence of other theories. I have now updated our code so as to perform a more robust zone presence check.

To answer your question about moving pages:
ocPortal actually stores Comcode Pages on disk, under the zone directory, which is the reason your page is so unfortunately irretrievable: there was nowhere to save to. You may move pages that were succesfully created using the Site Tree Editor, and the Comcode Page Editor also allows you to do so.

I realise the Comcode pages interface is not very user friendly - I would advise you use the 'Add New Page' wizard in the 'Structure' section of the Admin Zone. This allows you to add pages, but not edit them - due to this, we were able to make the interface much more streamlined.

Again, I am sorry to hear this has happened to you.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#21137
Avatar

Well-settled

No problem, it was my mistake.
Actually i managed to find the page again. the application had decided to put the page under the welcome zone. I couldn't open ut but i could delete it.

The wizard thing is how i started creating pages, but i am always working on pages and updating them so i really have to be able to edit them.
 :|


Vrouwen Power! | Fibsboard backgammon forum

There is a difference between knowing the path and walking the path.
Back to the top
 
Posted
Rating:
#21143
Avatar

I'm glad you found the page. If you need to delete it manually, you might delete the file from pages/comcode_custom/EN/pagename.txt. Also there's a database row in the comcode_pages table.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#21145
Avatar

Well-settled

I managed to delete the paghe through the interface that i got when it failed to load the site tree (what is wrong with me today?  O_o )


Vrouwen Power! | Fibsboard backgammon forum

There is a difference between knowing the path and walking the path.
Back to the top
 
There are too many online users to list.
Control functions:

Quick reply   Contract

Your name:
Your message: