Posts by dosa

    Using Perch Runway 3.1.6 with an updated site that I took from 2.8. None of my textarea items are showing the CKeditor though, as if it's missing the editor. I thought it was installed in the core?


    The code calls out the editor:

    Code
    1. <perch:blog id="postDescHTML" type="textarea" label="Post" editor="ckeditor" html="true" size="xxl autowidth" required="true" />

    Diagnostics says it's installed (see attached) and but the CKeditor is missing (see attached).


    Thoughts?

    Hi. Having an odd license issue. I'm moving a site to a new server. I've put up the old files, database, updated the config file with the details, yet I get a "Sorry, your license key isn't valid for this domain."


    There are TWO licenses my client has. One I bought when the project started, the other he bought so he could manage it. So there are 2 licenses with the domain name. Could that be the issue? I went into the old license and changed the staging domain name I setup. But it made no difference.


    Both license keys don't work. Any solutions to this?

    Ah great to know. Thank you thank you thank you for all your help hus_hmd


    For anyone else looking for the final code for all this, here's how to create your blog search:


    Your master page calls the search content, Blog specific, sorted, using a template:

    PHP
    1. <?php
    2. perch_content_search(perch_get('q'), [
    3. 'apps' => ['PerchBlog'],
    4. 'sort' => 'postDateTime',
    5. 'sort-order' => 'ASC',
    6. 'count' => '9',
    7. 'template'=>'search-result.html',
    8. ]);
    9. ?>

    That template is search-result.html:


    Now the key to connecting everything is in the Layout referenced, blog_search_result.php:

    Which references this last template, post_search_result.html:

    Note the "urlify" links which reuse existing name of the author to make the slug link.

    Debug continued....

    Here you go hus_hmd - the debug message is below in two comments since it's beyond the 10,000 character limit per post.


    Code

    Using this for the search results:

    PHP
    1. <?php
    2. perch_content_search(perch_get('q'), [
    3. 'apps' => ['PerchBlog'],
    4. 'sort' => 'postDateTime',
    5. 'sort-order' => 'ASC',
    6. 'count' => '9',
    7. 'template'=>'search-result.html',
    8. ]);
    9. ?>

    I'm getting 12 results for a search of "test". Yet the page shows the first 9 results, then the second page is blank. In fact ALL searches are showing the first 9 results then all the remaining pages, even if there are 100 results, are all blank. What is missing from the code to where it's following the count, but only on one page?

    thanks ellimondo - I think you have it right! I have more results now, but they aren't laying out properly. Also when I paginate, the next pages are blank. So I imagine I have the perch:before and perch:after tags in the wrong spot?


    hi hus_hmd - here's the debug message after perform a search of "test" and getting 1 results as shown above:

    My blog search results are not really working. Here's what I have setup:


    1. The search page:

    PHP
    1. <?php
    2. perch_content_search(perch_get('q'), [
    3. 'apps' => ['PerchBlog'],
    4. 'sort' => 'postDateTime',
    5. 'count' => '9',
    6. 'template'=>'search-result.html',
    7. ]);
    8. ?>

    2. The "search-result.html" template referenced above is:

    3. The "blog_search_result.php" is:


    With all that, the results looks as the should style-wise, but even when the results show a total number of 100 for example, I'm only seeing one single result. The pagination is working. But it's as if I added a 'count' filter, but I didn't. What's missing here?


    Does anyone know why a particular author wouldn't show on a filtered page like this:

    PHP
    1. <?php perch_blog_custom([
    2. 'sort' => 'postDateTime',
    3. 'count' => '9',
    4. 'template' => 'blog/post_in_column.html',
    5. 'sort-order' => 'DESC',
    6. 'filter' => 'authorFamilyName',
    7. 'match'=>'eq',
    8. 'value'=>'Smith',
    9. 'paginate' => true,
    10. ]); ?>


    I have many pages just like this one, with different author names instead of "Smith" and they all work fine, showing the articles from that author. I double checked the author details, making sure the "Smith" name is correct, no spaces or anything. I also opened a post from the author, changed it to another author, then switch it back to him. Still nothing.


    What other issues would stop an author's filtered page from showing posts?

    Success! That was the missing piece. Previous I had no results with....


    PHP
    1. <?php perch_category('blog/' . $categorySlug, ['template'=> 'category_title.html']); ?>

    But when adding....


    Code
    1. $categorySlug = perch_get('categorySlug');

    It finally makes the connection....

    PHP
    1. <?php $categorySlug = perch_get('categorySlug');perch_category('blog/' . $categorySlug, ['template'=> 'category_title.html']); ?>

    Thank you both JordinB and hus_hmd for all the help! I hope this last post helps someone make the same edit.