Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1 Add-ons:
Link in goforum

 

 


taylor
User

Feb 24, 2003, 4:01 PM

Post #1 of 6 (4664 views)
Shortcut
Link in goforum Can't Post

Lionel asked this question last October:

"Is there a way to add a link (click here to view full article) right between the "summary" and "what do you think of this article", back to the article itself, so those users who get in the discussion from the backdoor will have a chance to read the entire article?"

Dave Edis suggested a solution that depended on the articles being named in the default way.

How can I do this if I name all of my articles myself (ex: bob1.html, bob45.html, dave12.html, etc...)

Thanks,

Taylor


ken_itools
Staff


Feb 25, 2003, 12:15 PM

Post #2 of 6 (4640 views)
Shortcut
Re: [taylor] Link in goforum [In reply to] Can't Post

Hey Taylor,

The original article Taylor is referring to is at http://www.interactivetools.com/forum/forum.cgi?post=2887.

Dave was saying that his example uses the default naming. If you've gone into Setup, Server tab and changed the "Filename Prefix" and/or "Publish file extension" you can still create a link to the article in the same way. Just use the prefix and extension you setup.

In your example, you would change the line of perl to http://yoursite/publish/bob$rec{'num'}.html

As you can see, the filename is constructed by combining filename prefix + record number + file extension.
----------
Ken Clarke - YAPG (Yet Another Perl Guy :)

interactivetools.com, inc. 
Tel: (604)689-3347 - Fax: (604)689-3342 - Toll Free: 1(800)752-0455 


taylor
User

Mar 4, 2003, 3:31 PM

Post #3 of 6 (4612 views)
Shortcut
Re: [ken] Link in goforum [In reply to] Can't Post

Hi Ken-

The problem, I guess, for me is this:

although it sounded like there was some sort of structured naming scheme on my site, there really isn't. I have articles from many different contributors and so the filenames are sort of random: x*.html, y*.html, z*.html.

It's totally random.

What about some sort of $art_name$ tag or something like that?

Taylor


ken_itools
Staff


Mar 5, 2003, 9:14 AM

Post #4 of 6 (4603 views)
Shortcut
Re: [taylor] Link in goforum [In reply to] Can't Post

So are you asking if you can use goforum.cgi for article which were not published by Article Manager? I'm afraid there is no placeholder which contains the name of the published page, since it isn't necessary for Article Manager published pages where the name is derived as I mentioned above.

How are you generating these pages, and more importantly, the page names?
----------
Ken Clarke - YAPG (Yet Another Perl Guy :)

interactivetools.com, inc. 
Tel: (604)689-3347 - Fax: (604)689-3342 - Toll Free: 1(800)752-0455 


taylor
User

Mar 5, 2003, 3:45 PM

Post #5 of 6 (4598 views)
Shortcut
Re: [ken] Link in goforum [In reply to] Can't Post

Yes, I am publishing (and manually naming) all through AM--but I'm naming each article like this:

rockstar1.html, remike1.html, bob65.html, manage3.html

There is no set naming structure, like default_name1.html, default_name2.html, etc. It's totally up to me how I name the articles.

See what I mean?

Your example suggests that I insert the "bob" name in a line of Perl--but the problem is, all of my articles don't necessarily include the "bob" name.

Any suggestions?

--Taylor


ken_itools
Staff


Mar 5, 2003, 5:20 PM

Post #6 of 6 (4589 views)
Shortcut
Re: [taylor] Link in goforum [In reply to] Can't Post

OK, so you have enabled Article Filenames in Setup and are entering the names when adding/editing articles.

The variable you are looking for is $rec{'filename'}.

The URL you want to construct will be simply: http://yoursite.com/publish/$rec{'filename'}.html
----------
Ken Clarke - YAPG (Yet Another Perl Guy :)

interactivetools.com, inc. 
Tel: (604)689-3347 - Fax: (604)689-3342 - Toll Free: 1(800)752-0455