
terr@M
User
Nov 9, 2005, 12:43 PM
Post #1 of 2
(5735 views)
Shortcut
|
|
Integrating Job Manager into an Article Manager Site
|
Can't Post
|
|
We needed to ensure that our client's Job Manager pages were seamlessly integrated into the new Article Manager-based Web site we are building for them. Couldn't find any documentation or posts on how to do this. After kicking around some ideas we came up with a solution that's working great. I wanted to share it, and also ask if anyone foresees pitfalls with the way I've set it up. The only real issue was the navigation. Article Manager navigation is based off of a category list file that gets modified when you publish out pages. While you can hard code links at the top level and simply not publish that category via AM, I wasn't sure what to do about the second-level nav that is generated by AM. If I had hard-coded links to the Job Manager index page into the file used for the navigation they would be overwritten whenever anyone clicked the "Publish All" button. I also could have hard-coded a separate nav file and pulled it in with an include, but then it wouldn't be automatically updated via AM if there were changes and we didn't want to client to have to try to deal with that. Here's what I did: - Created a separate folder ("jobs") for the JM pages to publish to. - For the individual jobs pages I used a copy of the template we were using for second-level pages in Article Manager. I made sure all links/paths started with the path from the site root, including the path to the include that would pull in the appropriate navigation. - Stripped everything out of the JM _index page except for the code needed to pull in the listings. - Created and published all the jobs listings via JM. - In the AM category for job postings, selected the option to disallow users from adding pages. This means the nav will include the job postings category, but no one will be able to add pages to it via AM. - Left the AM job postings page template as-is, with all the "templatecell" code in place, but replaced the "Sorry no articles" message with an include that pulls in the JM-published job listing index. Since there are no AM articles associated with this category, AM will display the content I've placed in that section of the page and voila! - the JM listing index appears within the AM job postings page. And since we're publishing the category via AM, the nav element links to the right page. :: [b]teresa[/b] [url "http://www.thesimplerweb.com"]www.thesimplerweb.com[/url]
|