kongondo

Module: Blog

Recommended Posts

1 hour ago, heliumrotator said:

Only the configuration looks very ugly. I don't know if this your new style or an accident. I saw that better in the official video:

The very ugly configuration is the new style (since a couple of versions back). What you saw in the (old) 'official' video is the old style.

Welcome to the forums ūüôā.

Share this post


Link to post
Share on other sites

Thank you for fast you reply.

My first thought was that I did something wrong. For hours I've been looking for the fault. Until I realized that there is no fault. I would never have thought that it should look like this.

Is there a way to get the old style back?

   

Share this post


Link to post
Share on other sites

Hi all,
I am using the blog module, and I love it. Thank you @kongondo.
I have created some posts with featured images and it seems to work fine.
The featured image is displayed above the post-headline.
But if I chose a category and take a view at the blog-category template, the featured image is not displayed at the posts which are belongs to the category.
Probably I forgot something to set?

Thanks in advance for the help.

 

Blog/MarkupBlogÔĽŅ: 2.4.2

ProcessWire 3.0.42. 

Share this post


Link to post
Share on other sites

Hello there,

I have added a Repeater field in the blog_post template. But when I go to Quick Post to add a post I don't see the Repeater field in the editor. Am I missing anything?

Share this post


Link to post
Share on other sites
2 hours ago, MaryMatlow said:

I have added a Repeater field in the blog_post template. But when I go to Quick Post to add a post I don't see the Repeater field in the editor. Am I missing anything?

Currently, such 'user-added' fields are not supported in Quick Post. They can only be accessed when you edit the blog page normally. Maybe it's something I need to think about.

Share this post


Link to post
Share on other sites
On 5/29/2018 at 1:42 PM, St3f4n said:

But if I chose a category and take a view at the blog-category template, the featured image is not displayed at the posts which are belongs to the category.
Probably I forgot something to set?

Sorry, @St3f4n. I forgot to answer your question! Use post_large_image option for featured image in a non-summarised (i.e. large/full) post and post_small_image option for featured image in a small/summarised post (e.g. in the default blog-category template file). Does this help?

Welcome to the forums ūüôā.

Share this post


Link to post
Share on other sites
17 hours ago, kongondo said:

Currently, such 'user-added' fields are not supported in Quick Post. They can only be accessed when you edit the blog page normally. Maybe it's something I need to think about.

Thanks @kongondo

Is there a way to add a new post other than "quick post'? I can see the Repeater field when I edit an existing post, but how do I access it when creating a new post?

Share this post


Link to post
Share on other sites
1 hour ago, MaryMatlow said:

Is there a way to add a new post other than "quick post'?

Yes, but only via the normal PW page tree.  Posts are just PW pages that use the template blog-post. I don't know what Blog style you used, but just add a child page to whoever the parent of pages using blog-post is. If using style 1 of Blog, then the parent should be the page Posts and it uses the template blog-posts. Adding a child to that parent page should automatically select the template blog-post for the children being added (i.e. individual posts).

Share this post


Link to post
Share on other sites
3 hours ago, kongondo said:

Yes, but only via the normal PW page tree.  Posts are just PW pages that use the template blog-post. I don't know what Blog style you used, but just add a child page to whoever the parent of pages using blog-post is. If using style 1 of Blog, then the parent should be the page Posts and it uses the template blog-posts. Adding a child to that parent page should automatically select the template blog-post for the children being added (i.e. individual posts).

Yes, of course. Thank you @kongondo ūüôā

Share this post


Link to post
Share on other sites
On 1/20/2015 at 9:44 AM, kongondo said:

Pretty much, but with a few additions as well. I have created a Gist of the renderPosts() function here:

1

Hi kongondo, I've been trying to make this plugin work for two straight days and I'm not having much luck. 

I'm a bit of a noob when it comes to PHP but I'm usually able to stumble my way through. Can you provide an updated Gist? I'm thinking maybe this one is just too old and won't work with the latest version of your plugin. It seems like copying the renderPosts function to my _func.php file (instead of editing MarkupBlog.module) is the best way to do it so that my changes aren't overwritten when the plugin is updated. I've read this forum over and over, I hate to bother you but the documentation doesn't seem to be complete yet.

