Nuxeo customization

Hi

I am struck on a problem its been many days now.The problem is i created one project and configured global search form through nuxeo studio later my studio got expired now what i am trying to do is to change the labels of the form that i created through xmls. I downloaded the jar file and did some changes(changed the labels) in OSGI-INF extensions.xml. After doing changes i simply replace the old bundle of my project in /var/lib/nuxeo/server/nxserver/bundles with this new bundle.After replacing when i go to nuxeo plateform and update it i cant find the changes. Infect when i download the project bunndle from /var/lib/nuxeo/server/nxserver/bundles after updating the platform, the changes that i made before updation have been replaced with old configurations. what should i do. It would be really great if some one can help me.M really struck and cant find way out!

0 votes

0 answers

118 views

ANSWER

Not sure what's happening with your jar there, but can you try this approach: get your original project package from /opt/nuxeo/server/tmp/ (instead of /var/lib/nuxeo/server/nxserver/bundles), do the field label adjustments based on that package (unzip it / give it a zip extension if you like), then repackage it, (remove the .zip extension again) and upload it via Nuxeo JSF UI > Admin > Update Center > Local Packages. Does it work?
02/07/2017

Hi First thank you so much for your reply. I tried that it worked but still there is one problem when i upload the package i can see the changes but when i click on update button from update center all my changes are gone and it shows me previous version of my package.How can i persist those changes even after update.
02/07/2017

I think some default template is overwriting my changes after update.
02/07/2017

Why would you want to click the 'update' button in the first place, if your Studio is already expired anyway?
02/07/2017

well,i am uploading files on the basis of rest api through .net client in order to see the uploaded file which i pushed from api i need to update as well.that was the reason why i just updated it. other wise it works fine.
02/07/2017

Not completely getting what you're doing. Which API endpoint are you calling from your .NET client? And under which tab would you want to see which files to update? Admin > Update Center > Local Packages? And which "update" button did you press - the one under the "Nuxeo Studio" tab? If no valid subscription and not using the Studio, then that tab should not be used at all. And just to confirm, you are talking about the "update" button, not any "upgrade" button, right? But glad it works otherwise.
02/07/2017

First of all mathias thank you so much for your time.I will tell you in detail what i am doing. My task is to test nuxeo how it works how we can customize is with out studio. In the beginning i had studio trial version so what i did was created a document type having my custom fields which i made through studio. I can see my document type in my work space. After that i had an api which was returning me documents in json format.I simply get data from my api and uploaded those documents using post end point in the document type i created earlier. Next step was to search those documents through my own custom search which i created through studio. I simply created customized search form according to my uploaded documents. In the mean while my studio got expired. Now i wanted to customize my search without studio. This is where i was struck. First i was changing in metadata/globalsearch.xml then i got to know that nuxeo proceses only OGINF/EXTENSION files.So now i am changing it and thanks to you that you healped. I dont think i need to update the platform like you said if my studio is expired. But any ways thats the whole thing i am doing. It would be really great if you can guide me a bit whether m doing it right . All the customizations that i needed to do should be done In OSGI-INF/extensions.xml am i right with that ?
02/07/2017

I got confused with the forums as well in which they said we have to change deployemnt.fragment and i require the give the bundle name in the require tag.I simply want to play around with ui right now. May be add some more fields ,widgets etc For this i thing i would need to just change the required xmls right?I just want to customize the ui stuff for now thats it.
02/07/2017

I am fairly new to the Nuxeo platform myself. Did you check the documentation as well as the university classes (https://university.nuxeo.com/)? The university is a good starting point. It also covers extension and customization, mainly though with use of the Studio. Not sure about the details for the customization without Studio yet, will need to look into that at some point as well, but at the moment, I am still using my Studio trial.
02/07/2017