Jump to content

MaryMatlow

Members
  • Posts

    70
  • Joined

  • Last visited

Posts posted by MaryMatlow

  1. 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 ?

  2. 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?

  3. 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?

  4.  

    I'm having a strange problem. Only the homepage is giving server error:

    Server Error
    
    We're sorry! The server encountered an internal error and was unable to complete your request. Please try again later.
    
    error 500

    But the rest of the site works fine. I've turned on the debug mode but the errors don't show up. In the logs I get these errors:

    Error: Call to a member function get() on null (line 29 of /home/wespenqf/public_html/site/templates/_functions.inc)
    Error: Exception: SQLSTATE[42000] [1203] User wespenqf_speak already has more than 'max_user_connections' active connections (in /home/wespenqf/public_html/wire/core/ProcessWire.php line 377) #0 /home/wespenqf/public_html/wire/core/ProcessWire.php(209): ProcessWire\ProcessWire->load(Object(ProcessWire\Config)) #1 /home/wespenqf/public_html/index.php(52): ProcessWire\ProcessWire->__construct(Object(ProcessWire\Config)) #2 {main}

    Does anyone have any idea what's going on? Thanks for your help!!

    Running ProcessWire 3.0.64

  5. 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!

  6. 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

  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. 17 hours ago, MaryMatlow said:

    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?

    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

    • Like 1
  9. 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?

  10. 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.

     

  11. 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.

×
×
  • Create New...