indentation on content page listing
I'm setting up my first site that uses Perch. It's mostly
working flawless.
I'm confused by the content list - when the filter is set to ALL,
some pages are indented, but I can't figure why. When using a
filter, the list is flush left.
When I view source for the admin page, I notice the table that lists the pages references a class for "level 1" and "level 2" - level 2 being more indented. But I can't sort out how/why/when that classification is added.
Thanks in advance for any help!
Support Staff 2 Posted by Drew McLellan on 20 Nov, 2009 07:20 AM
It's indicating the hierarchy of the pages in your site.
3 Posted by nate on 20 Nov, 2009 02:08 PM
Hi Drew, Ok so that would be quite logical - except those pages are all within the same directory. I can't sort out where the hierarchy logic is coming from. Is there a way to specify the hierarchy?
Support Staff 4 Posted by Drew McLellan on 20 Nov, 2009 02:10 PM
What are the paths of the three pages listed?
5 Posted by nate on 20 Nov, 2009 02:15 PM
/saving/savings-plans-w/overview.php /saving/savings-plans-w/retirement-account-balance-plan.php /saving/savings-plans-w/savings-plan.php
I should add, that I've added more pages since then, and the ordering (while still weird) is slightly different. It's put overview into the second level hierarchy, and put a new page as top level. Updated screenshot attached.
Support Staff 6 Posted by Drew McLellan on 20 Nov, 2009 02:18 PM
That is a bit odd. Which version are you running?
7 Posted by nate on 20 Nov, 2009 02:26 PM
1.2.1 I believe.
Support Staff 8 Posted by Drew McLellan on 20 Nov, 2009 02:32 PM
Will you be adding more pages in the hierarchy, or is it all at this level? You may find that it drops into place once you've got the hierarchy in place.
9 Posted by nate on 20 Nov, 2009 02:58 PM
Eventually I'll be adding pages in another dir. It's also worth noting that everything is functional, it's just doing this weird display in the admin. I'll proceed and report back if/when everything snaps into place. Thanks!
10 Posted by mike on 08 Mar, 2010 12:54 AM
I have the same issue. In my case all of the pages are on the top level, but the page first in alphabetical order is first and all others are indented. My client may be confused by this, What is the explanation? I s this something that can be changed?
Support Staff 11 Posted by Drew McLellan on 08 Mar, 2010 07:10 AM
I think it's just that we were expecting a home page. I'll take a look and see if this can be addressed in the next update.
12 Posted by clay on 16 Mar, 2010 11:18 PM
Sounds like you probably already have your head wrapped around this one, but in case it helps, here's an additional example of where it goes wrong. (Screenshot attached).
I have two different directories, "firm" and "team". The way this site worked out, in "firm" I do not have an index.php, i.e., there is no address http://website.com/firm. There is only website.com/firm/page1, /page2, etc. So for this directory, I have the same problem as the people above, where on the Manage Content screen, the first page in that directory is always displayed "level0", and the others are all labeled "level1", while I had expected they would all show on the same level.
In my second directory, "team", I do in fact have an index.php file, and so for this directory the Perch formatting looks appropriate -- the index.php file is level0, and any others are level1.
Hope this is of further help.
13 Posted by mike on 16 Mar, 2010 11:46 PM
When I added a homepage all was well.
14 Posted by clay on 17 Mar, 2010 02:58 AM
Yep, I think what Mike described makes sense. At least for subdirectories, it looks like the Manage Content view will always assign the first listed page a "level0" in the CSS (no padding), and every page thereafter "level1" (40px of left padding). The Manage Content view also always shows an "index.php" file as the first in a given subdirectory, so with those two rules combined, everything makes sense.
It just gets weird if there isn't an index.php file, in which case the first file listed (and thus assigned "level0") is just the first alphabetically -- so it appears like it's a parent file of some sort, when in fact it's not.
Of course, even assuming that's a correct diagnosis of the problem, doesn't seem like there's an obvious solution. When you have a directory with no index.php, should you just assign all the files level1? But that might make them look like children of a page from a separate directory. And assigning them all level0 would make them look like they were in the root of the site, or all subdirectory roots.
Thanks in advance Drew for any ideas/solutions that you may be able to come up with.
Support Staff 15 Posted by Drew McLellan on 17 Mar, 2010 07:11 AM
I think we need to go back to the drawing board with the tree view.