Comments (13)
Example below - cut off the bottom so I didnt have to blur out my content tree
from our.umbraco.umbnav.
good catch - missing using statement - adding this to view fixed it:
@using UmbNav.Core.Extensions
Will buy you a beer at CG for your troubles :-)
from our.umbraco.umbnav.
Yes that's correct, you need to use the extension method
.Url()
from our.umbraco.umbnav.
that fails also (this is for type=link, not type=content) - see screenshot - am I missing a using that would make .Url() work?
from our.umbraco.umbnav.
Hmmm .Url() is in the UmbNav.Core DLL
It's been a long time since I've touched V1, I think link is for external URLs, I'd need to get a V8 site up and running to debug
from our.umbraco.umbnav.
I think link is for external URLs
Correct - this is only an issue for external url's - am assuming this is only coming up now as it's rare to have external url's in your top navigation where this package is likely mostly used?
from our.umbraco.umbnav.
Yeah I think that could be the case, I've done this and got it working in V10+ So I presume it's a bug specific to V8...
I'll do some digging...
Can you give me an example of the backoffice item, so I can be 100% sure I'm debugging it correctly
from our.umbraco.umbnav.
When debugging I can see .Url (string) populated under Non-Public Properties - so I think it's a matter of making .Url public but only when type=link - not sure who you'd do that
from our.umbraco.umbnav.
That was made internal for a specific reason, it broke things with the multilingual which is why the extension method was brought in... I will debug this and get back to you
from our.umbraco.umbnav.
That was made internal for a specific reason, it broke things with the multilingual which is why the extension method was brought in... I will debug this and get back to you
thanks - let me know if you need more info
from our.umbraco.umbnav.
I've just run V8 and it works for me:
These are the two usings:
@using UmbNav.Core.Extensions
@using UmbNav.Core.Models
Are you sure the Url()
you are using in your code is the UmbNav one?
Your error seems to say PublishedContentExtensions.Url()
whereas the UmbNav one is UmbNavItemExtensions.Url()
from our.umbraco.umbnav.
Just to add the UmbNav extension does a null check here:
and returns .Url if it is null here:
from our.umbraco.umbnav.
Glad you got it working!
from our.umbraco.umbnav.
Related Issues (20)
- Advanced settings remains when all settings disabled
- When there is any unpublished content, umbNav breaks: Failed to convert Meganav {ex} HOT 5
- Include Child Nodes toggle doesn't stick HOT 1
- Advanced Configuration include child nodes HOT 1
- Url not available on Link UmbNavItem HOT 6
- After the update UmbNav doesn't work HOT 5
- Sub navigation Not Displaying HOT 12
- trying to add multiple sub menu items to top Nav HOT 1
- Retrieve value from IVirtualPageController (?) does not work HOT 12
- Label item type does not render when at the top level HOT 8
- Non Content Link Url not accessiable in Views HOT 1
- Member Visibility isn't working HOT 4
- Clone/Fork repo - running test projects fails with `Unable to satisfy conflicting requests` dependency issue HOT 3
- Ability to show active class on a child page HOT 1
- Umbraco V13 support HOT 1
- What is the difference between versions? HOT 2
- Unhandled exception on new install of .Web to Umbraco 13.0.1 HOT 3
- Upgrade to U14 HOT 3
- Umbraco V14+ support HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from our.umbraco.umbnav.