 |

facilitiesweb
New User
Apr 19, 2005, 8:21 AM
Post #1 of 5
(2651 views)
Shortcut
|
|
specify a link or uplaod a pdf file for a news item --newbie help
|
Can't Post
|
|
Hello, This is my first experience with Page Publisher and am liking it. I have a small problem if someone can help me with it. In my news section, for every news item I want my my users to have the option of either specifying a URL to an asp or html page or upload a pdf file for that news item. Currently I can use "publish type=link" or "publish type=file_select" to specify a link or upload a file. How can I combine these two options. Please help
|
|
|  |
 |

ross
Staff
/ Moderator

Apr 19, 2005, 3:57 PM
Post #2 of 5
(2643 views)
Shortcut
|
|
Re: [facilitiesweb] specify a link or uplaod a pdf file for a news item --newbie help
[In reply to]
|
Can't Post
|
|
Hi there. Thanks for posting and welcome to the boards! With the file_select publishing tag if you add a “allowurl=yes” attribute to it, your users would get the option of choosing either a file from their desktop, or a URL. The full code would look something like this:
<!-- publish type="file_select" allowupload="yes" uploaddir="" allowremove="yes" allowurl="yes" name="File Upload/Selection"--><!-- --><!-- /publish --> Could I get you to give this a shot and let me know if it gets you going? Feel free to get back in touch if you have anymore questions . ----------------------------------------------------------- Cheers, Ross Fairbairn - 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.
|
|
|  |
 |

facilitiesweb
New User
Apr 20, 2005, 6:48 AM
Post #3 of 5
(2632 views)
Shortcut
|
|
Re: [facilitiesweb] specify a link or uplaod a pdf file for a news item --newbie help
[In reply to]
|
Can't Post
|
|
Thank you for suggesting that. I should have mentioned in my post that I had already tried that. I added asp,html to the "accepted upload extensions" but could not get it to work. This is the error I was getting when I specified the URL and clicked "Add": Error : Undefined subroutine &main::sq called at c:\inetpub\serverroot\pp\pp.cgi line 105. And this is what I am using: <!-- publish type="file_select" name="Click Add to Upload a File" allowupload="yes" uploaddir="" allowremove="no" allowurl="yes" allowadd="yes" --><a href="">Click Here</a><!-- /publish --> Please let me know if I am doing something wrong Regards
|
|
|  |
 |

ross
Staff
/ Moderator

Apr 20, 2005, 11:27 AM
Post #4 of 5
(2620 views)
Shortcut
|
|
Re: [facilitiesweb] specify a link or uplaod a pdf file for a news item --newbie help
[In reply to]
|
Can't Post
|
|
Hi there. Thanks for the update! The first thing to try when you are getting that error message is to re-upload the pp.cgi file. Just make sure that you upload it as ASCII though . If that doesn’t get you going, could you fill out a support request for me here: https://www.interactivetools.com/support/email_support.cgi And I’ll take a closer look at it for you. Just let me know how you are making out . ----------------------------------------------------------- Cheers, Ross Fairbairn - 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.
|
|
|  |
 |

facilitiesweb
New User
Apr 20, 2005, 1:09 PM
Post #5 of 5
(2618 views)
Shortcut
|
|
Re: [ross] specify a link or uplaod a pdf file for a news item --newbie help
[In reply to]
|
Can't Post
|
|
Hi Ross, I will try that and let you know if that works. Thanks
|
|
|  |
|