"use strict";(self.webpackChunkfoo=self.webpackChunkfoo||[]).push([[581],{388:(e,t,n)=>{n.r(t),n.d(t,{assets:()=>d,contentTitle:()=>a,default:()=>p,frontMatter:()=>i,metadata:()=>l,toc:()=>c});var s=n(5893),r=n(1151);const i={sidebar_position:2,title:"Installation and upgrade"},a="Installation and upgrade",l={id:"setup",title:"Installation and upgrade",description:"Custom menu is available from the app store.",source:"@site/docs/setup.md",sourceDirName:".",slug:"/setup",permalink:"/side_menu_doc/docs/setup",draft:!1,unlisted:!1,editUrl:"https://github.com/facebook/docusaurus/tree/main/packages/create-docusaurus/templates/shared/docs/setup.md",tags:[],version:"current",sidebarPosition:2,frontMatter:{sidebar_position:2,title:"Installation and upgrade"},sidebar:"tutorialSidebar",previous:{title:"Screenshots",permalink:"/side_menu_doc/docs/screenshots"},next:{title:"How to replace Apporder?",permalink:"/side_menu_doc/docs/FAQ/apporder"}},d={},c=[{value:"Use first top menu app as default app",id:"use-first-top-menu-app-as-default-app",level:3}];function o(e){const t={a:"a",code:"code",h1:"h1",h3:"h3",p:"p",pre:"pre",table:"table",tbody:"tbody",td:"td",th:"th",thead:"thead",tr:"tr",...(0,r.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(t.h1,{id:"installation-and-upgrade",children:"Installation and upgrade"}),"\n",(0,s.jsxs)(t.p,{children:["Custom menu is available from the ",(0,s.jsx)(t.a,{href:"https://apps.nextcloud.com/apps/side_menu",children:"app store"}),"."]}),"\n",(0,s.jsxs)(t.table,{children:[(0,s.jsx)(t.thead,{children:(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Version"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Nextcloud"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"PHP"}),(0,s.jsx)(t.th,{style:{textAlign:"center"},children:"Other"})]})}),(0,s.jsxs)(t.tbody,{children:[(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"3.x"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:">= 25"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"PHP >= 8.0"}),(0,s.jsxs)(t.td,{style:{textAlign:"center"},children:["App ",(0,s.jsx)(t.code,{children:"theming"})," enabled"]})]}),(0,s.jsxs)(t.tr,{children:[(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"2.x"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"< 25"}),(0,s.jsx)(t.td,{style:{textAlign:"center"},children:"PHP >= 7.1"}),(0,s.jsxs)(t.td,{style:{textAlign:"center"},children:["App ",(0,s.jsx)(t.code,{children:"theming"})," enabled"]})]})]})]}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-bash",children:"cd /path/to/nextcloud\nphp occ app:install side_menu\n"})}),"\n",(0,s.jsxs)(t.p,{children:["If you want to install it from source, go to ",(0,s.jsx)(t.a,{href:"https://gitnet.fr/deblan/side_menu/releases",children:"https://gitnet.fr/deblan/side_menu/releases"})," and copy the link to the last release (side_menu_vX.Y.Z.tar.gz). Then:"]}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{children:"cd /path/to/nextcloud/apps\ncurl -sS https://gitnet.fr/attachments/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx | tar xvfz -\n"})}),"\n",(0,s.jsx)(t.p,{children:"Administrators can edit many settings using the administration page."}),"\n",(0,s.jsx)(t.p,{children:"Users can disable the menu using the page of personal settings."}),"\n",(0,s.jsx)(t.h3,{id:"use-first-top-menu-app-as-default-app",children:"Use first top menu app as default app"}),"\n",(0,s.jsxs)(t.p,{children:["You can easily let Custom Menu redirect to the first app in the top menu by changing the following parameter in your ",(0,s.jsx)(t.code,{children:"config/config.php"}),":"]}),"\n",(0,s.jsx)(t.pre,{children:(0,s.jsx)(t.code,{className:"language-php-inline",children:"'defaultapp' => 'side_menu',\n"})}),"\n",(0,s.jsx)(t.p,{children:"If the top menu is empty then it redirects to files."})]})}function p(e={}){const{wrapper:t}={...(0,r.a)(),...e.components};return t?(0,s.jsx)(t,{...e,children:(0,s.jsx)(o,{...e})}):o(e)}},1151:(e,t,n)=>{n.d(t,{Z:()=>l,a:()=>a});var s=n(7294);const r={},i=s.createContext(r);function a(e){const t=s.useContext(i);return s.useMemo((function(){return"function"==typeof e?e(t):{...t,...e}}),[t,e])}function l(e){let t;return t=e.disableParentContext?"function"==typeof e.components?e.components(r):e.components||r:a(e.components),s.createElement(i.Provider,{value:t},e.children)}}}]);