pnWebLog Latest Block  Bottom

  • I am using the Latest blog block on the front page of my Zikula site. Currently it displays the blog title.

    How do I edit the code to display the intro text, like on a users blog page (or in their profile), before they go to the full article?

    This is the code in the block:

    Code

    <!--[foreach item=post from=$latestPosts]-->
        &#187; <a href="<!--[pnmodurl modname="pnWebLog" type="user" func="viewpost" post_id=$post.post_id]-->" title="<!--[pnml name="_PNWEBLOGWRITTENINWEBLOGFROM"]--> <!--[pnusergetvar name="uname" uid=$post.uid]-->"><!--[$post.title]--></a>
        <br />
    <!--[/foreach]-->
    <a href="<!--[pnmodurl modname="pnWeblog" type="user" func="main"]-->"><!--[pnml name="_PNWEBLOGREGISTERYOURWEBLOG"]--></a>
    <br /><br />


    I don't know if I need to edit the actual PHP file or not?

    If someone knows how to accomplish this, I would be greatly appreciated if you could share with me. I am quite novice at PHP.

    --
    "In the real world as in dreams, nothing is quite what it seems" - The Book of Counted Sorrows
  • icon_confused
  • Here is what I do when I want to work with a template and change it to fit my needs.
    • First copy it out of the block directory that it is in and move it to themes/your_theme/templates/blocks. Zikula looks here first for templates will use this instead of the template that came with the block. This allows you to change the template, yet not have it squashed when a new block is released.
    • Put this line in the template . This will display a whole bunch of debug info and all the template variables and their values. (make sure you turn on debugging in the config file) set $PNConfig['System']['development'] = 1;
    • You should be able to find the title in the template and work from there.
  • 0 users

This list is based on users active over the last 60 minutes.