Instructions in documentation VS Tumble_two as example = confusion

Permalink Browser Info Environment
I'm confused, but inexperienced, so not surprising. Please bear with me. I can usually follow directions, but...

I tried looking at your Tumble_two theme as a reference (since you said it was created specifically for that purpose) to setup another theme for Pro Blog. That didn't help, so to the docs I went. In the docs it says
"copy the provided pb_post page type into your root->page_types folder(create one if you don't have one). "

So in my theme create a page_types folder? I've never seen that, not even in Tumble_two. It and other themes already set up for Pro Blog have it in the root with all the other page type files. Further confusion after I looked at the pb_post file provided with the Pro Blog add_on and compared it the the same file in in Tumble_two. Well they're almost the same, but the one from the PB add-on has some extra code at the top...

<?php
$html = Loader::helper('html');
$this->addHeaderItem($html->css('page_types/pb_post.css', 'problog'));
Loader::model('blogify','problog');
$blog_settings = blogify::getBlogSettings();
extract($blog_settings);
?>

where Tumble_two only has

<?php
defined('C5_EXECUTE') or die(_("Access Denied."));
$this->inc('elements/header.php');
?>

So I haven't gotten any further. Any guidance is appreciated.

Type: Discussion
Status: New
OKDnet
View Replies:
RadiantWeb replied on at Permalink Reply
RadiantWeb
There is no documentation for creating PB based themes other than taking that example theme and structuring things like that, and then learning how to activate those in the theme install controller.

so the process for you would be:

- create your C5 theme exactly like you normally would.
- copy the pb_post page_type from ProBlog into your theme folder, and add in the include header/footer code just like all your other theme views.
- create a /blocks folder in your theme, and add custom templates to match your theme for the content, problog_list, and guestbook blocks.
- study the tumble theme installer to learn how to activate those views & theme on install.
- copy the tumble's /elements folder for the pre-installer form.

all done.

ChadStrat
OKDnet replied on at Permalink Reply
OKDnet
Could you elaborate on
"- create a /blocks folder in your theme, and add custom templates to match your theme for the content, problog_list, and guestbook blocks."
To create these templates to "match my theme" should I start with a view.php file from my theme and copy it there? Or should I start with the ones in the tumble theme?

As far as "study the tumble theme installer to learn how to activate those views & theme on install", can you elaborate? Do you mean study the code, or just install it and observe the behavior during installation (which I did and get what I want, now it's just how to duplicate that in another theme)?
RadiantWeb replied on at Permalink Reply
RadiantWeb
follow the above mentioned directions.

If this is not doable for you, then this task may be a bit beyond what your ability.

If the theme is just for you and not distribution, you can more simply just step #2 in my directions above in your theme and call it good.

I was trying to explain how to make an installer and a deliverable theme styled for ProBlog such as TumbleTwo is. But it's sounding like that's just not within your reach.

Sorry for the confusion.

ChadStrat

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.