Forum

Thread tagged as: Problem

Reorder Pages not showing correctly

Hi there,

For some strange reason when I re-order some of my pages within the Perch admin system. They don't show up on the website.

For example I have a main page called "Fans" and under this there should be four pages

  • Have your say
  • Read all about it
  • Junior Supporters
  • Match Days

See screenshot of what this looks like https://www.awesomescreenshot.com/image/1238293/ff6fe70eb6680c61a6db51f8f67e2379

But when I click save after re-ordering the pages only two of them are showing up STRANGE!

See here - https://www.awesomescreenshot.com/image/1238297/d1f7c076498f69855b5eee06a2e402d8

Link here - https://hull.teamfc.uk/

My Page code is the following located within the global header

<?php
perch_pages_navigation(array(
    'template'  => array('top-level.html', 'level-2.html', 'level-3.html'),
    'siblings'  => true,
));
?>

My templates are the following

top-level.html

<perch:before>
<nav class="nav clear">
        <ul id="primary-nav" class="primary-nav is-fixed">
</perch:before>
    <li <perch:if exists="subitems">class="has-children"</perch:if>>
        <a <perch:if exists="current_page"> class="selected"</perch:if> <perch:if exists="ancestor_page"> class="selected"</perch:if> <perch:if exists="subitems">href="#" class="drop-link"<perch:else/>href="<perch:pages id="pagePath" />"</perch:if> class="g500">
            <perch:pages id="pageNavText" />
        </a>
        <perch:pages id="subitems" encode="false" />
    </li>
<perch:after>
    </ul>
</nav>
</perch:after>

level-2.html

<perch:before>
    <ul class="secondary-nav is-hidden">
        <li class="go-back">
            <a href="#0">
                Menu
            </a>
        </li>
    <div class="container nav__container">

        <div class="group">
</perch:before>
<li <perch:if exists="subitems">class="has-children col-l-3"</perch:if> class="col-l-3">
        <a class="has-children__heading" href="<perch:pages id="pagePath" />">
            <perch:pages id="pageNavText" />
        </a>
        <perch:pages id="subitems" encode="false" />
</li>
<perch:after>
    </div>
</div>
    <div class="nav__footer">

        <div class="col-m-4 nm--left top--med">
            <div class="left">
                <div class="left right-space"><a href="https://www.facebook.com/hullfcofficial" target="_blank" class="social beta"><i class="icon-facebook"></i></a></div>
                <div class="left right-space"><a href="https://twitter.com/hullfcofficial" target="_blank" class="social beta"><i class="icon-twitter"></i></a></div>
                <div class="left right-space"><a href="https://www.instagram.com/hullfcofficial/" target="_blank" class="social beta"><i class="icon-instagram"></i></a></div>
            </div>
        </div>

        <div class="col-m-4">
            <img src="/assets/img/logo-white.png" class="auto">
        </div>

        <div class="col-m-4 nav__footer-links">
            <div class="nav__footer-link"><a href="/team/first-team/fixtures" class="social o700 caps"><i class="icon-rugby gamma"></i>Match Centre</a></div>
            <div class="nav__footer-link"><a href="https://www.hullfcshop.com/" target="_blank" class="social o700 caps"><i class="icon-shirt gamma"></i>Shop</a></div>
            <div class="nav__footer-link"><a href="https://hullfc.gbox.com/" target="_blank" class="social o700 caps"><i class="icon-play gamma"></i>F.C. Live</a></div>
        </div>
    </div>


</div>
</ul>
</perch:after>

level-3.html

<perch:before>
<ul class="is-hidden">
    <li class="go-back">
        <a href="#0" class="has-children__link">Team</a>
    </li>
</perch:before>
<li>
        <a class="has-children__link" href="<perch:pages id="pagePath" />">
            <perch:pages id="pageNavText" />
        </a>
        <perch:pages id="subitems" encode="false" />
</li>
<perch:after>
</ul>
</perch:after>

My Diagnostic Report is located below

Perch Runway: 2.8.29
Production mode: Production (100)
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_blog (5.0), perch_gallery (2.8.6)
DB driver: PDO
DB tables: perch2_backup_plans (0), perch2_backup_resources (0), perch2_backup_runs (0), perch2_blog_authors (4), perch2_blog_comments (0), perch2_blog_index (149460), perch2_blog_posts (7106), perch2_blog_posts_to_tags (0), perch2_blog_sections (1), perch2_blog_tags (0), perch2_blogs (1), perch2_categories (6), perch2_category_counts (6), perch2_category_sets (1), perch2_collection_index (8), perch2_collection_items (2), perch2_collection_revisions (1), perch2_collections (0), perch2_content_index (20863), perch2_content_items (1112), perch2_content_regions (205), perch2_gallery_albums (2), perch2_gallery_image_versions (36), perch2_gallery_images (6), perch2_navigation (1), perch2_navigation_pages (3), perch2_page_routes (13), perch2_page_templates (26), perch2_pages (118), perch2_resource_log (6500), perch2_resource_tags (5), perch2_resources (1098), perch2_resources_to_tags (15), perch2_settings (29), perch2_user_passwords (2), perch2_user_privileges (42), perch2_user_role_privileges (36), perch2_user_roles (2), perch2_users (6)
Users: 6
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_blog',
        'ftc_fixtures',
        'perch_gallery'
    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: markitup
