Jump to content


  • Posts

  • Joined

  • Last visited

Everything posted by MaryMatlow

  1. 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.
  2. @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.
  3. 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.
  4. 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.
  5. 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.
  6. 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)
  7. 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.
  8. The upgrade went well and seems to have sort out the problem. I just noticed that in the module folder I've Blog folder and MarkupBlog folder with identical files. I renamed MarkupBlog and everything seems to be fine. Is it right thing to do? And, any clues about the error regarding the footer.php file?
  9. Okay guys thanks for your quick responses. Will upgrade and report back.
  10. ProcessWire Core (Master) ProcessWire master 3.0.39
  11. I'm getting this repeated error. The first time it happened @kongondo suggested I clear the cache and it worked fine. But it happened again and even clearing the cache doesn't help. What could be the issue? Compile Error: Cannot redeclare class BlogPublishDate (line 23 of /xx/xxxxxxxxx/html/site/modules/Blog/BlogPublishDate.module) The second error I get is on the gallery index page. Fatal error: Call to undefined function wire() in /Applications/XAMPP/xamppfiles/htdocs/xxxxx/site/templates/_footer.php on line 14 The same footer.php is being called on other templates also and it seems to work fine. See screenshot for the footer.php code: If I remove line 14 the error shows up on line 21 and so on wherever the get() api is being used. Anyone knows what could be the problem here?
  12. Thank you @kongondo, clearing the cache solved the issue. And your Blog works like a charm. Thank you, Thank you!!!
  13. Thanks @kongondo, that's perfect. The blog works beautifully. But now I'm getting a fatal error with the BlogPublishDate module: Compile Error: Cannot redeclare class BlogPublishDate (line 23 of /xx/xxxxxxxxx/html/site/modules/Blog/BlogPublishDate.module) Not sure where this has come from.
  14. Hi @kongondo, Thanks for your great module and you patient help with it. The blog page and summary page work fine. On the summary page with the array options we can turn off the comment count in the headline, how can i do the same on the blog post also. I'm using your default blog-post template to render single post. Thanks for your help.
  15. @kongondo I can't seem to get the featured image to work. Ive added image to blog_image field and am calling it on posts template like this: <?php //CALL THE MODULE - MarkupBlog $blog = $modules->get("MarkupBlog"); //main content $featured = array('tag'=>'thumb', 'width'=>550, 'position'=>'above'); $content .= $blog->renderPosts("limit=7", true, $featured); //include the main/common markup require_once("blog-main.inc"); There are images in the blog_body field also but none of the images are being rendered.
  16. HI @kongondo, So here's the progress. I've a summary page with blog posts listed, and have a full-length blog post page. On the blog-post template I've added an image field, and that image is the splash image to go across the top of the post, below which the post would be rendered. See screenshot: The thing I want to do is include this image as part of the summary post list, as in here: Any idea how can I achieve it. Thanks for your help.
  17. Hi @kongondo, I've very busy this past week and haven't had the time look at the documentation. Will do it this weekend and try it out and report back. Thank you very much for your help.
  18. Hi @kongondo, here I'm again. The blog works fine and I'm able to style it according to my needs, but somehow on the "posts" homepage I'm not getting the summary view of the posts. I get the full post and a link to the next post at the bottom. How do I get summary posts to work? Thanks.
  19. Fantastic @kongondo it works. Thanks a ton. Will bug you more if I run into issues. Cheers!!
  20. @kongondo Yesss! It worked, but only when I disabled scheduled post and comments. Is there a way to enable them? Also, would like to carry over the house styles to the blog. Ignore this!! Thank you so much.
  21. @kongondo When I run the cleanup script, it gives me this error: User Error Exception: Can't delete Page 1266 because it has one or more children. (in /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/PagesEditor.php line 986) #0 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/Pages.php(487): ProcessWire\PagesEditor->delete(Object(ProcessWire\Page), false, Array) #1 [internal function]: ProcessWire\Pages->___delete(Object(ProcessWire\Page)) #2 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/Wire.php(374): call_user_func_array(Array, Array) #3 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/WireHooks.php(549): ProcessWire\Wire->_callMethod('___delete', Array) #4 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/Wire.php(399): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Pages), 'delete', Array) #5 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/site/assets/cache/FileCompiler/site/templates/featureList.php(155): ProcessWire\Wire->__call('delete', Array) #6 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/site/assets/cache/FileCompiler/site/templates/featureList.php(155): ProcessWire\Pages->delete(Object(ProcessWire\Page)) #7 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/site/assets/cache/FileCompiler/site/templates/featureList.php(137): BlogCleanup->cleanUpRepeater() #8 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/site/assets/cache/FileCompiler/site/templates/featureList.php(61): BlogCleanup->cleanUpPages() #9 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/site/assets/cache/FileCompiler/site/templates/featureList.php(423): BlogCleanup->cleanUp(Object(ProcessWire\InputfieldForm)) #10 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/site/assets/cache/FileCompiler/site/templates/home.php(5): include('/Applications/X...') #11 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/TemplateFile.php(268): require('/Applications/X...') #12 [internal function]: ProcessWire\TemplateFile->___render() #13 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/Wire.php(374): call_user_func_array(Array, Array) #14 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/WireHooks.php(549): ProcessWire\Wire->_callMethod('___render', Array) #15 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/Wire.php(399): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #16 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/modules/PageRender.module(515): ProcessWire\Wire->__call('render', Array) #17 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/modules/PageRender.module(515): ProcessWire\TemplateFile->render() #18 [internal function]: ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent)) #19 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/Wire.php(374): call_user_func_array(Array, Array) #20 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/WireHooks.php(549): ProcessWire\Wire->_callMethod('___renderPage', Array) #21 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/Wire.php(399): ProcessWire\WireHooks->runHooks(Object(ProcessWire\PageRender), 'renderPage', Array) #22 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/WireHooks.php(629): ProcessWire\Wire->__call('renderPage', Array) #23 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/WireHooks.php(629): ProcessWire\PageRender->renderPage(Object(ProcessWire\HookEvent)) #24 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/Wire.php(399): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Page), 'render', Array) #25 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/modules/Process/ProcessPageView.module(205): ProcessWire\Wire->__call('render', Array) #26 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/modules/Process/ProcessPageView.module(205): ProcessWire\Page->render() #27 [internal function]: ProcessWire\ProcessPageView->___execute(true) #28 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/Wire.php(374): call_user_func_array(Array, Array) #29 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/WireHooks.php(549): ProcessWire\Wire->_callMethod('___execute', Array) #30 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/wire/core/Wire.php(399): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageView), 'execute', Array) #31 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/index.php(55): ProcessWire\Wire->__call('execute', Array) #32 /Applications/XAMPP/xamppfiles/htdocs/yogaspace/index.php(55): ProcessWire\ProcessPageView->execute(true) #33 {main} search►
  22. Ok, here's how it is. I had downloaded the Blog module some months ago and had been installing/uninstalling it. When in the "Upgrades" tab under Setup I was an available upgrade for the Blog I went ahead with it and the error occurred. You were right, it was the "two folders" problem. Anyway, I have deleted all the folders and files related to the Blog, have downloaded the latest version from GitHub and tried installing it, After the first step it gives me the following error: Cannot install Blog templates. Some template names already in use. These are: blog, blog-archives, blog-authors, blog-categories, blog-category, blog-links, blog-post, blog-recent-posts, blog-recent-tweets, blog-tag, blog-tags, blog-widgets, blog-widget-basic, blog-settings, repeater_blog-links. Cannot install Blog fields. Some field names already in use. These are: blog_body, blog_categories, blog_quantity, blog_date, blog_files, blog_headline, blog_href, blog_images, blog_links, blog_note, blog_summary, blog_tags, blog_small. Is there a way to delete the templates and fields in one go? Or is there a way around this error. Thanks so much for your help.
  23. Oops! I upgraded to the latest version of Blog and get this fatal error, the site and admin is down: Fatal error: Cannot redeclare class BlogPublishDate in /Applications/XAMPP/xamppfiles/htdocs/xxxxxxx/site/assets/cache/FileCompiler/site/modules/ProcessBlog/BlogPublishDate.module on line 23 Compile Error: Cannot redeclare class BlogPublishDate (line 23 of /Applications/XAMPP/xamppfiles/htdocs/xxxxxxx/site/modules/ProcessBlog/BlogPublishDate.module)
  24. @kongondo Processwire 3.0.39 PHP Version 5.6.24 I turned on the debug mode but it does NOT give me any "error" as such just a list of "Debug Mode Tools".
  25. Hi @kongondo I'm trying to install the blog, and have read all the installation instructions and following them to the T, but somehow I'm getting stuck after the second step. When I press the "run install wizard" button it doesn't show me the blog dashboard, instead it says "The process returned no content." For installation I'm choosing Style 1 Enabling comments Template files with demo blog RTE in quick post When I want to uninstall I don't see the "cleanup" in the blog menu either. What am I doing wrong? Please help.
  • Create New...