Forum

Thread tagged as: Problem, Error, CKEditor
Drew McLellan

Drew McLellan 2638 points
Perch Support

It's already installed as part of Perch. When you upgraded Blog it should have run through your posts, 10 at a time, and remapped everything.

No remapping has happened by the looks of it and the categories section is blank (not drop down menu to select the category.

https://ibb.co/j2cM5v

And I've got this in the set options tab:

https://ibb.co/iod3kv

Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you see your categories in the Categories app under the Blog set?

I see this when I click on "by section"

https://ibb.co/hfwOLv

But if I go into categories on the sidebar I get:

Sets > Blog

But no listing of any of the categories i.e. "Blog" and "News" which are my two categories. Or is that what you call a section?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Sections and categories are distinct things. Which did you use when building the site?

Section docs: https://docs.grabaperch.com/functions/blog/perch-blog-sections/

I can't remember as it was a couple of years ago but i'd say sections because "Blog" and "News" are available sections in the Listing Posts by section tab.

When I click on those I see the posts in that section.

But when I go to create a new post I can no longer choose which section it appears in: blog or news.

When I click to list all posts the post is there but it's not under either the blog or news section.

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Presumably by looking at your code you can see which function calls you are using to filter the posts by one or the other. We can't help unless we know what we are helping with.

I'm calling a blog section with this code:

<?php perch_blog_section('blog'); ?> <?php perch_blog_custom(array( 'section' => 'blog', 'template' => 'post_in_list.html', 'sort' => 'postDateTime', 'sort-order' => 'DESC',

));?>

Then I'm calling a news section with this code:

<?php perch_blog_section('news'); ?> <?php perch_blog_custom(array( 'section' => 'news', 'template' => 'post_in_list.html', 'sort' => 'postDateTime', 'sort-order' => 'DESC',));?>

post_in_list.html is:

<perch:before>

<div class="blogentry">

<ul class="hfeed listing"></perch:before> <li class="hentry"> <h2><a href="<perch:blog id="postURL" />" rel="bookmark" class="blogtitlelink"><perch:blog id="postTitle" /></a></h2> <perch:if exists="image"><img src="<perch:blog id="image" type="image" width="50" height="50" crop="true" />" alt="<perch:blog id="postTitle" />" /></perch:if> <p class="entry-published date"><perch:blog id="postDateTime" format="%d %B %Y" /></p> <div class="description entry-summary"> <perch:blog id="excerpt" type="textarea" textile="true" /> </div> </li> <perch:after> </ul>

</div>
<perch:if exists="paging">
    <div class="paging">
        Page <perch:blog id="current_page" /> of <perch:blog id="number_of_pages" />
        <perch:blog id="page_links" encode="false" />
        <perch:if exists="not_first_page">
            <a href="<perch:blog id="prev_url" encode="false" />">Previous</a>
        </perch:if>
        <perch:if exists="not_last_page">
            <a href="<perch:blog id="next_url" encode="false" />">Next</a>
        </perch:if>
    </div>
</perch:if>

</perch:after>

Hi. Any update on this?

Drew McLellan

Drew McLellan 2638 points
Perch Support

What problem are you currently trying to solve?

I cannot assign a section to a new post I'm writing after updating to Perch 3 wherease before the upgrade I (or rather my client) could.

Drew McLellan

Drew McLellan 2638 points
Perch Support

After saving your post, go to the Meta and Social tab and select the Section at the bottom.

This is what I see at the bottom before and after saving

https://ibb.co/czS0Ha

Drew McLellan

Drew McLellan 2638 points
Perch Support

Is that on the Meta and Social tab? It doesn't look like it is.

Ah thanks! It was because there was a meta section at bottom of the post page.

Has this changed since v2?

Drew McLellan

Drew McLellan 2638 points
Perch Support

It changed with v5 of Blog