MaryMatlow

Members
  • Content count

    65
  • Joined

  • Last visited

Community Reputation

15 Good

About MaryMatlow

  • Rank
    Full Member
  1. PHP was 5.6.21 but changed it to version 7 and now it works fine. Thank you @Macrura
  2. Hello, When I install this module I get this error: Parse error: syntax error, unexpected '[' in ....../html/site/assets/cache/FileCompiler/site/modules/FieldtypeAssistedURL/FieldtypeAssistedURL.module on line 26 What could be the reason for this. Please help!
  3. Yup, of course, the pagination was not turned on!! Thank you @Peter Knight
  4. Hello, Anyone out there who can help me out!!! Thanks.
  5. Hi @kongondo, I'm having a problem with pagination for the blog. The pagination links appear alright, but when I click on page 2 it brings me back to the top of the first page? What could be wrong? Appreciate your help. Thanks. I'm using ProcessWire 3.0.61 and ProcessBlog 2.4.0
  6. Thanks a ton @Robin S. It worked. Although I had to add some code to create a heading for each category. Thanks once again. Cheers!!
  7. I want to revive this thread as I could not find the solution I'm looking for. I've a function using the "repeater" field. I'm using it to display portfolio items (images and text). What I want to achieve is render the items according to category, such as, Web, Print, In Progress etc. I've created a field within "repeater" to specify the category. I've no idea how to make it work. This is the function I'm using: function bsRenderPortfolio($portfolio) { $out = "<div class='row portfolio'>"; foreach ($portfolio as $item) { $imgname=""; foreach($item->images as $img){ $imgname="<img class='portfolio-image img-responsive' src='".$img->url."' />"; } $out .= "<div class='portfolio-item'> <div class='col-xs-12 col-sm-6'> <figure class='wow fadeInLeft animated' data-wow-duration='500ms' data-wow-delay='300ms'> <div class='img-wrapper'> {$imgname} <div class='overlay'> <div class='summary'> <p>{$item->summary}</p> </div> <div class='buttons'> <p><a class='btn btn-lg' href='{$item->button_link}' role='button' data-toggle='tooltip' data-placement='right' title='{$item->button_tooltip}'> {$item->button_title}</a></p> </div> </div> <figcaption> <h3> $item->title} </h3> <h5> {$item->subheading} </h5> </figcaption> </div> </figure> </div> </div>"; } $out .= "</div>"; return $out; } And this is how it is being rendered: if($page->portfolio) $content .= bsRenderPortfolio($page->portfolio); Any help would be greatly appreciated. Thanks.
  8. Okay, this is sorted out. It was the "access" issue with the "blog-post" template. I removed "view and edit" access restriction and it works. Thanks for your help @christophe
  9. I've set the permissions to give access to blog to users and guest. Post show up on front-end only when I'm logged in as Admin.
  10. I'm facing another problem. Posts don't show up on the front-end, but when I login to the admin, I can see them on the fornt-end. Any idea what could be causing this behaviour?
  11. I'm using ProcessWire 3.0.58 and Blog 2.4.0 I see the "view" tab for regular pages but not for the posts.
  12. Is there a way to preview posts before publishing them? Couldn't find the option.
  13. Done. Thank you.
  14. Just an update: This was resolved when I recompiled the modules. In trying to fix this I had uninstalled ProcessCommentsManager, but now I can't install it back. It doesn't seem to exist. Is there any other way to manage comments?
  15. Hi @kongondo, I had to reinstall the Blog module as it was giving a problem (it was completely disabled, couldn't perform any action: post, delete etc.). Anyway ,I reinstalled and everything works fine but for the comments. It is giving me this error: Recoverable Fatal Error: Argument 1 passed to MarkupBlog::renderComments() must be an instance of CommentArray, instance of ProcessWire\CommentArray given, called in /xxx/html/site/templates/blog-post.php on line 53 and defined (line 1059 of /xxx/html/site/modules/ProcessBlog/MarkupBlog.module) This is the code I'm using on blog_post.php: $blog = $modules->get("MarkupBlog"); $blogConfigs = $modules->getModuleConfigData('ProcessBlog'); $renderComments = $blogConfigs['commentsUse'] == 1 ? $blog->renderComments($page->blog_comments) : ''; $options = array('post_date_text' => on, 'post_categories'=>0, 'post_comments' => 2, 'post_large_image' => 1, 'post_author' => 1); $content = $blog->renderPosts($page, false, $options) . $blog->postAuthor() . $renderComments . $blog->renderNextPrevPosts($page);//with post author widget //include the main/common markup require_once("blog-main.inc"); I'm using ProscessBlog 2.4 and Processwire 3.0.53 What could be the problem here? Thanks for your help.