Jump to content

Search the Community

Showing results for tags 'Blog'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. I have this code testing if a page (blog post page) has one or more comments associated with it: if($entry->comment.count > 0) { $out .= "This post has earned "; $commentCount = $entry->comment.count; $out .= (int)$commentCount; $out .= " comments so far."; } The test works fine, but the number of comments is returning something like an ID (I guess) rather than the number of comments. For example two pages have one comment each and for one it reports: and on the other: I am pretty sure this a PHP-lite-weight issue between the chair and the keyboard. If you're less PHP lite-weight than me and care to comment on what I might need to do, I would be most grateful
  2. Hi, I am creating a simple blog section, I want to display categories on each blog post. For the categories I have created a page (hidden) called 'Categories' and for each category a child page under this: On my blog-entry template I have added a page field type called 'categories' which allows me to select multiple categories from my parent page shown in the image above. Is this the right approach? Just having trouble displaying the categories on my blog-entry template: <?php /** * Blog Entry * */ include("./head.inc"); ?> <h1><?=$page->title?></h1> <p>Date:<?=$page->date?></p> <p>Category:<?=$page->categories?></p> <div id='bodycopy'> <?=$page->body?> </div> <?php echo $page->comments->render(); echo $page->comments->renderForm(); ?> <?php include("./foot.inc"); I have applied 2 categories to this blog post my categories are being listed as '1034|1033' so obviously my code is not right. heres a link which shows this: http://www.hoof.net.au/pwire/blog/blog-entry-1/ Also, how do i go about having a list of category links which display those blog posts, would it require a new page template like an 'archive' blog posts template. I'm not sure how to approach this. thanks, Alex
×
×
  • Create New...