Icon to new Virtual Navigation Tab

View: New views
3 Messages — Rating Filter:   Alert me  

Icon to new Virtual Navigation Tab

by jiveforums-ecm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello,

I have  created a new Tab for Virtual Navigation through my own vocabulary (On top left of Nuxeo, next to By Coverage and Subject virtual Navigation), and I don't know how to add an icon to this Tab. I have looked for in Nuxeo code to see how it does for the Coverage and Subject tabs but, although I have found their icons included in a Folder called "img", I have not found any piece of code where they are inserted (it seems they are only named in +/nuxeo-features/.hg/store/fncache+ file). I have created my "img" Folder and included there the icon, but Nuxeo do not take it. Probably this is an easy question, but I have not got it :-). Does any one know how to do this?

Thanks in advance,
Francisco
--
Posted by "franciscogonzalez" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=3001#8829>
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Re: Icon to new Virtual Navigation Tab

by jiveforums-ecm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think you should have a look at nuxeo-features/nuxeo-platform-virtualnavigation-web/src/main/resources/nuxeo.war/incl/tree_explorer_with_virtual_nav.xhtml
The images are loaded in this way:
<nxu:graphicImage value="img/#{tree.treeId}.png" title="#{messages[docList.title]}" />
So you should have a PNG image in img folder named #{tree.treeId}.png, where #{tree.treeId} is the name of your new defined contribution for the org.nuxeo.ecm.webapp.directory.DirectoryTreeService
--
Posted by "cbaican" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=3001#8830>
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm

Re: Icon to new Virtual Navigation Tab

by jiveforums-ecm :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It works, Thanks a lot!!!

The problem was I had a little mistake in my image name, it was not exactly equal to my directoryTree name. Besides, I didn't know where Nuxeo loaded these icons, so thank you again.
--
Posted by "franciscogonzalez" at Nuxeo Discussions <http://nuxeo.org/discussions>
View the complete thread: <http://www.nuxeo.org/discussions/thread.jspa?threadID=3001#8831>
_______________________________________________
ECM mailing list
ECM@...
http://lists.nuxeo.com/mailman/listinfo/ecm
To unsubscribe, go to http://lists.nuxeo.com/mailman/options/ecm