hafa Posted September 18, 2014 Share Posted September 18, 2014 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! Link to comment Share on other sites More sharing options...
mr-fan Posted September 18, 2014 Share Posted September 18, 2014 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.... regards mr-fan 4 Link to comment Share on other sites More sharing options...
Pete Posted September 18, 2014 Share Posted September 18, 2014 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 2 Link to comment Share on other sites More sharing options...
diogo Posted September 18, 2014 Share Posted September 18, 2014 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/ 1 Link to comment Share on other sites More sharing options...
mr-fan Posted September 18, 2014 Share Posted September 18, 2014 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. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now