H1: ba914e6db732399ea242ccf9d8c238ea
L1: 63690f10ebb03c3f315c7b794a20d943
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #000000
content_singlePageEdit: 1
helpURL:
siteURL:
hideBranding: 1
content_collapseList: 1
lang: en-gb
update_2.8.26: done
perch_blog_site_name:
headerScheme: dark
update_runway_2.8.26: done
latest_version: 2.8.15
on_sale_version: 2.8.29
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
perch_blog_update: 5.0.1
perch_blog_post_url: /news/{postSlug}
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_blog_comment_notify: 0
logoPath: /admin/resources/badge-1.png
update_runway_2.8.27: done
update_runway_2.8.28: done
perch_gallery_update: 2.8.5
update_runway_2.8.29: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_SITEPATH: /home/teamfcuk/public_html/hull
PERCH_SCHEDULE_SECRET: 2dPS8iA2kj7YNZwK
PERCH_DB_USERNAME: ###########
PERCH_DB_SERVER: ###########
PERCH_DB_DATABASE: ###########
PERCH_DB_PREFIX: perch2_
PERCH_EMAIL_FROM: ###########
PERCH_EMAIL_FROM_NAME: ###########
PERCH_LOGINPATH: /admin
PERCH_PATH: /home/teamfcuk/public_html/hull/admin
PERCH_CORE: /home/teamfcuk/public_html/hull/admin/core
PERCH_RESFILEPATH: /home/teamfcuk/public_html/hull/admin/resources
PERCH_RESPATH: /admin/resources
PERCH_HTML5: 1
PERCH_TZ: Europe/London
PERCH_CLEAN_RESOURCES:
PERCH_RUNWAY: 1
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/teamfcuk/public_html/hull/admin/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS

PHP: 5.6.21
Zend: 2.6.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $
MySQL server: 5.5.49-cll
Free disk space: 25.11 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, calendar, ctype, curl, dom, fileinfo, filter, ftp, gd, hash, iconv, SPL, json, mbstring, mcrypt, session, mysql, mysqli, standard, Phar, posix, Reflection, mysqlnd, SimpleXML, soap, sockets, imap, tokenizer, xml, xmlreader, xmlrpc, xmlwriter, zip, cgi-fcgi, homeloader, PDO, pdo_sqlite, pdo_mysql, ionCube Loader, Zend Guard Loader
GD: Yes
ImageMagick: No
PHP max upload size: 10M
PHP max form post size: 10M
PHP memory limit: 1028M
Total max uploadable file size: 10M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
CONTEXT_DOCUMENT_ROOT: /home/teamfcuk/public_html/hull
DOCUMENT_ROOT: /home/teamfcuk/public_html/hull
GATEWAY_INTERFACE: CGI/1.1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8,fr;q=0.6
HTTP_CONNECTION: keep-alive
HTTP_COOKIE: _ga=GA1.2.607290596.1461754978; cmsa=1; __unam=c3834f5-15452a7c553-2f2b9d79-44; PHPSESSID=0dd78ae89b9d4131be4d847056fa78a2
HTTP_HOST: hull.teamfc.uk
HTTP_REFERER: https://hull.teamfc.uk/admin/core/settings/diagnostics/
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.36 Safari/537.36
PATH: /bin:/usr/bin
QUERY_STRING: extended
REDIRECT_STATUS: 200
REMOTE_ADDR: 86.2.239.205
REMOTE_PORT: 52272
REQUEST_METHOD: GET
REQUEST_SCHEME: http
REQUEST_URI: /admin/core/settings/diagnostics/?extended
SCRIPT_FILENAME: /home/teamfcuk/public_html/hull/admin/core/settings/diagnostics/index.php
SCRIPT_NAME: /admin/core/settings/diagnostics/index.php
SERVER_ADDR: 87.117.252.235
SERVER_ADMIN: webmaster@hull.teamfc.uk
SERVER_NAME: hull.teamfc.uk
SERVER_PORT: 80
SERVER_PROTOCOL: HTTP/1.1
SERVER_SOFTWARE: Apache
UNIQUE_ID: VzMEV1d1-OsABBo1BrsAAAAH
PHP_SELF: /admin/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1462961239.21
REQUEST_TIME: 1462961239
argc: 1

I just don't understand why this wouldn't be working, any help would be greatly appreciated

Thanks

Fishtank Creative

Fishtank Creative 2 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Is this your main page structure or a nav group?

main page structure.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Are any pages access restricted?

No everything is completely open and there are no hidden pages.

I can give you access to the admin if that would help?

I've got to the bottom of this for some reason it was to do with this piece of JS

var divs = $(".nav__container > .group > .col-l-3");
    for(var i = 0; i < divs.length; i+=4) {
      divs.slice(i, i+4).wrapAll("<div class='row clear'></div>");
    }

All this is doing is making each .col-1-3 within the navigation and equal height.

I've no idea why this would affect the navigation in perch