Individual blog posts not using content/templates/blog_posts

Permalink Browser Info Environment
I'm using Pro Blog on a client's site and when an entry is viewed as it's separate instance it is not being shown with the "blog__post" template by default, the user is forced to edit the page and select the custom template "Blog Post" for it to show up properly.

I tried to copy view.php and view.css from packages/problog/blocks/content/templates/blog_post/ into blocks/content/ and it worked for the blog post page type but it also affected every other block on the site.

Is there something else that needs to be done?

Unfortunately I am not marked as a team member on the site so I couldn't use the support channel directly.

Type: Discussion
Status: New
spooker
View Replies:
RadiantWeb replied on at Permalink Reply
RadiantWeb
should only be one underscore - blog_post. not two.

I would really need to see a support ticket and environment info from your C5 instal to comment more on this.

ChadStrat
spooker replied on at Permalink Reply
spooker
Ended up digging into it, tracked the code through to setCustomTemplate() in tools/post_blog.php but even though I can verify that the line is executing it doesn't seem to take effect.

In the end I went with the other workaround and modified the page_type/pb_post.php adding the setCustomTemplate() call to the Area instead. This has fixed the problem. Will try and figure out more if I have more time.

Communication with my client was too hard to try and get him to connect the license with my account to give me access to the support ticket queue. And since the site isn't hooked to the community that pipe wasn't available either.

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.