Page 1 of 1

Custom app developpement

Posted: Tue May 03, 2022 12:16 pm
by yonnak

I'm new to Mayan and Django.

I am developping a custom app to meet my requirements. I have a custom menu wich allow me to access custom views and templates.

I'm trying to display a document along with its metadatas in the same template but can not get it work.

Could someone point me in the right direction or provide some example code, please?

Thank you!

Re: Custom app developpement

Posted: Sun May 22, 2022 3:19 am
by cephstore
Can you post more information about what you are trying to accomplish? Maybe some mockups? Will help understand better.

Re: Custom app developpement

Posted: Tue May 24, 2022 1:06 pm
by yonnak
Hi, thank you for your help.

Here is my situation: the user have to flll some metadatas wich values are stored in the document. Once done he needs to launch the next transition of the workflow.

I'd like to have all of this in a single template: document preview, metadata edition form and, workflow transition button, like this:
customapp.png (133.88 KiB) Viewed 123 times
I can't inherit from both DocumentVersionPreviewView and DocumentMetadataEditView as, if I understand correctly, they share common functions definitions.

Is it possible to acheive something like that?

Re: Custom app developpement

Posted: Fri May 27, 2022 7:42 am
by cephstore
Your mockup looks like the upload wizard. Taking a look at the source upload wizard it seem the view type you need if the [MultiFormView:] and give it all the form classes you want to display. No idea how to change the layout though to get the left up and down display you need.

Also FYI, it good etiquette to post images directly in the forum and not in external links that could disappear in the future like all the images in the "Guides" topic.