Jump to content

Recommended Posts

Posted

Hey guys, I was wondering if you could answer a few questions of mine...

- Does ProcessWire handle high traffic and large content sites?

- Is PW a suitable choice for building an image-based site? Something like those inspirational Tumblogs we often see, for example: twotimeselliott.tumblr.com and bybuildshop.tumblr.com. If it is, what would be the best practices for building something like that?

- Is it possible to create custom post types with PW? Like in tumblr we have text, link, quote, image, video...

- How do we create "categories" and "tags" with PW pages?

Any guidance will be appreciated!

Posted

i think PW handle much more than i (or maby you) can imagine...

there some good explanations on cat's...

the most important thing is to create a page/content structure that it expandable and fit exactly your needs before creating fields and templates

handle structure:

https://processwire.com/talk/topic/3579-tutorial-approaches-to-categorising-site-content/

example:

https://processwire.com/talk/topic/4116-best-way-to-structure-a-classifieds-site/#entry40330

some posts on categories:

simple:

https://processwire.com/talk/topic/1232-simple-categories-filtering/

nested:

https://processwire.com/talk/topic/2519-nested-categories/

a very usefull gist from soma on image tags:

https://gist.github.com/somatonic/5808897

imagetag module:

http://modules.processwire.com/modules/textformatter-image-tags/

and for blog examples check out the blog profile fram ryan

https://processwire.com/talk/topic/1394-blog-profile/

and the blog module from konkondo

https://processwire.com/talk/topic/7403-module-blog/

so i wish a good reading.... :rolleyes:

regards mr-fan

  • Like 4
Posted

The answer is yes to everything with a little learning.

Custom fields are what Processwire is all about so don't worry about your custom post types - that's covered :)

  • Like 2
Posted

Like it was said yes, it can. But if all you want is a simple tumblog have a look at Chyrp http://chyrp.net/

That said, PW can perfectly take care of the task and this is probably how I would approach it in PW:

— Create the blog template and page to hold the articles in the tree

— Create a template for each type of post (image, text, video, quote, whatever...) with the custom fields needed for each

— Limit those templates to have the blog page as parent (this will allow you to have the quick creation of these on the quick button)

— On each of these template files create the PHP for the individual post page ex:

<?php //quote post
  if(!count($options['pageStack'])) include('head.inc'); //render the head only if this page is not being rendered inside another page
?>
<blockquote>
  <?=$page->quote?>
  <footer>
    — <cite><a href="<?=$page->cite_source?>/"><?=$page->cite?></a></cite>
  </footer>
</blockquote>

<?php
  if(!count($options['pageStack'])) include('head.inc'); // same as with head

— and then render them on the blog template:

<?php
  include('head.inc');

  foreach($page->children as $post) {
    echo $post->render(); //render all posts
  }

  include('head.inc');

Note: this is minimal code just for example, written directly in the browser and completely untested.

See how to paginate results here https://processwire.com/api/modules/markup-pager-nav/

And read about categorisation here https://processwire.com/talk/topic/3579-tutorial-approaches-to-categorising-site-content/

  • Like 1
Posted

A other approach could be the new PageTableExtended module...to get different contenttypes on one post.

https://processwire.com/talk/topic/7459-module-pagetableextended/

here it would be a similar page setting like diogo explained - but the editing of the childpages (image, text, ...) would be easy on the blogpostpage.

But this addon needs a basic understanding of templates, fields, and the api for rendering proper output in your templates.

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
×
×
  • Create New...