Posts by ellimondo

    Do you have access to the database? If so, is the perch3_twitter_tweets table installed and filled with entries? Perhaps emptying that table and getting the tweets again would help clear the blockage.


    The other thing you can try is to echo the function out to the actual page. Just to rule out the template causing problems.


    Other than that I am at a loss and will leave it for the experts!

    On the far right of that line is a light blue tab with a number or `null` in it. That's the number of records retrieved by Perch with your page's function call. If it is `null` then there's an issue with your twitter app as it isn't pulling anything from the database. I'd suggest going through the installation again and check all the steps carefully. Also check the twitter tables have set up correctly.


    The other issue when you click "get Tweets" in the admin page is probably a limit on API calls your app is making. Twitter is STRICT!

    Hi. What's the output of the debug message when you load the page with the twitter function on it? The line that will help you should look something like:


    Code
    1. `SELECT * FROM perch3_twitter_tweets WHERE tweetType='mine' AND tweetAccount='@ACCOUNT' AND tweetIsReply=0 ORDER BY tweetDate DESC LIMIT 3`


    Is it returning any records?

    Hi Jason


    Unfortunately we can't see localhost links as that's just shorthand for your own computer.


    First off, you need to develop Perch sites at the root of your web server. It looks like you're possibly developing the site inside a couple of subfolders which will complicate matters somewhat. You can either create a virtual host to a folder e.g. dev.testing.local or just develop at the root localhost:8888/. If you are using something like MAMP Pro then it will generate the virtual host for you.

    If the slug only shows up for one item then could this mean the slug tag been added to the template after creating the regions? You may need to resave the regions to generate the slugs for the rest of the items.


    Clive's manual url tip is a good one. Also to make it easier to debug, output the slug to the page (not in an a tag) in the listing template so you can see it.

    Hi


    I am having a weird data sync issue and wondered if anyone can help.


    I am using the backup / restore facility in Runway and syncing to Dropbox. I use this for lots of sites and have never experienced any issues. However I am currently trying to sync a staging site down to the local dev site and am experiencing the following behaviour:


    If I restore using Perch's restore interface I get partial data. If I take the same backup file and restore through something like phpmyadmin, I get the full set of data.


    By partial data I mean I am missing certain bits of content, blog posts and assets/buckets. It's a bit worrying. Luckily I noticed the missing data before I worked on any updates.


    I've dropped the local tables, deleted and recreated them, etc, but the same thing happens when using the Perch interface.


    I am using MAMP PRO to run my local dev.


    How would I go about trying to troubleshoot or resolve this issue? Has anybody experienced similar behaviour?


    Hi Mark


    I switched to vscode from atom (soooo slow) and am trialling it at the moment. I tried this extension out yesterday but I can't really see what it's doing other than not underlining perch tags. Is that all it does at the moment?


    I hope all is well,


    Jon

    I think the problem is that draft doesn't mean unpublished in Perch. It's more a versioning system. Setting an entry to draft removes the current version from the live page (unless previewing is enabled). The previous version of the entry (if there is one) will still be live. That's why many people use their own publish status field to show/hide things (pages, collections etc) as hus_hmd suggested.


    I agree with you that it's potentially confusing to the end user but I don't think that's going to change. IMHO users are confused by EVERYTHING!

    Hi


    Yes it's possible. When I did it I created a list page template with links (using the order id in the url) to a detail page template. This then pulls in the order details using the function <?php perch_shop_order(perch_get('orderID')); ?>'.


    You could then get at the order's data using <perch:showall> to see what you can display in that template. My order details template uses the following to show the details of the order:


    Hi


    It looks like you're outputting the xml headers and closing tags twice. You will only need the perch:before in the first template. Drop the perch:after. Then close the url set in the page template.