Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Max Mumford 266 posts 293 karma points
    Nov 10, 2010 @ 17:34
    Max Mumford
    0

    Run/Don't run asp control macro depending on document parameter

    Hi,

    We have a blog package were, at the bottom of every post, a comments form macro is called, which implements an asp control that writes a comments page.

    For various reasons we want to be able to disable comments on specific blog posts so I have added a "Disable comments?" true/false parameter for the blog post node.

    I have tried calling a macro that detects whether or not comments are disabled. If they are, it then calls a macro that calls the comments asp control, however apparently you cannot call a macro that calls an asp control from within a macro.

    So I then thought perhaps I could edit the ASP control (it is named autoForm), however I cannot find the source code for this control and so cannot edit it.

    Can anybody else  suggest how I can go about implementing this?

    Thanks,

    Max.

Please Sign in or register to post replies

Write your reply to:

Draft