 |

DefenceTalk.com
User
Oct 21, 2006, 10:34 PM
Post #1 of 17
(3427 views)
Shortcut
|
|
Article name issues
|
Can't Post
|
|
In AM 1, we use to publish articles like: FormatA: article_0009393.php (random number, etc.) Then swtiched to: FormatB: file_name_date.php Doing this did not change the file names for the articles which were published in FormatA. As of AM 2, that has changed. Everytime you make an article name change in publishing rules, it changes filename of every article which previously had different name. OldArticleFormat: This_is_an_example_20061020.php NewArticleFormat: /<artFile>_<artNum>00<catNum>.<ext> which would be: This_is_an_example_20061020_01230012.php Anyway to keep the old file names as they are and just apply the changes to the future articles, etc.? Thanks
|
|
|  |
 |

Dave
Staff
/ Moderator

Oct 21, 2006, 10:53 PM
Post #2 of 17
(3422 views)
Shortcut
|
|
Re: [DefenceTalk.com] Article name issues
[In reply to]
|
Can't Post
|
|
With publish rules, no, you'd need to either stick to your old format or move over to a new one. I imagine you had some javascript to fill out your filename field with the random number or date right? Maybe what you could try is just keeping the publish rule filename simple (eg: <artFile>.<ext>) and updating your javascript to fill in the extra values, except you couldn't get the article num when creating records (because it wouldn't be defined yet) and if you changed the category the category num would still be hardcoded into the filename. What's the reason you want to change your filename format again? Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

DefenceTalk.com
User
Oct 21, 2006, 11:02 PM
Post #3 of 17
(3420 views)
Shortcut
|
|
Re: [Dave] Article name issues
[In reply to]
|
Can't Post
|
|
I would like to keep it the same, if I can. Also, the idea of putting articles from each category in its own directory seems nice too and maybe that change is prompting the article name change as well... since old URLS won't be accessible anyway.
|
|
|  |
 |

Theo
Project Manager
/ Moderator

Oct 22, 2006, 11:53 AM
Post #4 of 17
(3403 views)
Shortcut
|
|
Re: [DefenceTalk.com] Article name issues
[In reply to]
|
Can't Post
|
|
What about just going forward with a new naming convention that works better for the future, and just keep your old published files where they are so that old inbound links will still work? Theo Wiersma Project Manager
|
|
|  |
 |

DefenceTalk.com
User
Oct 22, 2006, 12:56 PM
Post #5 of 17
(3399 views)
Shortcut
|
|
Re: [Theo] Article name issues
[In reply to]
|
Can't Post
|
|
Hey Theo, That is one option and I might just go with that. Thanks!
|
|
|  |
 |

steveo
User
Oct 24, 2006, 3:49 AM
Post #6 of 17
(3365 views)
Shortcut
|
|
Re: [Theo] Article name issues
[In reply to]
|
Can't Post
|
|
surely that would give a duplication issue with google? If you are going to rename files then the old files should be removed. I would like to keep the old format.. is there a way to do this?
|
|
|  |
 |

Theo
Project Manager
/ Moderator

Oct 24, 2006, 10:30 AM
Post #7 of 17
(3357 views)
Shortcut
|
|
Re: [steveo] Article name issues
[In reply to]
|
Can't Post
|
|
I would like to keep the old format.. is there a way to do this? Definitely, in fact it's quite easily done. These files will overwrite your Artman 1 published files when you change your publish directory to point to the old location, so make sure you're happy with the naming convention before you move. :) Go to Admin > Publishing, and click "modify" for the appropriate rule, as below, and change the Published Files/Filename field to match the value as below. First, you should change your Category Indexes. Rule: Category Indexes Filename: cat_index_<catNum> Then, change your article pages: Rule: Article Pages Filename: article_<artNum> Rule: Article Printer Pages Filename: printer_<artNum> Now, if you were publishing your articles to subdirectories based on category, then your article pages should be <catFile>/article_<artNum>, and you should go to each Category and check the filename values to make sure you're happy with where your articles will be going. All other files are used as server-side includes, so you shouldn't need to change them, but just in case, here's the rules to change, and what filenames to use: Rule: Global Headlines Filename: headlines_ Rule: Category Headlines Filename: cat_headlines_<catNum> Rule: Grouped Headlines (grouped by category) Filename: headlines_bycat Rule: Global Menu Filename: category_list Rule: Category Menus Filename: category_list<catNum> Rule: Search Box Filename: search_form Hope this helps, steveo! Theo Wiersma Project Manager
|
|
|  |
 |

