Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Can you default the Edit Contribution Webpart to edit mode? View modes: 
User avatar
Member
Member
matt-awg - 12/10/2013 1:49:12 PM
   
Can you default the Edit Contribution Webpart to edit mode?
Does anyone know if there is a way to make it so when the page loads with an Edit Contribution Webpart, you can make the webpart start in edit mode? Right now it just loads a link the user has to click to bring up the form to edit the document. I was thinking I can probably do something with a javascript that basically clicks the button for them on page load but that is not a very elegant solution (if it will even work). It seems like there must be a setting or something I am missing here.
Thanks!

User avatar
Member
Member
kentico_sandroj - 12/10/2013 5:10:30 PM
   
RE:Can you default the Edit Contribution Webpart to edit mode?
Hi Matt,

Would it be possible to confirm which development model you are using? If it is ASPX I might have some suggestions for doing it in code but if it is Portal Engine your JavaScript solution may be the best option. In either approach you could clone and customize the Web part to load only the edit form if that is an option.

Please let me know if you have any questions.

Best Regards,
Sandro

User avatar
Member
Member
matt-awg - 12/11/2013 7:36:01 AM
   
RE:Can you default the Edit Contribution Webpart to edit mode?
Thanks Sandro... I had the same idea of cloning the web part. All it took was changing visible=false to visible=true in the ASPX page. I may want to customize a few more things anyway.
Thanks again.

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 12/12/2013 7:26:56 AM
   
RE:Can you default the Edit Contribution Webpart to edit mode?
Matt,

Aside from what was also mentioned you might add those properties as public properties in code and define them in your newly created custom webpart so you can set them later without having to modify code again.

Brenden

User avatar
Member
Member
matt-awg - 12/13/2013 2:43:06 PM
   
RE:Can you default the Edit Contribution Webpart to edit mode?
Hi Brenden,
That is exactly what I did and I added several other properties for other things I want to customize.
Thanks,
Matt