I am running a site with Umbraco 4.5.2 and I have managed to create a custom section that has three nodes which display some aspx pages. All seems to be ok when I first go into the custom section, it creates the nodes as follows:
Adverts - Advertisers - Campaigns - Reporting
The issue comes when I click on another section such as the media section, then I come back to my custom section, it then displays the names as follows:
If I was to then refresh my browser it would return to normal until I start moving between sections again, does anyone know what could be causing this? I have very little asp.net knowledge so it is likely that there is something wrong with my code which is as follows:
Yeah, I pinged someone about this a while back, but it looks like it hasn't been fixed yet, make sure to create a codeplex issue for this. It seemed to happen to me after I installed Contour, but that isn't necessarily related.
And then lets say I have another list of nodes (or subnodes from a node) of which by chance one has the same NodeId (for example because it uses a databasetabel rowID):
xNode.NodeID = tableRow.id ;
Then the names will go funny.
So you should try to use absolutely unique NodeID's.
-----
You could also use random text as a nodeID, for example:
sNode.NodeID = "nodeID1";
The problem would then be that you cannot use the Delete button in the menu. (of course you should first create an iTaskReturnUrl class to use the delete function) The problem in my understanding is that the nodeID gets parsed to an integer (the ParentID integer in your iTaskReturnUrl class). If that fails, the button wont know which node you want to delete.
So, thats as far as i have come. Its definitely a bug. You can circle around it by using absolutely unique numbers for nodeId's, but of course, this is not always easy, for example when you're iterating multiple database tables with the nodeId's being their primary key records.
I have this problem after upgrading to Umbraco 6.1.1 (assembly version 1.0.4901.15961 build 4 as of June 9, 2013). Simply browsing the Media folder (in the Umbraco UI), node names get longer and longer throughout a session, tacking on versions of themselves. See attached screencap, where under "accord", nodes should just be:
Martin you're a level beyond me for sure; we just use the default Umbraco UI, I haven't written node definition code or classes. So within the normal unaltered UI, the media nodes repeat like that. It's something that just started happening after upgrading to Umbraco 6, and has hung along through 6.1.1.
I think my question's more likely a bug report for that upgrade package or something; I know it was supposed to be fixed in the 6.1.1 build 4 package, but hasn't resolved yet.
Custom section node names repeating themselves
Hi,
I am running a site with Umbraco 4.5.2 and I have managed to create a custom section that has three nodes which display some aspx pages. All seems to be ok when I first go into the custom section, it creates the nodes as follows:
Adverts
- Advertisers
- Campaigns
- Reporting
The issue comes when I click on another section such as the media section, then I come back to my custom section, it then displays the names as follows:
Adverts
- AdvertisersCampaignsReporting
- AdvertisersCampaignsReporting
- AdvertisersCampaignsReporting
All the nodes work correctly still it is just the names that have gone funny, if I click on a different section again and then come back I get:
Adverts
- AdvertisersCampaignsReportingAdvertisersCampaignsReportingAdvertisersCampaignsReporting
- AdvertisersCampaignsReportingAdvertisersCampaignsReportingAdvertisersCampaignsReporting
- AdvertisersCampaignsReportingAdvertisersCampaignsReportingAdvertisersCampaignsReporting
If I was to then refresh my browser it would return to normal until I start moving between sections again, does anyone know what could be causing this? I have very little asp.net knowledge so it is likely that there is something wrong with my code which is as follows:
Yeah, I pinged someone about this a while back, but it looks like it hasn't been fixed yet, make sure to create a codeplex issue for this. It seemed to happen to me after I installed Contour, but that isn't necessarily related.
I read somewhere that it has to do with unique (parsable) NodeIDs from your treeNodes.
Lets say I create the following node
And then lets say I have another list of nodes (or subnodes from a node) of which by chance one has the same NodeId (for example because it uses a databasetabel rowID):
Then the names will go funny.
So you should try to use absolutely unique NodeID's.
-----
You could also use random text as a nodeID, for example:
The problem would then be that you cannot use the Delete button in the menu. (of course you should first create an iTaskReturnUrl class to use the delete function) The problem in my understanding is that the nodeID gets parsed to an integer (the ParentID integer in your iTaskReturnUrl class). If that fails, the button wont know which node you want to delete.
So, thats as far as i have come. Its definitely a bug. You can circle around it by using absolutely unique numbers for nodeId's, but of course, this is not always easy, for example when you're iterating multiple database tables with the nodeId's being their primary key records.
In your case I see you havent used NodeId's at all.
try adding that. (according to my code above)
I solved the deleting problem by giving stripping off the text to make the node unique in the delete event like this:
After setting the NodeID like this:
The 'Alias' property contains a string representation of my node.NodeID.
I am not aware of any unwanted side-effects so far.
Ah, found that out too, last month.
If you use an integer, it will get saved in the ParentID property.
If you use a string like you just did, it will get saved in the Alias property.
so lets put this topic to solved.
I ran into the same problem, solving it like thanks to your posts.
Ah this is also a smart approach.
You mean that in this way the NodeID will be different every second, and therefore the nodenames will not repeat?!
Too bad umbraco 5 is totally different :-)
Martin
I have this problem after upgrading to Umbraco 6.1.1 (assembly version 1.0.4901.15961 build 4 as of June 9, 2013). Simply browsing the Media folder (in the Umbraco UI), node names get longer and longer throughout a session, tacking on versions of themselves. See attached screencap, where under "accord", nodes should just be:
accord
2002059Council
20020206100
2002061Council
...
hi eric,
dit you take my advice in the earlier posts? it still works for me, also in umbraco 6.
could you post your node definition code and itaskreturnurl class?
martin
Martin you're a level beyond me for sure; we just use the default Umbraco UI, I haven't written node definition code or classes. So within the normal unaltered UI, the media nodes repeat like that. It's something that just started happening after upgrading to Umbraco 6, and has hung along through 6.1.1.
I think my question's more likely a bug report for that upgrade package or something; I know it was supposed to be fixed in the 6.1.1 build 4 package, but hasn't resolved yet.
is working on a reply...