 |

BillG
User
Nov 10, 2004, 10:51 PM
Post #1 of 4
(2605 views)
Shortcut
|
Passing AM Parameter to ASP?
|
Can't Post
|
|
I want to build an ASP page counter component for AM, and I want to do it as an included component in my AM template. The pagecount would be written to a database. Now, I need to do this using the article's record number: $art_num$ . But the issue becomes, how to pass it? Are the AM templates resolved BEFORE the ASP components are run? For example, will this subroutine in my article template: <% PageCount("$art_num$") %> execute properly and pass the article record number to the ASP script? Thanks! Bill G.
|
|
|  |
 |

MikeB
Staff
/ Moderator

Nov 11, 2004, 2:12 PM
Post #2 of 4
(2591 views)
Shortcut
|
|
Re: [BillG] Passing AM Parameter to ASP?
[In reply to]
|
Can't Post
|
|
Hi Bill, Thanks for the post! The templatecells in Article Manager would be resolved before any ASP components you've added to the page. It looks like the code you provided would work properly to pass the article number. Try it out and let us know how it goes. In the meantime if you have any other questions feel free to let me know! Cheers, Mike Briggs - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
 |

BillG
User
Nov 11, 2004, 2:31 PM
Post #3 of 4
(2590 views)
Shortcut
|
|
Re: [MikeB] Passing AM Parameter to ASP?
[In reply to]
|
Can't Post
|
|
Mike, thanks! Are the settings for "Dynamic Page Rendering" in the setup options important for this to work properly? I've got my pages set to publish as a .ASP extension.
(This post was edited by BillG on Nov 11, 2004, 4:16 PM)
|
|
|  |
 |

MikeB
Staff
/ Moderator

Nov 11, 2004, 4:41 PM
Post #4 of 4
(2586 views)
Shortcut
|
|
Re: [BillG] Passing AM Parameter to ASP?
[In reply to]
|
Can't Post
|
|
Hi Bill, The settings under "Dynamic Page Rendering" shouldn't have any effect on what you're trying to do. These settings are mainly used for determining how Article Manager handles includes and server side scripting. Considering you're actually grabbing the data and not including any other files this setting shouldn't make a difference. I hope this helps and if you have any other questions feel free to let me know! Cheers, Mike Briggs - Product Specialist support@interactivetools.com
Hire me! Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.
|
|
|  |
|