Anybody know why the browser component extentions to pathparts don't work?
browser1.location.pathparts works fine: pages,somefolder,Browser_component.php
But all the extentions to partspath return nothing:
browser1.location.pathparts.count()
browser1.location.pathparts.join("|")
browser1.location.pathparts.last
browser1.location.pathparts.last(1)
browser1.location.pathparts.slice(1,3)
etc...
Is there an error in the browser console when you are using these expressions?
Maybe the formatter js file is missing from the page? If it is missing, make sure to generate any of these expressions using the UI (and the formatter option) so that on save the formatter js include will be added.
If the formatter include is on the page they work nicely:
Ah, I see.
I just copied the whole html source code from a post here on the forum for the complete browser component and pasted it in my page.
And added the browser component to my page.
You are right, something is missing; the page can't find certain methods:
I tried to add on manualy but I can't select anything deeper than the pathparts: