Page Type problems
Permalink 1 user found helpful
Concrete 5.6.0.2
I'm having some issues with the Page types. The theme I'm using came with a full width and right sidebar page types. I copied those page types php files and renamed them as full_french.php and right_sidebar_french.php since I'm working on a site that uses the internationalization add-on. Through the dashboard I created those two new page types, using those handles (full_french and right_sidebar_french).
The problem I'm having is that even though I assign certain pages to the new page types, this isn't reflected in the list that pops up in the Page type section of the dashboard (when using "Setup on Cild Pages"). Also, the list generated has the older names of pages that whose names I've changed, lists multiple copies of pages that don't exist.
I've included a screenshot to clarify.
I'm having some issues with the Page types. The theme I'm using came with a full width and right sidebar page types. I copied those page types php files and renamed them as full_french.php and right_sidebar_french.php since I'm working on a site that uses the internationalization add-on. Through the dashboard I created those two new page types, using those handles (full_french and right_sidebar_french).
The problem I'm having is that even though I assign certain pages to the new page types, this isn't reflected in the list that pops up in the Page type section of the dashboard (when using "Setup on Cild Pages"). Also, the list generated has the older names of pages that whose names I've changed, lists multiple copies of pages that don't exist.
I've included a screenshot to clarify.
I'm not trying to delete a page type. The problem is I'm trying to use all four page types I currently have (full, right_sidebar, full_french, right_sidebar_french) but certain pages refuse to reassign correctly.
For example, I have a page called "Schedule." It's using the "Full" page type. I made a copy of the page, changed the name of the copied page to "Horaire" and changed the page type for the copied page to "full_french." However, when I go into the page type editor for Full, two pages called "schedule" are listed.
When I originally copied the full.php file to create the full_french.php file, I didn't change any of the coding in the file. Was I supposed to change a div or column name?
For example, I have a page called "Schedule." It's using the "Full" page type. I made a copy of the page, changed the name of the copied page to "Horaire" and changed the page type for the copied page to "full_french." However, when I go into the page type editor for Full, two pages called "schedule" are listed.
When I originally copied the full.php file to create the full_french.php file, I didn't change any of the coding in the file. Was I supposed to change a div or column name?
After you copied the new php files, did you happen to go to "Dashboard->Themes" and 'Inspect' your theme and 'OK' the addition of your new page types? I have found I need to do that for the new php files to be recognized by C5.
This next idea won't cure this problem but it might help diagnose things. In all my php Page Type files, I add a comment in the HTML containing the name of the actual php file so when I view the source and see what php file is actually being used. So for example, at the top of the 'full_french.php' file, I would add the following comment: <!-- full_french.php -->
This next idea won't cure this problem but it might help diagnose things. In all my php Page Type files, I add a comment in the HTML containing the name of the actual php file so when I view the source and see what php file is actually being used. So for example, at the top of the 'full_french.php' file, I would add the following comment: <!-- full_french.php -->
I just checked the "Inspect" now, and everything is listed as fine (see screencap).
It looks like every page that I copied from an existing page and then changed page type is now listed in both the old and new page type list. For example, the page "Archives" (copied from the page "Archive using the "full" page type) is listed as using both "Full" and Full_french" page types.
Is this the way Concrete5 is supposed to work?
It looks like every page that I copied from an existing page and then changed page type is now listed in both the old and new page type list. For example, the page "Archives" (copied from the page "Archive using the "full" page type) is listed as using both "Full" and Full_french" page types.
Is this the way Concrete5 is supposed to work?
Although it appears that your new French page types had been properly added to C5, there were 3 other page type files that had never been officially integrated into C5 so I guess the 'Inspect' process was worth doing. The ones on your screencap with the checkmarks had never been added and so if you tried to use them, C5 would just use default.php instead. Did you click 'OK' after you 'inspected' the theme to integrate these 3 page types?
I have attached a screenshot of my page types as listed on 'Dashboard->Themes->Page Types'. You can see that I also have duplicates but the 'handle' is different. This is caused by activating different themes and each theme will inject it's own page types. When you activate a different theme, C5 doesn't remove the 'old' ones and you end up with duplicates. For example in my list, you will see that I have a 'Left Sidebar' page type with left-sidebar as the handle but I don't have a 'left-sidebar.php' file in my theme folder so that's when it get's dicey.
Can you attach a screenshot of your 'Dashboard->Themes->Page Types' page showing a duplicate?
I have attached a screenshot of my page types as listed on 'Dashboard->Themes->Page Types'. You can see that I also have duplicates but the 'handle' is different. This is caused by activating different themes and each theme will inject it's own page types. When you activate a different theme, C5 doesn't remove the 'old' ones and you end up with duplicates. For example in my list, you will see that I have a 'Left Sidebar' page type with left-sidebar as the handle but I don't have a 'left-sidebar.php' file in my theme folder so that's when it get's dicey.
Can you attach a screenshot of your 'Dashboard->Themes->Page Types' page showing a duplicate?
The 3 page types you mentioned (view, blog entry and home) that aren't integrated are not in use by any pages on my website. The only page types I am using are:
full
right_sidebar
full_french
right_sidebar_french
full_french and right_sidebar_french weere initially made by copying full and right_sidebar. I need all four, because if I have an english page with links and content in english on that page type, then I need to create a french equivalent.
This is an example of my workflow: I created an "about" page, which uses the Full page type. I then copied that page, changed its name and url to "A Propos" and changed the page type for the new page to full_french. This is where the problem starts. Even though the properties for the "A Propos" page say it's using the "full_french" page type, it's actually a child of both. (see screenshot)
full
right_sidebar
full_french
right_sidebar_french
full_french and right_sidebar_french weere initially made by copying full and right_sidebar. I need all four, because if I have an english page with links and content in english on that page type, then I need to create a french equivalent.
This is an example of my workflow: I created an "about" page, which uses the Full page type. I then copied that page, changed its name and url to "A Propos" and changed the page type for the new page to full_french. This is where the problem starts. Even though the properties for the "A Propos" page say it's using the "full_french" page type, it's actually a child of both. (see screenshot)
I know it sounds like we are speaking about 2 different things. I'm trying to get a handle on what the state of your theme actually is. The 'Setup On Child Pages' window is not the proper place to check this out. Can you go to 'Dashboard->Themes->Page Types' and post a screenshot of where you have duplicates and include the 'handle' column.
Here's the screencap from the Page Type section. the screencap of the "Inspect" section was posted previously.
All the handles are different, and each php filename matches their handles. I'm not sure what to do.
All the handles are different, and each php filename matches their handles. I'm not sure what to do.
I'm having trouble with my page types.
I've placed my custom page type full.php in my custom themes folder, but it's not showing when I inspect my theme in the dashboard?
I've cleared my cache and I just don't know how to get this page type to pull through.
I created the new page type as well in the dashboard but it just looks the same as the blog page.
I've placed my custom page type full.php in my custom themes folder, but it's not showing when I inspect my theme in the dashboard?
I've cleared my cache and I just don't know how to get this page type to pull through.
I created the new page type as well in the dashboard but it just looks the same as the blog page.
Then make sure to clear cache in the dashboard (do an intelligent search for "clear cache").