Adding a new page - a suggestion (5.7.2.1) - EDITED & SOLVED
Permalink
The button "Add Page" on the toolbar can easily be accessed and when clicked, it opens the right sidebar. Three menus are showing up: New Page, Sitemap, Page Drafts.
Strangely, 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.
Strangely, 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.
It is badly confusing, because I still don't know how to create a new page in 5.7 xD
Could you explain me how I can create a new page?
I can only create a so called "ghost page"
Could you explain me how I can create a new page?
I can only create a so called "ghost page"
First, to make the procedure a little clearer, go to dashboard (right button on the upper right corner), click on "Pages & Themes", the menu opens, click on "Page Types".
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.
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.
Hey okapi,
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!
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!
There's obviously something wrong with your installation or internet connection or something else. The composer interface should look like this (please see attachment).
Ok, I got mad with this for days !!! Basically if you don't see any composer it is probably because you have not put the wrapper code after the body tag.
<div class="<?php echo $c->getPageWrapperClass()?>">
Just added it and at last I can get to the composer !!!
<div class="<?php echo $c->getPageWrapperClass()?>">
Just added it and at last I can get to the composer !!!
Hello Ptityop and Okapi,
I want to thank you both for helping me! :)
I want to thank you both for helping me! :)
Now the issue I have is I go and complete all the composer attributes, but for some reason I choose the location of the page (Home) I save and it is fine, but everytime I try to publish I alway get the message that I did not choose the location , and when I go back to location it is has none !!! what could it be ???
What if you try to click the blue "Publish" button in Composer right after having filled in the form?
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...
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...
Ok,this is what I noticed. Basically, when I create a page with the default template, the composer shows many fields items including where a new page should be located. On the other templates the composer does not show anything and the "location" option is a Menu option just like SEO, Design etc .... Choosing the location of a page this way just does not work, it does if the item is within the composer. But I don't understand why the composer looks different from one page type to another ...
Ok I got it ... when you create a page template you have to compose the composer form , and choose the field that will appear there ..... that's weird, there is not even a list so that we know the right handles to put !! Not very user friendly
Actually I was wrong ... Basically to add a page I always have to choose the default "Page" and then from there choose template, location etc, and everything works fine. If I choose a custom page type underneath the "Page" the composer does not show ...
It depends on how the custom page type is created.
well I found a way to make it work so I guess I will stick with this for now .... there is already a lot to learn ! Many thanks for your time
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...