[UPDATE: I finally got the featured images to work - didn't realize I had to add the "featured" tag to the image - otherwise, I get an error].

Any chance you can provide a working Gist for each of the other properties? IE: categories, authors, archives, comments, tags, next/prev post, etc. -  I would like to modify them to match my theme in the same way I did with renderPosts.

Share this post


Link to post
Share on other sites
On 5/24/2018 at 3:49 PM, heliumrotator said:

Is there a way to get the old style back?ÔĽŅÔĽŅ

Not unless you roll back to previous versions or modify the module itself to your liking (being aware that any future updates will wipe out your changes unless you rename your module class and files).

 

On 7/15/2018 at 1:33 AM, Ben Sayers said:

I've read this forum over and over, I hate to bother you but the documentation doesn't seem to be complete yet.

Welcome to the forums @Ben Sayers. Yes, apologies for the documentation. Despite my best intentions, I've never been able to find time to complete it.

On 7/15/2018 at 1:33 AM, Ben Sayers said:

[UPDATE: I finally got the featured images to work - didn't realize I had to add the "featured" tag to the image - otherwise, I get an error].

Again, sorry about this. Docs should be clearer.

On 7/15/2018 at 1:33 AM, Ben Sayers said:

Any chance you can provide a working Gist for each of the other properties? IE: categories, authors, archives, comments, tags, next/prev post, etc. -¬† I would like to¬†modify them to match my theme in the same way I did with renderPosts.ÔĽŅ

Not at the moment, I'm afraid. Any reason why you can't/won't use the Blog module itself to render your posts? The demo template files and the present documentation provide examples that should get you going.

Share this post


Link to post
Share on other sites
16 hours ago, kongondo said:

Not at the moment, I'm afraid. Any reason why you can't/won't use the Blog module itself to render your posts? The demo template files and the present documentation provide examples that should get you going.

I guess that's where the documentation would come in handy, I just don't understand how to use the Blog module... If I make changes to MarkupBlog.module, won't they be overwritten if I update your plugin in the future? The demo templates seem to be using the delayed output method which I don't know how to use. When I install PW, I use the "Beginner" option with Direct Output (head/foot includes). 

Share this post


Link to post
Share on other sites
2 hours ago, Ben Sayers said:

If I make changes to MarkupBlog.module, won't they be overwritten if I update your plugin in the future

Yes, they would be overwritten.

2 hours ago, Ben Sayers said:

I guess that's where the documentation would come in handy, I just don't understand how to use the Blog module

I agree, however, the current Blog API documentation is sufficient to get you started, I would think ūüôā.

2 hours ago, Ben Sayers said:

The demo templates seem to be using the delayed output method which I don't know how to use

True, but it shouldn't be a problem because the most important thing for you is to use Blog's own methods. E.g. renderPosts(), renderCategories(), etc. They'll still work irrespective of output method. Hence, the reason I pointed you to the examples in the demo template files.

Maybe if you could explain what exactly you need help with?

 

Share this post


Link to post
Share on other sites

I've just updated my PW to 3.0.98 and installed ProCache. Unfortunately now I'm getting a 404 on all blog pages. Also I see ProCache doesn't even list the blog templates.

Any advice?

Share this post


Link to post
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

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By bernhard
      WHY?
      This module was built to fill the gap between simple $pages->find() operations and complex SQL queries.
      The problem with $pages->find() is that it loads all pages into memory and that can be a problem when querying multiple thousands of pages. Even $pages->findMany() loads all pages into memory and therefore is a lot slower than regular SQL.
      The problem with SQL on the other hand is, that the queries are quite complex to build. All fields are separate tables, some repeatable fields use multiple rows for their content that belong to only one single page, you always need to check for the page status (which is not necessary on regular find() operations and therefore nobody is used to that).
      In short: It is far too much work to efficiently and easily get an array of data based on PW pages and fields and I need that a lot for my RockGrid module to build all kinds of tabular data.

      Basic Usage

       
      Docs & Download
      https://modules.processwire.com/modules/rock-finder/
      https://gitlab.com/baumrock/RockFinder/tree/master
       
      Changelog
      180817, v1.0.6, support for joining multiple finders 180810, v1.0.5, basic support for options fields 180528, v1.0.4, add custom select statement option 180516, change sql query method, bump version to 1.0.0 180515, multilang bugfix 180513, beta release <180513, preview/discussion took place here: https://processwire.com/talk/topic/18983-rocksqlfinder-highly-efficient-and-flexible-sql-finder-module/
    • By OLSA
      Hello for all,
      ConfigurationForm fieldtype module is one my experiment from 2016.
      Main target to build this module was to store multiple setup and configuration values in just 1 field and avoid to use 1 db table to store just single "number of items on page", or another db table to store "layout type" etc. Thanks to JSON formatted storage this module can help you to reduce number of PW native fields in project, save DB space, and reduce number of queries at front-end.
      Install and setup:
      Download (at the bottom ), unzip and install like any other PW module (site/modules/...). Create some filed using this type of field (ConfigurationForm Fieldtype) Go to field setup Input tab and drag some subfields to container area (demo). Set "Name" and other params for subfields Save and place field to templates ("Action tab") How to use it:
      In my case, I use it to store setup and configurations values, but also for contact details, small content blocks... (eg. "widgets").
      Basic usage example:
      ConfigForm fieldtype "setup" has subfields:
      "limit", type select, option values: 5, 10, 15, 20
      "sort", type select, option values: "-date", "date",  "-sort", "sort"
      // get page children (items) $limit = isset($page->setup->limit) ? $page->setup->limit : 10; $sort = isset($page->setup->sort) ? $page->setup->sort : '-sort'; $items = $page->children("limit=$limit, sort=$sort");  
      Screenshots:


       
      Notes:
      Provide option to search inside subfields Provide multilanguage inputs for text and textarea field types Provide option for different field layout per-template basis Do not place/use field type "Button" or "File input" because it won't works. Please read README file for more details and examples Module use JSON format to store values. Text and textarea field types are multilanguage compatible, but please note that main target for this module was to store setup values and small content blocks and save DB space. Search part inside JSON is still a relatively new in MySQL (>=5.77) and that's on you how and for what to use this module.
      Thanks:
      Initial point for this fieldtype was jQuery plugin FormBuiled and thanks to Kevin Chappel for this plugin.
      In field type "link" I use javascript part from @marcostoll module and thanks to him for that part.
      Download:
      FieldtypeConfigForm.zip
      Edit: 14. August 2018. please delete/uninstall previously downloaded zip
      Regards.
         
    • By bernhard
      @Sergio¬†asked about the pdf creation process in the showcase thread about my 360¬į feedback/survey tool and so I went ahead and set my little pdf helper module to public.
      Description from PW Weekly:
       
      Modules Directory: https://modules.processwire.com/modules/rock-pdf/
      Download & Docs: https://gitlab.com/baumrock/RockPdf
       
      You can combine it easily with RockReplacer: 
      See also a little showcase of the RockPdf module in this thread:
       
    • By Thomas Diroll
      Hi guys I'm relatively new to PW and just finished developing a page for a client. I was able to include all necessary functionality using the core fieldtypes but now I it seems that I need to extend them with a custom one. What I need is a simple button, that copies the absolute url (frontend not PW-backend) of the page which is currently edited to the clipboard. As this feature is only needed inside a specific template, I tend to use a custom fieldtype which provides this feature. I've been looking inside the core modules code (eg. FieldtypeCheckbox.module) but I don't really get the structure of it and how its rendered to the admin page. I also didn't find a lot of tutorials covering custom fieldtypes.
      Maybe some of you could give me some tips on how to write a basic custom fieldtype that renders a button which copies the value of
      page->httpUrl() to the clipboard using JS. Thanks!
    • By sam-vital
      Hi,
      I'm creating a News/Updates section for a client and they would like the 3 most recent Updates previewed on the home screen. So this would be Title and Date Posted. These blog posts will be child pages of a News and Updates page, which is a child of the Home page. So it's like Home -> News -> Blog posts. I don't need this to be a nav menu, just something to show the newest updates.
      All help is appreciated ūüôā