I am quite new to Umbraco, so this is probablya stupid question. But I would like to learn it correct, so I do not get some bad habits from the start.
In the content area I have a content/folder called resources. In this content folder I made a page called "testpage". Afterwords I saved and published the site.
But when I go to localhost/testpage I just get the page:
Page not found No umbraco document matches the url '/landeside_1'.
This page can be replaced with a custom 404. Check the documentation
for "custom 404".
It sounds like the content you just created is missing a template.
In order for a page to be possible to visit, it neads a template to know how it should be rendered.
To check if your content has a tamples, check the "Properties" tab for the node and check the "Template" property value.
Thank you a lot for your answer. When I go to my testpage -> properties I can choose the template Page. As it is right now the template is called "Page" and is choosen. I cannot choose any other that "Page".
Is it correct what I did so far? My boss said that the pages I have to make, has to lay under its own section. That is why I made the section: "resources "
Just to summer up:
I went to Content area
Created the item "Domain Placeholder" as the document type
The Domain placeholder I called resources
Under Domain placeholder I have made a page called testpage
testpage has a template called Page (I cannot choose other than "Page")
The link to the document is /testpage/. When I click the "Link to document", I get the following error:
Page not found No umbraco document matches the url '/testpage'.
This page can be replaced with a custom 404. Check the documentation
for "custom 404".
Did you save and publish before you clicked "Link to doucment: /testpage/"? If you navigated to /testpage if feels strange that the error page mentions a page called "landeside_1", where does that page come from?
Ok so it seems like the problem is that your "Resources" node has a redirect to "site.local", which i quess works for that node. However the testpage does not know that "Resources" is redirecting.
Is the node "Forside" the page that has the "site.local" url? In that case, try moving the testpage to directly under "Forside" instead of "Resources".
Why do your boss what you to place the testpage under "Resources"?
Thank you a lot for your time Dennis. When I move the testpage to Forside, then the page is working fine. The forside is the local yes.
My boss would like to have it under that folder, because we need a collection of landingpages in there. Is there nothing I can do with the section Resources?
Since the page "Forside" has the url "site.local", when you browse the url "site.local/testpage" its going to look for a child page directly under "Forside" with the name "testpage". And since your "testpage" was under "Resources" and not "Forside", it returns an error (or a 404, page not found).
You could keep the "Resources" node as a folder or an "Archive", where you can have several landing pages, but if you want it to work for "site.local" you need to move it to directly under "Forside" when you want it to be active.
For support questions i recommend to post threads in this forum instead of pm:s, that way you have a better possibility to get helped by others, and other people with similar issues may find your question and get helped from it.
For other topics, you can send a pm on Twitter @dadolfi.
I just tried to write you a message on twitter, but I can only write you if you follow me. Is there a way that you could do that? It is really an important messsage I have to ask you.
Correct way to make a new page
Hello.
I am quite new to Umbraco, so this is probablya stupid question. But I would like to learn it correct, so I do not get some bad habits from the start.
In the content area I have a content/folder called resources. In this content folder I made a page called "testpage". Afterwords I saved and published the site.
But when I go to localhost/testpage I just get the page:
How can that be?
Best Regards
Hi Michael.
It sounds like the content you just created is missing a template. In order for a page to be possible to visit, it neads a template to know how it should be rendered.
To check if your content has a tamples, check the "Properties" tab for the node and check the "Template" property value.
Hello Dennis.
Thank you a lot for your answer. When I go to my testpage -> properties I can choose the template Page. As it is right now the template is called "Page" and is choosen. I cannot choose any other that "Page".
Is it correct what I did so far? My boss said that the pages I have to make, has to lay under its own section. That is why I made the section: "resources "
Just to summer up:
Did you save and publish before you clicked "Link to doucment: /testpage/"? If you navigated to /testpage if feels strange that the error page mentions a page called "landeside_1", where does that page come from?
Other than that everything sounds fine.
Sorry my bad with the ladeside_1. It is the "testpage" there is correct. I have clicked on publish.
If I click on Preview I can see the page all fine.
So its working or?
Can you provide some screendumps so i might see if something is set up strange?
Ok so it seems like the problem is that your "Resources" node has a redirect to "site.local", which i quess works for that node. However the testpage does not know that "Resources" is redirecting.
Is the node "Forside" the page that has the "site.local" url? In that case, try moving the testpage to directly under "Forside" instead of "Resources".
Why do your boss what you to place the testpage under "Resources"?
Thank you a lot for your time Dennis. When I move the testpage to Forside, then the page is working fine. The forside is the local yes.
My boss would like to have it under that folder, because we need a collection of landingpages in there. Is there nothing I can do with the section Resources?
Hi Michael.
Since the page "Forside" has the url "site.local", when you browse the url "site.local/testpage" its going to look for a child page directly under "Forside" with the name "testpage". And since your "testpage" was under "Resources" and not "Forside", it returns an error (or a 404, page not found).
You could keep the "Resources" node as a folder or an "Archive", where you can have several landing pages, but if you want it to work for "site.local" you need to move it to directly under "Forside" when you want it to be active.
This, or create a CustomUrlProvider and a ContentFinder, which is a little more work, but not impossible. Here is a great link about that: http://24days.in/umbraco/2014/urlprovider-and-contentfinder/
I say thank you a lot for your time and answers :) It really helped me a lot.
Best Regards
By the way is there a way where I can write i pm to you?
Great Micheal. Glad i could help! :)
For support questions i recommend to post threads in this forum instead of pm:s, that way you have a better possibility to get helped by others, and other people with similar issues may find your question and get helped from it.
For other topics, you can send a pm on Twitter @dadolfi.
Take care! Have a great day!
/ Dennis
Hello Dennis.
I just tried to write you a message on twitter, but I can only write you if you follow me. Is there a way that you could do that? It is really an important messsage I have to ask you.
@MichaelDK36
All done! :)
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.