Building an App in SharePoint Online -
i have client wanted easier way team members build/update pages on site, site heavily customized lot of javascript. issues when team member wanted add new section page had consult dev person hard code in desired features. decided create customizable web parts of features making site more self-serviceable.
when first started found documentation said use visual studios build web part using sandbox code, upload site , need activate deploy on site. buuut unbeknownst me code based sandbox solutions no longer supported in sharepoint , therefore web parts built not deployed. told needed build add-in, started building add-ins found customizable field properties (i.e. ability change background color, text style/color , banner color) want not implementable add-ins.
so i’m @ square 1 , don’t know if it’s possible build web part add-in or need go different route?
any thoughts or links sources can provide hugely appreciated!
thanks terek
in sharepoint 2016 things have changed lot traditional model classic way of building web parts. way worked before called "classic", new way called "modern", , way dev environment following (brace yourself, long answer):
1) in sp2016/online need configure dev machine following environment, installing following:
- nodejs long term support version
- yeoman (which used create web parts)
gulp (which play role of virtual web server)
once 3 components above installed, install yeoman sharepoint generator create sharepoint web parts, yeoman simplifies process of creating things delivering templates ready use , making configurations standard, gonna love guy!
to configure machine see following link: https://dev.office.com/sharepoint/docs/spfx/set-up-your-development-environment
2) in sp2016/sp online, develop spfx (sharepoint framework), microsoft has made significant efforts address changes , developers embark on new journey publishing training , educational material @ github, youtube, , on official website (i add link below), purpose of helping you, please follow tutorial, helped me learn how develop modern web parts sp 2016/online:
https://dev.office.com/sharepoint/docs/spfx/web-parts/get-started/build-a-hello-world-web-part
3) tutorial above, functional modern web part can deployed sp2016/online, see new modern architecture allows old experience of "sandboxing" web parts in faster way without, solving problem of constant updating/refactoring components in live production environment. way allows update code , see results in real-time , able see results on dev environment calling: https://localhost:4321/temp/workbench.html , @ same time on sp environment. example: http://portal.company.com/_layouts/workbench.aspx
links:
youtube "sharepoint framework tutorials" - step step tutorial video showing whole process of creating web part:
https://www.youtube.com/playlist?list=plr9nk3mnd-oxvswvs2zglczz4iplhvrkq
github repository full documentation, samples , extras spfx , pnp (this story time):
i hope helps you!
Comments
Post a Comment