+1-888-365-2779
Try Now
More in this section

Primary URLs

12 posts, 0 answered
  1. Ben Alexandra
    Ben Alexandra avatar
    215 posts
    Registered:
    15 Sep 2012
    28 Apr 2007
    Link to this post

    Hi guys,

    Congratulations on the release of RC2.  On initial glance, it looks great! There are a few slick new things that I'm psyched about, like Page Groups and Multiple URLs.

    That brings me to the first major concern I have:  URLs.  Your default URLs are fine, but I have a very specific way I do URLs and would like that to stay the same.  It's my understanding in the new version that if the CMS creates ~/TrakkwareProducts/CampusTrakker.aspx I can add an alias that would be ~/products/campus_trakker/index.aspx.  The problem is there is no longer a concept of Primary URL (as far as I can tell), so all the nav goes to the first URL, even though I want the second URL to be the Primary URL.  Is there a way to specify which of my multiple URLs I'd like the menus to use?

    Also, there seems to be a bug.  I was able to get the second URL to come up in a browser and show the content, but menus didn't change to match.  Might be based on how I've been doing it in the past (using the SiteMap object (see below)).

        RadTabStrip1.DataBind();  
        SiteMapNode smn1 = SiteMap.CurrentNode;  
        if (smn1 != null)  
        {  
            //Set PageTitle   
            lblPageTitle.Text = smn1.Title;  
            Page.Title = smn1.Title + " | Trakkware, Inc. | Boulder, CO";  
            sURL = smn1.Url;  
     
            //Set Tabs highlighted  
            Tab tab = new Tab();  
            while (smn1.ParentNode != null)  
            {  
                tab = RadTabStrip1.FindTabByUrl(this.ResolveUrl(smn1.Url));  
                if (tab != null)  
                {  
                    tab.Selected = true;  
                }  
                smn1smn1 = smn1.ParentNode;  
            }  
        } 

    Maybe there's a better/different way to do it now.

    Once again, great next step and I'm really looking forward to the final release.  Also, could just be my imagination, but it seems MUCH faster.  Did you do something?

    Ben

    Ben Alexandra
    President, Trakkware, Inc.
    http://trakkware.com

  2. Vlad
    Vlad avatar
    498 posts
    Registered:
    15 Jul 2016
    02 May 2007
    Link to this post
    Hi Ben,

    Thank you, we are doing our best to improve the Sitefinity.
    With regard to this we encountered some problems related to setting a different primary URL for a page. So we hid this functionality from the User Interface for a while. Actually, it makes the logic too complicated and brings more problems and limitations to the application than advantages. We will return this functionality back as soon as we ensure that all related problems are resolved. Thank you for your understanding.

    Unfortunately, I cannot understand the problem with the code related to using SiteMap Provider. Are you getting an error or incorrect information? Could you explain the task you are going to implement with this code? Is it related to some of your previous posts? We need this information, so we could be able to provide the most appropriate solution.

    As for the note about Sitefinity performance, it's not imagination, we made many improvements and optimization on the product during the last month.

    Sincerely yours,
    Vlad
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Ben Alexandra
    Ben Alexandra avatar
    215 posts
    Registered:
    15 Sep 2012
    03 May 2007
    Link to this post
    Hi,

    I wanted to clarify a statement you made:

    • "With regard to this we encountered some problems related to setting a different primary URL for a page. So we hid this functionality from the User Interface for a while. Actually, it makes the logic too complicated and brings more problems and limitations to the application than advantages. We will return this functionality back as soon as we ensure that all related problems are resolved."
    The primary URL used is going to be important to us for various reasons, including redirecting our existing website.  Do you plan to reintroduce the concept of a Primary URL into the final release in mid-May? Not having control over what the URL used by the sitemap is the only thing that would stop us implementing Sitefinity at this point. The product looks great and we've built our whole site around the Beta2 (which allows you to choose a primary URL), so I'm really hoping you'll offer that functionality into the release in a couple of weeks.

    Thanks a lot!

    Ben
  4. Vlad
    Vlad avatar
    498 posts
    Registered:
    15 Jul 2016
    03 May 2007
    Link to this post
    OK Ben,

    You will have this functionality in the official release.

    Sincerely yours,
    Vlad
    the telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  5. Ben Alexandra
    Ben Alexandra avatar
    215 posts
    Registered:
    15 Sep 2012
    03 May 2007
    Link to this post
    Perfect!  Thanks a lot

    Ben
  6. Ben Alexandra
    Ben Alexandra avatar
    215 posts
    Registered:
    15 Sep 2012
    06 May 2007
    Link to this post
    Hi,

    I don't know how you're planning to implement this, but I just upgraded my big project from Beta2 to RC2.  Everything worked flawlessly, except, of course the URLs.  I noticed, however, that the table "sf_CmsUrl" went from a table that appeared to have EVERY link (the ones generated automatically by SF, + the ones I had added).  It removed ALL the links when I upgraded, so i had to go back through, but it only appeared to add the new links.

    One thing I was thinking is, if you can't have the option to Choose a Primary Link, if there is a link in that table, it would use that, otherwise it would use the link generated by SF (presumably generated on the fly).  I understand that there could be multiple additional URLs in that table, but as far as I'm concerned, there will usually only be one and if there were more, I wouldn't care which one you used.  I just don't want the auto-generated one (for the reasons stated above (mainly due to search engine ranking)).

    Thanks a lot!

    Ben
  7. Vlad
    Vlad avatar
    498 posts
    Registered:
    15 Jul 2016
    07 May 2007
    Link to this post
    Hello Ben,

    The "sf_CmsUrl" table contains only additional URLs, it should not contain the URLs automatically generated by Sitefinity. Also, the "DefaultUrlIndex" field in the table "sf_CmsPage" is by default -1, which means that the page will use the URL generated by Sitefinity as a primary URL.
    If the page has additional URLs, you can change the DefaultUrlIndex to point to a valid index in the additional URLs list, i.e DefaultUrlIndex = 0 means that the page will use the first URL in the additional URLs list as a primary URL.

    Greetings,
    Vlad
    the telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  8. Ben Alexandra
    Ben Alexandra avatar
    215 posts
    Registered:
    15 Sep 2012
    08 May 2007
    Link to this post
    Hi,

    Thanks for the tip.  I did that and if I regenerate all the URLs (which were deleted during the upgrade) using your UI, then update the DefaultUrlIndex as suggested, it works like a charm!  I do, however, have over 100 pages and would rather not re-input all those URLs.  I tried to import the URLs from the old db and as far as I can see, they imported fine, but the app doesn't recognize them.  I used the same GUID as the PageID and when I look at what I create versus what the UI creates, i can't see ANY difference (except the ID GUID).

    Any ideas?  Is something stored in a table other than sf_CmsUrl for this?

    Ben
  9. Vlad
    Vlad avatar
    498 posts
    Registered:
    15 Jul 2016
    08 May 2007
    Link to this post
    Hello Ben,

    We don't see any reason why the system doesn't recognize the imported URLs. But if you send us your databases (old and new), we could check it for you.
    Or you could wait for the official release, where we will modify the upgrading mechanism so it will not delete the additional URLs.

    Sincerely yours,
    Vlad
    the telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  10. Ben Alexandra
    Ben Alexandra avatar
    215 posts
    Registered:
    15 Sep 2012
    08 May 2007
    Link to this post
    Yeah, maybe I'll just wait for the new version.  Are you still on schedule for release on next Tuesday? If you feel you might push that date, I need to know as my biggest customer is planning to launch their new site (that I've been working on in Beta2) and I need to give them a date.

    Thanks

    Ben
  11. Bob
    Bob avatar
    330 posts
    Registered:
    24 Sep 2012
    08 May 2007
    Link to this post
    Hi Ben,

    Yes, the release is still on schedule and we do not expect any further delays.

    Sincerely yours,
    Bob
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  12. Ben Alexandra
    Ben Alexandra avatar
    215 posts
    Registered:
    15 Sep 2012
    08 May 2007
    Link to this post
    Perfect!  I'm quite excited!

    Ben
Register for webinar
12 posts, 0 answered