Home | Products | Consulting | Forums | Support | Order | 1-800-752-0455
  Main
Index
Search
Posts
Who's
Online
Log
In

Home: Products: Article Manager 2:
Setting up an AM2 nested directory structure to be able to send out short URLs

 

 


nigelparry.net
User

Jun 3, 2008, 2:10 PM

Post #1 of 7 (943 views)
Shortcut
Setting up an AM2 nested directory structure to be able to send out short URLs Can't Post

What I was trying to do was create an AM2 directory structure that matched the categories, so I could send out short URLs for main categories, eg.

http://domain.com/resources/
http://domain.com/resources/art/
http://domain.com/resources/music/
http://domain.com/news/
http://domain.com/news/literature/
http://domain.com/news/dance/

without a trailing filename. The main reason you'd want to do this is because it looks tidy, and if you're advertising a subsection of your site in the media, or giving a URL out over the phone, it's way easier if it's shorter and doesn't include a file name.

Note: Mike B replied to this very long walkthrough with a simple answer. The rest of my post has therefore been deleted.

http://www.interactivetools.com/forum/gforum.cgi?post=62768#62768


Nigel
_____________________

For more information about Nigel Parry and nigelparry.net
websites please see http://nigelparry.net

nigelparry.net: award-winning communications
solutions for clients with something to say


  • Website & print design

  • Internet, public relations & media consulting


  • (This post was edited by nigelparry.net on Jun 5, 2008, 11:32 AM)


    MikeB
    Staff / Moderator


    Jun 4, 2008, 12:47 PM

    Post #2 of 7 (872 views)
    Shortcut
    Re: [nigelparry.net] Setting up an AM2 nested directory structure to be able to send out short URLs [In reply to] Can't Post

    Hi Nigel,

    Thanks for the post and the walkthrough!

    For your future reference as well, by making a quick change to one of the fields in the "Database Editor" for the "category" table, you'll actually be able to do this without creating an additional publishing rule. Basically you'll just use the Category Filename field in the "Categories" section of Article Manager and here's an example of what you'd put for a couple of the categories you mentioned above:

    Category Name: Resources
    Category Filename: resources

    Category Name: Art
    Category Filename: resources/art

    Category Name: Music
    Category Filename: resources/music

    etc.

    So you can see here that you'll just put the top level category right into the category filename field for the subcategories. The nice thing about this is that you can go as many levels deep as you'll require and then your publishing rule will just replace "<catfile>" with the folder path you've entered.

    I hope this helps Nigel! Smile

    Cheers,
    Mike Briggs - 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.


    nigelparry.net
    User

    Jun 4, 2008, 1:00 PM

    Post #3 of 7 (871 views)
    Shortcut
    Re: [MikeB] Setting up an AM2 nested directory structure to be able to send out short URLs [In reply to] Can't Post

    Mike,

    I knew (and hoped) that you'd ruin it all! :-)

    That's very cool that we can do that, but in your post you suggest there is but don't specify the change to the Category table in the database.

    Is that needed, or can we just go ahead in the Category Editor and put that in? And do we need a full filename put in there, eg. "/resources/art/index.shtml"

    Thanks!

    Nigel
    _____________________

    For more information about Nigel Parry and nigelparry.net
    websites please see http://nigelparry.net

    nigelparry.net: award-winning communications
    solutions for clients with something to say


  • Website & print design

  • Internet, public relations & media consulting


  • MikeB
    Staff / Moderator


    Jun 5, 2008, 10:28 AM

    Post #4 of 7 (798 views)
    Shortcut
    Re: [nigelparry.net] Setting up an AM2 nested directory structure to be able to send out short URLs [In reply to] Can't Post

    Hi Nigel,

    The only change that is needed is to allow the "Category Filename" field to accept the "/" character. To do this, you'll log into Article Manager and click Admin->Database Editor and then modify the "Category" table.

    First, scroll to the bottom of the page and choose "Enable System Field Editing" from the dropdown menu and then click Go. Now, you can click modify for the "filename" field and you'll want to find the option under "Input Validation" for "Only Allow Characters:". Just change the text field here so it looks like this:

    _./-

    From there, click "Save" and you should be taken back to the list of fields for the Category table. You'll just want to click the dropdown menu again to disable system field editing.

    At this point you're all set to enter this path into the category filename field. You won't need to put a leading or ending "/" and you won't need to put index.shtml as the publishing rule already tells Article Manager to create this file. You'll use exactly what I mentioned above so for the Art category you'll just enter this exactly as it is here:

    resources/art

    I hope this helps Nigel! Smile

    Cheers,
    Mike Briggs - 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.


    nigelparry.net
    User

    Jun 5, 2008, 11:33 AM

    Post #5 of 7 (794 views)
    Shortcut
    Re: [MikeB] Setting up an AM2 nested directory structure to be able to send out short URLs [In reply to] Can't Post

    Thanks Mike!

    I've deleted my way long walk through (crawl through?) and put a link directly to your post above.

    Cheers,

    Nigel
    _____________________

    For more information about Nigel Parry and nigelparry.net
    websites please see http://nigelparry.net

    nigelparry.net: award-winning communications
    solutions for clients with something to say


  • Website & print design

  • Internet, public relations & media consulting


  • nigelparry.net
    User

    Jun 6, 2008, 3:11 PM

    Post #6 of 7 (771 views)
    Shortcut
    Re: [MikeB] Setting up an AM2 nested directory structure to be able to send out short URLs [In reply to] Can't Post

    Mike,

    When I follow these instructions, I don't get the index.php file at all.

    If I input into the category name field:
    wales/about

    I get:
    wales/about.php

    where I want wales/about/index.php

    If you try and do it with a trailing slash, it delivers wales/about/.php

    Is there another change to the Category Database that I need to do or should I just be putting "wales/about/index.php" into the category filename field?

    And will this guarantee that the articles, printer pages, etc., all publish into the wales/about directory?

    Thanks,

    Nigel
    _____________________

    For more information about Nigel Parry and nigelparry.net
    websites please see http://nigelparry.net

    nigelparry.net: award-winning communications
    solutions for clients with something to say


  • Website & print design

  • Internet, public relations & media consulting


  • MikeB
    Staff / Moderator


    Jun 6, 2008, 3:57 PM

    Post #7 of 7 (769 views)
    Shortcut
    Re: [nigelparry.net] Setting up an AM2 nested directory structure to be able to send out short URLs [In reply to] Can't Post

    Hi Nigel,

    It sounds like this is just related to the publishing rule that's being used for the category index pages. In this publishing rule, it sounds like you probably have something like this for the "Filename" under Multiple files:

    <catFile>

    This just outputs whatever you've typed into the "Filename" field in the "Categories" section, so you'll actually want to use this:

    <catFile>/index

    This way, whatever you enter will be placed here and then a trailing slash and "index" file will be added as part of the publishing process. Using this filename format when you enter "wales/about" should then give you this path:

    wales/about/index.php

    I hope this helps! Smile

    Cheers,
    Mike Briggs - 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.

     
     
     


    Search for (options)
    Products
    CMS Builder
    Article Manager
    Realty Manager
    Listings Manager
    Order Now
    Services
    Priority Consulting
    Support
    Online Documentation
    Support Forums
    Support Homepage
    Company Info
    12 reasons to choose us!
    Meet the team
    Monthly newsletter
    Contact Us
    Toll Free: 1-800-752-0455
    Phone: (604) 689-3347
    Sales | Support
    Conditions of Use | Privacy Policy | Copyright © interactivetools.com 2008
    #201 - 2730 Commercial Drive, Vancouver BC Canada V5N 5P4