I have a MVC4 project with a sitemap and a devexpress menu item on my _Layout page.
I have a section in my siteMap for InwardsGoods and an index page where the user can QueryDeliveries. The QueryDeliveries is the same page as the InwardsGoods home(Index) page.
<siteMapNode url="InwardsGoods/Index" title="Stock and Deliveries" description="">
<siteMapNode url="InwardsGoods/Index" title="Query Deliveries" description=""/>
</siteMapNode>
When I try to run this it complains about "ConfigurationErrorsException was unhandled by user code" Then "The site map file is invalid"
What I dont understand is when I run the siteMap without the url it runs the menu fine, obviously the link to Query Deliveries wont go anywhere though.
<siteMapNode url="InwardsGoods/Index" title="Stock and Deliveries" description="">
<siteMapNode url="" title="Query Deliveries" description=""/>
</siteMapNode>
How can I edit the sitemap to allow for both siteMapNodes to work?
You can't duplicate the url "InwardsGoods/Index" in multiple site map notes. Change it to "InwardsGoods/Queries" or something in the nested link in the site map.
I managed to get around this by changing the url to InwardsGoods/Queries and in the controller add an action result
Related
I have wix website. I do want to create a page with a custom url.
So briefly I want all the url with
www.somedomain.com/books/*
to be redirect to my created wix page.
Any way possible.
Url Example:
When ever user types url such as:
www.somedomain.com/books/1
www.somedomain.com/books/2
www.somedomain.com/books/3
www.somedomain.com/books/4
www.somedomain.com/books/5
www.somedomain.com/books/6
then the redirection should be to my created page on Wix whose url is: "www.somedomain.com/books"
Assuming you meant you have full control over www.somedomain.com/books/, you could redirect using HTML.
Go to the head tag --> add the code:
<meta http-equiv="refresh" content="0; url=YourWixSiteHere.com" />
if you want to make this shorter, I'm not sure how
I want to customize this error:
Page not found
No template exists to render the document at url 'someurl'.
This page is intentionally left ugly ;-)
I did edited umbracosettings.config :
<errors>
<error404>4568</error404>
</errors>
But for some reason the custom 404 works with some pages and doesn't work with others.
Are you sure the visited page HAS a template in the "properties" tab?
Same question for the page with ID 4568: has it a template in the properties tab?
I am using N2 CMS (taken templates Dinamico MVC project). I created a new model "TextPage" and respective controller as well. I registered page with "TextPageRegistration" class. And I set parent type for this type as Start Page. But when I run the site, I see this page under Trash instead of under Start Page.
How can I solve it?
Those things only controls what types of pages can be created under what kind of pages (i.e. you can create a page of type "TextPage" as a child to pages of type "Start Page" in the structure.
If something is in the trashcan, it's there because you (or someone else) deleted the page.
Try moving it back, or create a new page?
Hello I created some page in Umbraco 4.7 CMS,
configure some alternative links to page(section) it looks like.
If I look at
Link to document
/folder/folder2/page1.aspx - workig
Alternative Links
http://site.com/folder/folder2/page1.aspx - workig
http://site.com/en/folder/folder2/page1.aspx - not working
http://site.com/old-folder/folder2/page1.aspx - not working
but in browser just /folder/folder2/page1.aspx show a valid page other links redirect users to 404 page that configured in umbraco config file.
Have you considered using the UrlRewriting module to get this working. You could add a new rule similar to the following:
<add name="page1rewrite"
virtualUrl="^~/en/folder/folder2/page1.aspx"
rewriteUrlParameter="ExcludeFromClientQueryString"
destinationUrl="~/folder/folder2/page2.aspx"
ignoreCase="true" />
This could be further improved depending on your exact requirements but you could it you wanted rewrite all urls ~/en/folder/folder2/ to the new location.
An alternative option would be to use the umbracoUrlAlias document type property.
I have uploaded the nerddinner sample to "www.example.com/test/nerd". When a mouse is on menu tab such as "Find a host" then the link is shown at the bottom of Internet explorer as "www.example.com/test/nerd/Dinner" with the contoller name "Dinner". When the mouse is on the main logo which is on top and left, the link shown as "www.example.com". So it direct me to "www.example.com" instead of "www.example.com/test/nerd"
Where can I change it? I have tried to change the "start url" from the application property, but it did not work.
The NerdDinner application links to the / path when you click on the logo. This points you to the domain root: example.com.
If you want the link to point to your home page instead, there are two ways of doing that:
Have the link point to ~ instead - that's the application root. If you configure the directory you installed NerdDinner in as an IIS application, the controller action with the "" route will handle the request.
Change the <a href="/" to point to your controller action by name: <a href="<%= Url.Action("Index","Home") %>"
Both ways work, but I recommend using the first one, because it will point to whatever action is routed to ""; in other words, if you change the name of your home page action, for example, the link will still work.
This application assumes that is installed in the root of the domain, and therefore just contains the path "/". You'll need to edit NerdDinner/Views/Shared/Site.Master. The line you need to touch is
<h1></h1>
Try changing this to
<h1></h1>
I don't have ASP.NET set up anywhere I can try this, so it probably won't work as is. Hopefully that will at least get you started if it doesn't work perfectly.