Search the Community

Showing results for tags 'blog'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Found 42 results

  1. Hello All ... I just added a new Site Profile ... It is important that you use the latest version that supports the new Fields => Fieldset in Tab , Fieldset ( Page ) for this time it is version 3.0.83 DEV A simple profile for quick start new Page ... There are several pages like About Us, Blog, Portfolio, Contact Page ... The profile is not based on any framework, I just used some css, flexbox, grid, font awesome, and added a simple FlexBox Grid called GRIDLEX ... CAN DOWNLOAD FROM THIS LINK: Some Screenshots: OPTIONS PAGE: CONTACT PAGE: BLOG PAGE: ABOUT PAGE: PORTFOLIO PAGE: In addition, I added 2 great modules: Tracy Debugger: Markup Sitemap:
  2. I'm in the process of finalising a pw 3.0.62 and uikit3 based site which using the Reglar-Master profile and I've noticed pagination is missing despite the Allow Page Numbers? setting being enabled under the blog template URLs tab. The default blog.php template is as below: <div id='content'> <?php echo ukHeading1(page()->title, 'divider'); $posts = page()->children('limit=10'); echo ukBlogPosts($posts); ?> </div> Reducing the limit as follows does not result in any pagination being displayed despite there being 10 news posts. ... $posts = page()->children('limit=6'); ... If I have understood correctly, it should not be necessary to add the MarkupPagerNav module to this profile as the capability should already be already built-in. If that is the case, then I can only think that some additional code is required. Any help would be greatly appreciated.
  3. I've a page "blog" which have child pages (blog posts). Right now I've 11 pages (blog posts) and I'm fetching all the posts in my "blog" pages which displaying fine, Issue is only 10 results are showing this is how I'm fetching $entries = $pages->find("template=blog-entry"); foreach($entries as $entry){ <a href='{$entry->url}'>$entry->title</a> }
  4. I'm new to PW... I'd like to have some blog posts displayed on our homepage based off the attached mockup. I want each post to use a slightly different layout. Is this possible?
  5. Well, I am trying to put the blog template like the home template but when I change the home template to the blog template the page explote. The version is processwire 3.055 and this is the website. I think that the error is because that when is the home, the blog template try to look for the blog post but it didn't find anything so it crashes. Here is the error that it gave me. And here is the code. The line 660 is the "$n = $page->comments->count();" function ukBlogPost(Page $page, $options = array()) { $defaults = array( 'summarize' => null, // Display blog post summary rather than full post? (null=auto-detect) 'metaIcon' => 'info', 'moreIcon' => 'arrow-right', 'moreText' => __('Read more'), 'categoryIcon' => 'hashtag', 'bylineText' => __('Posted by %1$s on %2$s'), ); $options = _ukMergeOptions($defaults, $options); $title = $page->title; $date = $page->date ? $page->date : $page->createdStr; $name = $page->createdUser->name; $body = $page->body; $metaIcon = ukIcon($options['metaIcon']); $moreIcon = ukIcon($options['moreIcon']); $categoryIcon = ukIcon($options['categoryIcon']); $n = $page->comments->count(); $numComments = $n ? "<a href='$page->url#comments'>" . ukIcon('comments') . " $n</a>" : ""; if($options['summarize'] === null) { // auto-detect: summarize if current page is not the same as the blog post $options['summarize'] = page()->id != $page->id; } $categories = $page->categories->each($categoryIcon . "<a class='uk-button uk-button-text' href='{url}'>{title}</a> " ); if($options['summarize']) { // link to post in title, and use just the first paragraph in teaser mode $title = "<a href='$page->url'>$title</a>"; $body = explode('</p>', $body); $body = reset($body) . ' '; $body .= "<a href='$page->url'>$options[moreText] $moreIcon</a></p>"; $class = 'blog-post-summary'; } else { $class = 'blog-post-full'; } if($options['summarize']) { $heading = "<h2 class='uk-margin-remove'>$title</h2>"; } else { $heading = "<h1 class='uk-article-title uk-margin-remove'>$title</h1>"; } $byline = sprintf($options['bylineText'], $name, $date); // return the blog post article markup return " <article class='uk-article blog-post $class'> $heading <p class='uk-margin-small'> <span class='uk-article-meta'> $metaIcon $byline </span> <span class='categories'> $categories </span> <span class='num-comments uk-margin-small-left uk-text-muted'> $numComments </span> </p> $body </article> <hr> "; } The question is how can I make to put the blog like the principal page. I don't have any idea how to do it.
  6. Hello, I am truly stuck. I have a website I built for a client that has become quite successful: It is an independent news agency. The problem is, I built everything from scratch in Processwire and things were purring along until the traffic went up. Now, I keep getting these huge spikes which last about 15 seconds and cause all users to receive a 503 Error. I have created a public repo for review: and can answer any questions that may lead to an answer. I am willing to hire a more experienced developer if the community is unable to help me mine out this issue. I have gone through the usage logs and know that all traffic is legitimate, I am not getting bombarded by a spam IP address or anything like that. Thank you for any and all assistance as this client is getting frustrated and I would rather not lose them!!! -Brian
  7. Hi, I'm in the process of moving over some Blogger blogs into ProcessWire. We want the URL format to match what was in place previously, so which would be fine if we just created the posts at the root of the site. The issue is the fact that we have more than 500 posts, which we've setup in a /blog/ folder so as not to clutter the root of the site with a list of posts. I saw this mentioned in another post, but @ryan was not "not confident that PW will be totally happy with it". RewriteRule ^$ /subfolder [L] Is there a ProcessWire core team sanctioned way to rewrite all /subfolder/ URLs to the root? Thanks!
  8. Hello guys, how can I view the image field? I need to view the Image associated to the post of the news. Thank you
  9. Today I want to tell you about my most recent Project: Maybe you've already seen it. I've got it listed in the ProcessWire Sites section for quite some time now. Also it has been mentioned by ProcessWire Weekly as the Site of the week: ProcessWire Sites Section: ProcessWire Weekly: What is this website all about? Why did I make it? I'm using ProcessWire at my day-to-day job and this project is my private playground for learning. Besides of that of course it's actually really what it claims to be. We seriously love cooking and I hope we'll find the time to get enough content together so that all the powerful search capabilities make sense after all. Technical depth @teppo has already provided a great technical overview to the project. In this thread I want to give you the opportunity for digging even deeper. Want to know how I've implemented a specific feature on the site? No problem, I'll try my best giving you detailed answers about it so that you can build something similar. What happened since the review on ProcessWire Weekly got published? I updated Vue from 1.x to 2.x The faceted search has become even more intelligent and easy to use. (Especially on mobile devices) I've added suggestions on the detail page that respect content types and tags to show actually really relevant content instead of just showing some random pages. The website is no longer using the built in template cache. I've switched completely to ProCache. (Since template cache was already carefully implemented the whole switch was a breeze and the site is now blazingly fast) All the assets are now being served by a CDN (thanks again to ProCache) Several minor CSS improvements Now that I've made these updates I think the website is actually a very good showcase for the power of ProcessWire. Just have a look at the source code of some of the pages and you can see what is actually being cached. (<body ... class='ProCache'>) This alone is a huge proof of the scalability of this system. Almost every single page is being cached with static files thanks URL segments caching. Yes I'm really excited about ProcessWire and it's optimization opportunities. Roadmap Most of the features I've initially planned for this project are already implemented. Anyways there are some more ideas I find quite interesting: Adding some more filters (time, difficulties) Negating specific search filters (show recipes without specific ingredients) Rating recipes iOS and Android apps that are reading the data from ProcessWire I'm not exactly sure which of these I'll implement or if other ideas will come to my mind that I like even more. Maybe you also got some input for me? When it comes to the apps I'm actually pretty excited about that idea. I've even started building a simple API: (Yes that's cached with ProCache as well ) Anyways I might wait until we get the Front-end JS $pages API mentioned at: Conclusion So I guess you get the idea. I'm really excited about ProcessWire and am willing to share the knowledge I've obtained while building this website. I'm looking forward to your questions, feedback and / or input. Have a great time and thanks for being part of the community!
  10. Hi, I'm total newbie for php and Processwire so be patient with me I'm trying to make a simple blog. BLOG - list of all posts (template: blog-list) -- Post no.1 (template: blog-entry) -- Post no.2 (template: blog-entry) -- Post no.3 (template: blog-entry) CATEGORIES (template: categories) -- Jobs (template: category) -- Technology (template: category) Template for post "blog-entry" has Page field set to Multiple pages and input as Checkboxes. So it is posible to select CATEGORIES children pages via checkbox when editing blog post. This is how I show selected categories within blog-entry template for current blog post: foreach ($page->categories as $category) { echo "<a href='{$category->url}'>{$category->title}</a>"; } How do I show selected categories within blog-list template? I need list of all posts with their Title, body and selected categories from Page field checkbox. I managed to show title and body but not categories. This is my code so far: <?php echo "<h1>" . $page->get('headline|title') . "</h1>"; $entries = $pages->find('template=blog-entry')->sort('-created'); foreach($entries as $entry) { echo "<a href='{$entry->url}'>"; echo $entry->categories->title; //not working echo "<h2>{$entry->title}</h2>"; echo $entry->body; echo "</a>"; }; ?> Also how do I show on Jobs page (template: category) list of all posts that have jobs category selected? Thanks.
  11. Making a minimalist site with Processwire is pure pleasure. Here is one for my photography. Enjoy
  12. Hi everyone, I am having difficulties using the blog module and was wondering whether someone could enlighten me. I have got a grid which has all my posts on (which I will refer to as post menu, for lack of a better description) and I would like to attach and image to each (like a thumbnail) with the post title as an overlay. Where the blue rectangle is on the attached image. I have attached and image to each post and I'm trying to call them. However I have since realised from receiving a blank result that I need to call them from another page (from the post to the post menu). You'll have to excuse my lack of knowledge for PHP and the PW calls, but I have found it really difficult to understand how this module is set up. I also apologise if I've posted this in the wrong category. Does anyone what I need to produce this? I have tried some of the below but doesn't bring back what I am after. Thanks, Matt <!-- Attempt 1 --> <?php echo " <script> $(document).ready(function(){ $(\".post-headline\").css(\"background-image\", \"url('"; echo $image; echo "')\"); }); </script>"; ?> <!-- Attempt 2 --> <style> .post-headline { background: url("<?php foreach($page->blog_images as $image){ echo "{$image->url}"; } ?>"); } </style> <!-- Attempt 3 --> <div style='background-image: url( <?php foreach($page->blog_images as $image){ echo "$image->url"; } ?> )'><div>
  13. Hello, I made this clone of the Ghost Blog System ( for demo of the Wire Render Pattern as well as a multi language site and menu system. As always MIT licence.
  14. One of my blogs seems to be accessible from multiple URLs and it's affecting my clients SEO. For example, using the following URL structures, I can access the same page. http://www.domain.not/blog/page2/ http://www.domain.not/blog/posts/page2/ The correct one is probably the second one as all posts are children of blog. My actual blog structure is as follows Blog - Posts -- Post A -- Post B -- Post C (etc) - Tags - Categories I have pagination enabled on a template called blog-posts which is applied to the Posts page. I'm not sure though why the double URL is occouring?
  15. Is it possible to create a like website in processwire? I have good html css skills, and some basic PHP. here are the features: - admin and ability to add accounts or moderators that will be able to add videos on the website of course add, edit, delete, video post - comment system ( maybe I can just use DISQUS ) - social links - facebook likes ( I think this is fairly easy to do ) - trending videos or most popular videos on the sidebar - recent/latest videos on the sidebar thats pretty much it.. and is processwire good with SEO? is there a plugin for that? I don't know much about SEO. and I am going to be developing this on my own. tried WP and felt its bloated clunky and has some features I won't be needing plus it is really hard to develop a theme there are some nice theme but I want total freedom on my design I am also worried about the security. Thank you see attach for the sample layout I'm thinking
  16. Hi Guys, I have recently joined bloglovin and have implemented the RSS enhanced module onto my blog, encolsures for images are working ok but I was wondering if I can implement these to be wrapped in an image tag to allow blog lovin to be able to carry imagery through. Any help would be greatly appreciated. Thanks, Mel
  17. Hey, Been using this starter theme for a little while now and thought I'd open it up on github - It has all my favourite modules installed, .less, some hany .js libraries and a set of blog templates for a simple news / blog setup. The theme is built on the simple theme from PW with additional setup. For more info see the file on github. See it here - Thanks everyone for your continued work and fun using PW.
  18. Hi guys. Just a query - nothing relevant on Google. I have about 400 blog posts which need tagging and categorising. I already have a list of about 5 known words I need tagged and applied to each post via pageselect field. IE cat, dog, fish Is it possible to somehow scan my 400 posts body field for these cat, dog, fish words, and then auto-tag them? Just a query at the moment.
  19. 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: Is it possible to install that on a site that already is running another profile/template?
  20. Hi, i just launched my litte blog It's a german blog about nerdy topics like IT, development, photography, games, movies and more. Responsive design, built on top of bootstrap. Different teaser types and widgets are configurable in the backend, for every category node. I use require.js for the internal js stuff and use gulp as a building tool for less compilation and css/js minification. unveil.js manages lazy loading of images, including retina versions. Though, it's not heavily optimized yet, but you have to start somewhere I would love to get some feedback, if you have any! Cheers
  21. smile of my week....i like to share: have fun mr-fan
  22. Hi there, I am new on using PW. So this is my first Post. In order of that, i want to say Hello to everybody. I used PW, to create a Blog with Tagging Function. I used the Page Field Type to create a new Page from a new Tag, defined in a Blog Article. My Problem is, when I create a New Tag for example "Title A" the Tag and a Page is correctly been created. But the URL of the new Tag Page is a fallback solution like 2014-12-16.... How it is possible to define a custom URL from the Title, as PW does, when I "manually" create a new Page. The easiest Way is the Favorite. I thought I can hook up the Page-Save-Event to Auto-Create a URL, but that would be not that easy. Also I have to fill 2 Fields because its a multilanguage Site. Can anybody help? Greetings from Germany
  23. Hi all, again this a more or less PHP-related question: I'm trying to reuse renderNav from the file as found in the blog profile. The function accepts parameters: function renderNav($headline, $items, $currentURL = '', $mobile = true) The comment sections says: @param array|PageArray $items May be an array of Page objects or array of ($url => $label) Taken as it is the function outputs the title of the page objects in $items which works fine BUT I would like to output it a different field value ($page->client instead of $page->title in my case). This is where I am stuck with my limited PHP skills. How can I make the function output another field value than $page->title? How would I "put together" an array that contains this field values so that I can assign it as key => value pairs to $items? Thanks
  24. Hi all, I'm trying to adapt the blog profile to my needs. In my template blog-list.php I have the following: $content = renderPosts("limit=10", true); which populates $content in main.php. renderPosts() I have taken as it is from in the blog profile: /** * Given a PageArray of blog entries generate and return the output. * * @param PageArray|Page $posts The entries to generate output for * @param bool $small Set to true if you want summarized versions (default = false) * @return string The generated output * */ function renderPosts($posts, $small = false) { if(!$posts instanceof PageArray) { if($posts instanceof Page) { // single page $post = $posts; $posts = new PageArray(); $posts->add($post); } else if(is_string($posts)) { // selector string $selector = $posts; $posts = wire('pages')->find("template=blog-post, sort=-date, $selector"); } else { throw new WireException('renderPosts requires a PageArray, Page or selector string'); } } foreach($posts as $page) { if(empty($page->summary)) { // summary is blank so we auto-generate a summary from the body $summary = strip_tags(substr($page->body, 0, 450)); $page->summary = substr($summary, 0, strrpos($summary, ' ')); } // set a couple new fields that our output will use $page->set('authorName', $page->createdUser->get('title|name')); $page->set('authorURL', wire('config')->urls->root . 'authors/' . $page->createdUser->name . '/'); } $t = new TemplateFile(wire('config')->paths->templates . '/markup/posts.php'); $t->set('posts', $posts); $t->set('small', $small); $out = $t->render(); // if there are more posts than the specified limit, then output pagination if($posts->getLimit() < $posts->getTotal()) $out .= $posts->renderPager(); return $out; } As you can see, the function makes use of /markup/posts.php. Within posts.php I have the following: // display a headline indicating quantities $start = $posts->getStart()+1; $end = $start + count($posts)-1; $total = $posts->getTotal(); if($total) echo "<h3>" . sprintf(__('Posts %1$d to %2$d of %3$d'), $start, $end, $total) . "</h3>"; This echoes the quantities headline as expected to $content but I would like to have it echoed to my $sidebar variable instead which currently doesn't work as it is part of renderPosts(). My question: What would be the best strategy/solution to assign $total to my $sidebar variable instead to $content? Thanks
  25. Hi guys I've started a new blog on Content Management and while it's not even remotely finished, thought I'd share here. I'm hoping to fill it with news, interviews and tutorials as I proceed. Content is pretty thin at the moment and there's plenty of design bits to fix. Why and who? The target audience isn't so much you hard-core, seasoned CMS professionals but more likely to be oriented towards people who are new to the CMS's. I also want to highlight the great features of my favourite CMS because I think CMS developers should be more aware of what other platforms are doing. Because it's built in PW, it helps me learn PW and the Blog Module. Anyway, I'll give it a go and hopefully I can find time to update it regularly-ish