Welcome to Squishdot Squishdot Websites How-To
 about
 search
 post article
 Documentation
 Mailing Lists
 Bug Tracking
 Development
 Installation
 Upgrading
 Download
 admin
 rdf

 main


Printing Squishdot Articles?
How-To Posted by Ed Learned on Wednesday January 15, 03:52PM, 2003
from the dept.
Has anyone tried to print (or export to a file that could be printed), squishdot articles?

I am trying to find a way to get a hard copy of all squishdot articles on a site I've implemented. Has anyone done anything like this?

<  |  >

 

Related Links
  • Articles on How-To
  • Also by Ed Learned
  • Contact author
  • The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Re: Printing Squishdot Articles?
    by Chris Withers on Wednesday January 15, 06:24PM, 2003
    Have you tried File --> Print from your browser?

    What would you like to have happen?

    cheers,

    Chris
    [ Reply to this ]
    Re: Printing Squishdot Articles?
    by Dean on Wednesday January 29, 04:16PM, 2003
    This code posted to the mailing list has proved to be very helpful in my similar endeavors:

    (It doesn't do the threading you're probably hoping for...)

    Set the size to a large number for all values.
    Check the source for more variables to plug in.

    I'm still not sure what the mystical "getObject" call does, but that's the key to getting at the objects properties.


    <dtml-with "this()">

    <dtml-unless your_subject>
    <dtml-call "REQUEST.set('your_subject', '')">
    </dtml-unless>


    <dtml-in "this()(subject=your_subject, meta_type='Article')" size=10
    start=hasi sort=id reverse>

    <dtml-with getObject>

    <dtml-if sequence-start>
    <dtml-if previous-sequence>
    <a href="<dtml-var URL><dtml-var
    sequence-query>hasi=<dtml-var previous-sequence-start-number>">Previous
    articles</a><br><br>
    </dtml-if previous-sequence>
    </dtml-if sequence-start>

    <h3><a href="<dtml-var site_url><dtml-var thread_path>/<dtml-var id>"><dtml-var title></a></h3>
    <dtml-var author>, <dtml-var date_posted><br>
    <p><dtml-var showSummary></p>
    <p><dtml-var showBody></p>

    <dtml-if sequence-end>
    <dtml-if next-sequence><tr><td colspan="2"><br><a
    href="<dtml-var URL><dtml-var sequence-query>hasi=<dtml-var
    next-sequence-start-number>">Next articles</a></td></tr>
    </dtml-if next-sequence>
    </dtml-if sequence-end>


    </dtml-with></dtml-in>

    </dtml-with>
    [ Reply to this ]
    The Fine Print: The following comments are owned by whoever posted them.
    ( Reply )

    Powered by Zope  Squishdot Powered
      "Any system that depends on reliability is unreliable." -- Nogg's Postulate
    All trademarks and copyrights on this page are owned by their respective companies. Comments are owned by the Poster. The Rest ©1999 Butch Landingin, ©2000-2002 Chris Withers.