Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 1:
How to replace _ with - in filenames?

 

 


glenster
User

Feb 18, 2007, 7:07 PM

Post #1 of 7 (3941 views)
Shortcut
How to replace _ with - in filenames? Can't Post

Hi,

Great piece of software guys. Use it all the time.

Can you tell me how to replace the automatic inclusion of "_" with "-" when saving filenames?

For example, I want to replace "filename_one.html" with "filename-one.html"

cheers,

Glen.


Mike4172
User

Feb 18, 2007, 7:34 PM

Post #2 of 7 (3938 views)
Shortcut
Re: [glenster] How to replace _ with - in filenames? [In reply to] Can't Post

Setup Options --> Server Tab. Find "Article Pages" and change "filename_" with "filename-".

Regards,
Michael
[red]NEW![/red][url "http://amscripts.net/webdesign/#logo"]Logo and Website Design[/url]
[url "http://amscripts.net/amaddons/#apde"]Auto Post Date and Expiration[/url]
[url "http://amscripts.net/amaddons/#goforum"]GoForum 2.02[/url]
[url]http://www.amscripts.net[/url]
[url "http://www.skype.com"]SKYPE[/url] - michael.amscripts


ross
Staff / Moderator


Feb 19, 2007, 10:01 AM

Post #3 of 7 (3932 views)
Shortcut
Re: [glenster] How to replace _ with - in filenames? [In reply to] Can't Post

Hi Glen.

Thanks for posting and welcome to the board!

Looks like Michael beat me to it on this one. His suggestion should get you going. Thanks Michael!

Keep us all up to date with how you are making out, Glen Smile.
-----------------------------------------------------------
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: http://www.interactivetools.com/consulting/



glenster
User

Feb 19, 2007, 2:56 PM

Post #4 of 7 (3927 views)
Shortcut
Re: [ross] How to replace _ with - in filenames? [In reply to] Can't Post

I actually tried that prior to posting the problem here. Unfortunately it doesn't work as (I think) my preference to "Use search engine friendly URLs" is turned on?

ie. Currently AM saves my files according to the title of the article I specify

eg: "This Is My Article" is saved as "This_Is_My_Article.html".

All I want is for it to auto insert - instead of _ but the above solution doesn't appear to work for me. It works if I don't specify the article title.

cheers,
Glen


(This post was edited by glenster on Feb 19, 2007, 3:10 PM)


ross
Staff / Moderator


Feb 19, 2007, 5:20 PM

Post #5 of 7 (3924 views)
Shortcut
Re: [glenster] How to replace _ with - in filenames? [In reply to] Can't Post

Hi Glen

Now I see what you are trying to do Smile. Michael and I were on a different track. To get those underscores turned into dashes instead, try uploading the attached template file to /templates/admin/menus/ and over write the one that's there.

Basically, it's a bit of JavaScript there that is adjusting the filenames there for you so I just need to change one little thing. Of course, when it comes to the admin templates, it's better if I can just make the change for you.

Give it a shot and let me know what you think Smile.
-----------------------------------------------------------
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: http://www.interactivetools.com/consulting/

Attachments: article.html (17.4 KB)


glenster
User

Mar 6, 2007, 9:53 PM

Post #6 of 7 (3774 views)
Shortcut
Re: [ross] How to replace _ with - in filenames? [In reply to] Can't Post

Hi Ross,

Are you sure that template is for Article Manager 1? I am using Article Manager 1 and I cannot locate /templates/admin/menus/ anywhere.

cheers,
Glen.


ross
Staff / Moderator


Mar 7, 2007, 8:21 AM

Post #7 of 7 (3770 views)
Shortcut
Re: [glenster] How to replace _ with - in filenames? [In reply to] Can't Post

Hi Glen

Sorry about that. My template is definitely going to be for Article Manager 2 so it won't really work with Article Manager 1.

Now, the problem we have here is that file renaming thing for Article Manager 1 is right in the code itself so it isn't going to be something you can adjust.

If this is going to be a major requirement for your site, you might want to take a look at upgrading to version 2.

Let me know what you think Smile.
-----------------------------------------------------------
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: http://www.interactivetools.com/consulting/