Copied to clipboard

Flag this post as spam?

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


  • Aleksandr 9 posts 99 karma points
    Feb 25, 2020 @ 01:53
    Aleksandr
    0

    Blog and Portfolio - brief URLs do not work, long do work

    Hello y'all! I am working with blogs and portfolio items of Umazel package. In Umbraco Properties / "Link to document" URLs both brief and long URLs with nested folders show under blog

    https://web.local/blog/blog1/

    https://web.local/blog/posts/blog1/

    and portfolio pages

    https://web.local/success-stories/story1/

    http://web.local/success-stories/page-elements/client-success-stories/portfolio-items/story1/

    The main blog page is https://web.local/blog/

    and main portfolio page is https://web.local/success-stories/

    When I click on the main blog or portfolio page links within a browser the individual brief item URLs by default are https://web.local/blog/blog1/

    https://web.local/success-stories/story1/

    I get an error: "Page not found No umbraco document matches the url '/blog/blog1/'. This page can be replaced with a custom 404. Check the documentation for "custom 404". This page is intentionally left ugly ;-)"

    In web.config this code related to virtualnodes is supposed to remove the extra nested URL elements. If I remove virtualnodes line in web.config (there is no space after "<")

    "< add key="virtualnode" value="folderArticlePosts,folderSections,folderPortfolioItems,sectionPortfolio" />"

    then instead of the brief URL the long URL with multiple sub-sections is used by default for the blog or portfolio pages and shows in the browser when you click on a blog or portfolio list from their mother page.

    When I remove the virtualnode line, then I can view an individual blog or portfolio items and the full URLs which have extra elements in them.

    https://web.local/blog/posts/blog1/

    http://web.local/success-stories/page-elements/client-success-stories/portfolio-items/story1/

    QUESTION 1: Is there a solution to keep the URLs brief?

    QUESTION 2: Is there a plan to roll-out the latest Umazel package and would there be a way to transition older websites to the new package?

    One of the solutions I tried is within Umbraco to go to

    Settings / Document Types / Blog Post List Page / Permissions / add child / Blog Post

    Content / Blog / Posts

    and then take the individual blog post and move it out of Posts folder to the Blog folder level above to shorten the URL. I assume the same thing can be done with Portfolio items.

    MY SET UP: For Portfolio section I am working with Document Type of Portfolio Item Page. I have a webpage under which I added sectionPortfolio.

    I do have several websites under the same solution, but they seem to have different document IDs and I do not get a conflicting page error. Within the same solution I have: 2 websites that I am building, default Umazel home page, Umbraco sample website.

    I am using Umazel 1.0.5 with Umbraco CMS version 7.5.3 via Nuget packages. For some reason, Umbraco CMS version 7.5.0 DID NOT ALLOW TO SAVE Hostnames in UI.

    I looked at other tickets related to blog items and virtualnodes but those solutions do not work for me.

    Thanks!

  • Sotiris Filippidis 286 posts 1501 karma points
    Feb 25, 2020 @ 09:44
    Sotiris Filippidis
    0

    I was curious as to why / if this may be happening, so I launched a test website of mine on 7.5.6 (where uMazel had been installed as a package, as you probably have done with yours) and didn't notice any issue with virtual nodes functionality. Here's a screenshot of an example of what the blog urls should look like:

    Virtual Node url

    As you can see, the middle part has been removed from the url (should be /blog-example/posts/article-2. It seems to be working okay, so I wonder whether something else is going on there that you may haven't noticed. Not sure if host names have anything to do with this.

    Regarding your questions:

    1. Another solution to have custom urls would be to use the "url part substitution" field (under the Urls tab) on the articles or portfolio items folder, changing the name to something very short (e.g. "a" or "p") so that the final url would look like /blog/p/blog1/.

      1. We are already working on the uMazel starter kit for Umbraco V8, but there will be no automated way to transition content to that from earlier versions since in most cases it's a complete rewrite, and many elements that are now nodes will be moved to Nested Content.
  • Aleksandr 9 posts 99 karma points
    Feb 28, 2020 @ 00:43
    Aleksandr
    0

    Sotiris - My home page Culture and hostnames are:

    enter image description here

    Do I have to specify all http and https combinations as well as localhost to prevent from being locked out?

    My blog level URLs do not show only the part after "/" likes yours but all links:

    enter image description here

  • Aleksandr 9 posts 99 karma points
    Feb 28, 2020 @ 22:53
    Aleksandr
    0

    I went to the Umazel Home Page sample package and tried creating a sample blog called blog test with blogpost1. Initially, no hostname was configured for that website and I was getting the errors. Even the blog itself cannot be found via the URL.

    Later, I specified the same hostname pc.local as for my other website and still get the errors. When I click preview page, it opens when index is used, but does not render when full URL is used. Also, I am using Umbraco CMS version 7.5.3, not 7.5.6. Should I try upgrading it via Visual Studio packages?

    Any other thoughts? Thanks for your input and time.

    enter image description here

    enter image description here

    enter image description here

    enter image description here

    enter image description here

  • Aleksandr 9 posts 99 karma points
    Mar 16, 2020 @ 22:49
    Aleksandr
    0

    Sotiris / Umbraco community - any thoughts about URLs showing the way they are listed above and other Qs? Your feedback is appreciated. I am wondering if I am missing anything.

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft