Adding a new page - a suggestion (5.7.2.1) - EDITED & SOLVED
PermalinkStrangely, when "Page" of the menu "New Page" is clicked, it starts the edit mode of the new page, that doesn't have a name yet, nor a parent page, not even a page template is selected! The new page doesn't exist yet, because it's in the status of being created. Why would we want to edit the content of a ghost page? Actually it doesn't make any sense to edit the content of a page, whose page template is not previously defined. In order to do so, one has to click another button on the toolbar, named "Settings", which starts Composer. This is rather confusing.
Suggested solution: after clicking on a page type on the "Add Page" sidebar, the "Settings" bar at the left should open with Composer, to enable us to give the new page a name and select a page template first, instead of having an undefined page started in "Edit Mode".
EDITED: See reply below.
Btw, the button "Add Page" also lets the menu "Sitemap" show up on the right pane: what, may a client ask, has adding a new page to do with the sitemap, when the items are just pointing to existing pages without any other function, e.g. to predefine a parent page for the new page?
EDITED: Maybe the purpose is just giving a quick overview before building the page.
Could you explain me how I can create a new page?
I can only create a so called "ghost page"
You see the page type "Page". Click on button "Basic Details". Find the setting "Launch in Composer", select "Yes", click the blue button "Save" at the bottom. This procedure is not mandatory, it's just to make Composer open instead of Edit Mode when creating a new page.
Now let's add a page.
Click the button "Add Page" on the toolbar.
The right side pane opens.
The menu "New Page" lets you select a page type. The default page type is "Page", unless you have created other page types. Click on it.
Now the left side pane opens and Composer interface is loaded.
Here you can set the name of the page, the description, as well as select a page template and the parent page.
When done, click the green button "Edit Mode" to edit the content of the newly created page, if you want to do so.
When done with content editing, click "Exit Edit Mode" on the toolbar. The left side pane opens, and you have the choice to publish the new page, save the draft without publishing, or discard the draft.
Note, that the default state of a new page is draft, until you explicitly publish it.
The composer is open but how can I give the page a name?
Here is a screenshot:http://postimg.org/image/3mwj26kh5/...
Just to make sure I am at the right location.
Thanks for your reply!
<div class="<?php echo $c->getPageWrapperClass()?>">
Just added it and at last I can get to the composer !!!
I want to thank you both for helping me! :)
If you just save and exit, the page will remain as draft, you won't find it in the page tree. But maybe you know that anyway...
One just has to understand how 5.7 works. What i was claiming for, is already a build-in functionality. It's actually just a setting of Page Types ("Basic Details"), whether clicking on the Page Type should open the Composer or starting Edit Mode. If i want every new page of any page type open in Composer instead of Edit Mode, i'll have to edit the settings of all page types accordingly.
The only confusing thing may be, that the setting "Launch in Composer" of the default page type is set to "no" by default.
This is a great resource that helps to understand the concept of concrete5 5.7:
http://www.concrete5.org/documentation/developers/5.7/concepts/fron...