We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7455
    • 2,204 Posts
    Using etomite before?:

    $pages = $etomite->getActiveChildren($parent, $sortBy, $sortHow, $fields);
      follow me on twitter: @dimmy01
      • 21560
      • 145 Posts
      I understood $etomite is part of the MODx framework. I didn’t load anything different in that page or the snippets. It’s a blank template in the page that calls it. So...

      I could of course be horribly wrong, but I hope not.
        [font=Times]Comics, stories, music, graphics, games and more! http://Nimja.com
        • 27376
        • 576 Posts
        Quote from: Nimja at Nov 14, 2007, 09:47 PM

        I understood $etomite is part of the MODx framework. I didn’t load anything different in that page or the snippets. It’s a blank template in the page that calls it. So...
        MODx is a fork of that project, thus some code has been left there in hopes to ease transition from there to here. If I understand it, MODx 0.9.7 will have pure MODx code so using that variable will no longer work.

        I recommend using [tt]$modx[/tt], they are the same variable anyways wink
          • 34017
          • 898 Posts
          This was a needed/much-wanted item for MODx. Thanks.
            Chuck the Trukk
            ProWebscape.com :: Nashville-WebDesign.com
            - - - - - - - -
            What are TV's? Here's some info below.
            http://modxcms.com/forums/index.php/topic,21081.msg159009.html#msg1590091
            http://modxcms.com/forums/index.php/topic,14957.msg97008.html#msg97008
            • 21560
            • 145 Posts
            *grin* Then I need to slap the snippet I got the code from with a large trout. (for you IRC people)

            I’ll edit my original post.

            And also, it’s easy to make stuff like this yourself, so I don’t understand if people were missing this huh
              [font=Times]Comics, stories, music, graphics, games and more! http://Nimja.com
              • 28033
              • 925 Posts
              Do we have to make the PDF template ourselves? Or is there a "blank" template we are supposed to download somewhere?
                My Snippets
                -> PopUpChunk v1.0
                • 21560
                • 145 Posts
                Good question. Well yes you have to make the PDF template yourself (it can be ANY PDF file, it just uses the first page as the template)

                BUT you don’t have to use a PDF file. You can make your own template with the PDF functions in the libraries. I suggest you doing that seperate though. Re-creating the template each time it is requested is kind of a shame wink Unless you want to make it dynamic of course.

                Also, by default it is an EMPTY A4 size ’page’

                So you don’t HAVE to use templates, in fact you can just ignore the template thing altogether.

                Another sidenote: look into the classes, things like page-numbers are easy to make smiley

                Have fun
                  [font=Times]Comics, stories, music, graphics, games and more! http://Nimja.com
                  • 2327
                  • 214 Posts
                  Hello,

                  Is it possible to make a pdf with the exact html and css classes used in the content of a document ? It seems not very easy with this version...? Is’not ?


                  Thanks.
                    • 21560
                    • 145 Posts
                    Very good question.

                    No, this is not possible with these libraries. There are, however, PHP libraries that DO generate PDF’s using HTML tags, as PDF’s support that now.

                    The only problem with those libraries is the lack of templating, which I needed for my owh PDF’s.

                    Just look on google and take a glance at my code, with even basic PHP knowledge it’s easy enough.
                      [font=Times]Comics, stories, music, graphics, games and more! http://Nimja.com
                      • 2327
                      • 214 Posts
                      Very thanks, Nimja...

                      "basic PHP knowledge it’s easy enough" but i’have not.. embarrassed

                      I’m surprised, arround your very nice snippet, that a simple snippet to directly convert any HTML document in PDF doesn’t exist in Modx.

                      Is normal for a so nice framework ?