MaryMatlow

Members
  • Content count

    53
  • Joined

  • Last visited

Community Reputation

13 Good

About MaryMatlow

  • Rank
    Full Member
  1. Done. Thank you.
  2. 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?
  3. 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.
  4. Just to let you know that I was able to add links to the slides. Thank you for your help.
  5. Hi @flydev, It works like a charm . Thank you, thank you. The only other thing i needed was a link/button to link the slide to another page/post. I'll try to do that myself first. If I get stuck will ask for your help. Thank you very much.
  6. @flydev That's awesome. I'll try it out and report back. The Processwire version I'm using is 3.0.42. Thanks a ton.
  7. Hi @flydev, I plan to use your profile for my next project. I've installed it and it works fine. The carousel however just has only images and no corresponding heading and links, for that would really make the carousel experience complete. Is there a way to add heading and link to the images? Thanks.
  8. Yes, I meant AND. Rewriting URL as you suggest is way beyond my capability. I guess I'd have to live with it. In any case it's no biggie. About the categories, sorry about the confusion. What I meant was the categories that are displayed at the end of each post. Ideally when you click on it it should take you to the pages with the "news" and "blog" template respectively rather than the page with "category" template. I hope I'm makes sense. Thanks for your help.
  9. Hi @kongondo, it's all coming together nicely. I have one Blog page and other News page (both outside the Blog page structure) and they display summary posts and news articles respectively. I'm using the Style number 3 from Blog configuration. Two issues: 1) When the post/news article opens the path is mysite/posts/blog1 or mysite/posts/news1 which is expected because I'm adding these under "Posts". Ideally I would want them to open as mysite/blog/blog1 or mysite/news/news1. Hope it makes sense. Is there a way to achieve this? 2) Clicking on "Categories" takes me to mysite/categories/news. I would want it go to mysite/news instead where all the summary news posts sit. Thanks for your help.
  10. @kongondo You are right. I'm a complete PHP novice, trying to wing my way through, copying code without understanding. Obviously that's no way to do things. It's time to teach myself the basics of PHP, and I'm determined to do that. Thanks for pointing out the resources. And thanks for all your help and patience.
  11. Hey @kongondo, thanks for your detailed response. Regarding, the homepage i should have explained that I need only the latest news article to display, and since there are going to be several news articles the pagination will appear by default, and i don't want to show it. Now I could hide it by using a CSS rule but thought there should be a more elegant solution. The code for separating options for blog and news articles worked perfectly. Thanks. I thought I had worked out the rendering of blog and news articles separately but it doesn't seem to work. This is the code I'm using for display of news articles category, but all categories are being displayed: $posts = $pages->find("template=blog-post, blog_categories='News', limit=10");//grab some posts $options = array('post_count' => 1, 'post_comments' => 2, 'post_small_image' => '1', 'post_small_image_width' => '740',); $posts = ''; $posts .= $page->image; //render a limited number of summarised posts that belong to this category $posts .= $page->blog_body . $blog->renderPosts($posts, true, $options); echo $posts; Also, no featured image or images within the blog body are showing in any of the posts, summary view or single post view. On the previous site where I used the same code I had no problem with images. Appreciate your help.
  12. Hi @kongondo i want to render just one category post on homepage but would like to disable pagination with it. Is there an options array to do that? I couldn't find it. Second, I want to render posts from two categories on separate templates with different options. For example, when a news article is rendered I do not want author, comments etc but for the blog post I want to keep all that. The full single post uses the blog-post.php template by default. How can i make the news item to use let's say news-item.php? Thanks.
  13. As @kongondo suggested, changed the get method to path $pages->get('/path/to/page/'); and everything seems to work on all pages. Thanks a ton everyone.
  14. Great, thanks. In the footer.php I changed the get method to path but it didn't work on the gallery page but others pages worked as before on local machine. When uploaded the file to server it gives the error on all pages, reverted to paged IDs still the same error. So what worked before now broke down. Clearing the cache doesn't help either. It's so frustrating. Error: Call to undefined function wire() (line 14 of /nfs/c01/h05/mnt/xxxxx/html/site/templates/_footer.php)
  15. Changing "Blog" to "ProcessBlog" gives me this error Error: Call to a member function renderPosts() on a non-object (line 24 of /nfs/c01/h05/mnt/xxxxxxxx/html/site/templates/blog-posts.php) $content .= $blog->renderPosts("limit=5" . "", true, $options); Above is line 24.