create print template for my own module  Bottom

  • hi
    how can i create a print template for my module?
    i used this :
    http://community.zik…=view&theme=printer
    but this address show every thing in my page like header and footer.
    i want only have alist of module record in print template .
    just like print this topic above this message
    thanks



    edited by: mvonline, Jun 29, 2009 - 01:18 PM
  • I don't have the answer for you, but if I were in your position, I would go to the Dizkus SVN and look at their code on how they did what you want.
  • If you do

    Code

    $renderer->display(...);
    return true;


    instead of

    Code

    return $renderer->fetch(...);


    You will get a "blank" module output without the theme, useful for popups and print views.

    If you do not want to create special functions only for this purpose, you can introduce a parameter for this or even use the theme var:

    Code

    $theme = FormUtil::getPassedValue('theme', '', 'GET');
        if (strtolower($theme) == 'printer') {
            // standalone output
            $render->display($template);
            return true;
        }

        // normal output
        return $render->fetch($template);


    HTH,

    Axel

    --
    Guite | ModuleStudio

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