Jump to content

Add blog profile to existing site


Vayu Robins
 Share

Recommended Posts

Hi. I have site already running in Processwire. I would like to add a Blog to it. I tried to install the Blog module, but it is not possible to edit the markup. I really need to do that. Therefore, I would like to use the Blog profile by Ryan: http://modules.processwire.com/modules/blog-profile/

Is it possible to install that on a site that already is running another profile/template?

Link to comment
Share on other sites

I eventually built my own. Actually, Kongondo helped me somewhat.

All I needed was

  • posts
  • tags 
  • categories
  • comments

As I needed much finer control over the markup and templates, it was straightforward to build these natively with PW using regular pages and the Page select fields etc.

Is that an option for you?

  • Like 1
Link to comment
Share on other sites

Is it possible to install that on a site that already is running another profile/template?

It's possible but not automated. A siteprofile is just a bunch of template files and a sql file with all the templates/fields set up. Merging the files should not be difficult and for merging the database I'd suggest using a fresh installation of the blog profile and then export/import fields/templates over. The fastest way to recreate the base structure of the pages is most likely doing it by hand.

  • Like 1
Link to comment
Share on other sites

Well I could, but that would mean that I would have to change the source code of the module. When updates arrive, that code would be overwritten. As far as I understand, the blog module uses a function called renderPosts, which prints markup, that cannot be modified, unless I have overseen something? If there is another way to change the markup, then please do inform me, I will be very appreciative. :-)

Link to comment
Share on other sites

The markup module that comes along with kongondo's blog module is just there as a helper - there is no requirement to use it. Just don't use it and write your own markup - either steal from the markup module, or from Ryan's blog profile as a starting point.

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...