DefenceTalk.com
User
Oct 24, 2006, 8:54 PM
Post #8 of 17
(3332 views)
Shortcut
|
|
Re: [Theo] Article name issues
[In reply to]
|
Can't Post
|
|
I've completed the upgrade. The old articles are still on the server but used robots.txt to block search engines from crawling them. So far, it is going pretty good. http://www.defencetalk.com/news/publish/ Updating the 404 page to direct users to search for the article they are looking for until current database is crawled!
(This post was edited by DefenceTalk.com on Oct 24, 2006, 8:55 PM)
|
|
|  |
 |

LawyerFind
User
Feb 21, 2007, 11:20 AM
Post #10 of 17
(3099 views)
Shortcut
|
|
Re: [Theo] Article name issues
[In reply to]
|
Can't Post
|
|
Ok, I am trying to follow this tutorial, and it makes sense, but I can't get it to change anything. Our old AM published all files to /publish. The new AM by default publishes the articles into category folders, such as /publish/cat-name. I want to change it so that it was the same as before, as that will easiest for us. So I changed both Category Indexes and Articles and removed the <catFile>. The articles did seem to publish correctly, however nothing on the site changes. Everything still point to the directories. What piece of the puzzle am I missing?
|
|
|  |
 |

Theo
Project Manager
/ Moderator

Feb 21, 2007, 11:31 AM
Post #11 of 17
(3097 views)
Shortcut
|
|
Re: [LawyerFind] Article name issues
[In reply to]
|
Can't Post
|
|
I'm not sure what's missing, but you might just need to re-publish your indexes and category menus. Theo Wiersma Project Manager
|
|
|  |
 |

Theo
Project Manager
/ Moderator

Feb 21, 2007, 11:42 AM
Post #13 of 17
(3095 views)
Shortcut
|
|
Re: [LawyerFind] Article name issues
[In reply to]
|
Can't Post
|
|
You shouldn't need to update any links, the links should be $published.articlePages.url$, so the path is updated when you update the article pages rule. Can you tell me the values you have for the "filename" for the following publishing rules? Global Index Category Indexes Article Pages Those are the only ones that matter. Theo Wiersma Project Manager
|
|
|  |
 |

Theo
Project Manager
/ Moderator

Feb 21, 2007, 12:03 PM
Post #15 of 17
(3091 views)
Shortcut
|
|
Re: [LawyerFind] Article name issues
[In reply to]
|
Can't Post
|
|
You've actually set up colliding files - articlePages and articleLists (for categories) need to have unique identifiers (<artNum> and <catNum>) or they will overwrite each other. Note that we're adding some additional error checking so that future versions will make it harder to accidentally create collisions like this. Global Index - "index" is fine Category Indexes - set to "cat_index_<catNum>" Article Pages - set to "article_<artNum>" Article Printer Friendly Pages - "printer_<artNum>" Now, republishing your Category Indexes and Article Pages WON'T change any of the links that point to them. Your menus and Global Index need to be republished as well to update the links with the new filename format. You need to republish your Category Menus (both the Global and the category-specific) and your Global Index. If you don't have many articles, you might just publish-all. Theo Wiersma Project Manager
(This post was edited by Theo on Feb 21, 2007, 12:04 PM)
|
|
|  |
 |

LawyerFind
User
Feb 22, 2007, 7:38 AM
Post #16 of 17
(3077 views)
Shortcut
|
|
Re: [Theo] Article name issues
[In reply to]
|
Can't Post
|
|
Thanks Theo. That makes sense. I'll be trying this later today. Thanks for the help!
|
|
|  |
 |

LawyerFind
User
Feb 23, 2007, 7:28 AM
Post #17 of 17
(3045 views)
Shortcut
|
|
Re: [LawyerFind] Article name issues
[In reply to]
|
Can't Post
|
|
This worked great. Then I realized I need the Cats to be the <catFile> so they match our user defined names. Working on that now.
|
|
|  |
|