Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • RoboDog 21 posts 41 karma points
    Sep 21, 2010 @ 18:02
    RoboDog
    0

    umbracoURLAlias

    Ok so i have a load of nodes that i need to set there umbracoURLAlias, now for various reasons i can not do this via the umbraco api so i have written code that inserts a new cmsPropertyData for the node and also recreates the nodes contentxml into the database this all works perfectly and when i view the nodes i see there umbraoURLAlias has been set however when i try to navigate to this url i get a not found error this happens even if i republish the node via umbraco in fact the only time i can get umbracoURlAlias to work is when creating a new node within umbraco. Can anyone point me in the write direction i believe there is either another database table i need to update or file that im not amending.

     

    Many thanks.

  • Lee Kelleher 4026 posts 15836 karma points MVP 13x admin c-trib
    Sep 21, 2010 @ 21:02
    Lee Kelleher
    0

    Double-check the name of the property alias - it must be "umbracoUrlAlias" - it is case-sensitive, so make sure that its correct.

    I'd strongly recommend you to use the Umbraco APIs to create document properties.  Using the database directly could lead to all sorts of problems and headaches later on in development.  If you need help with a specific way to access/create property data - let us know, we can help out.

    Cheers, Lee.

  • RoboDog 21 posts 41 karma points
    Sep 22, 2010 @ 11:05
    RoboDog
    0

    Would love to use the api how ever it is very very very slow to import thousands of records so there for i have opted for direct database import which is working well also i have now solved this issue it was due to case sensitivity on the value of urlAlias not the property. Thanks

Please Sign in or register to post replies

Write your reply to:

Draft