Pagine¶
Odoo consente di creare pagine per il sito web e personalizzarne il contenuto e l’aspetto in base alle proprie esigenze.
Static pages have stable content, such as the homepage. You can manually create new ones, define
their URLs, adapt their properties, etc. Dynamic pages, on the
other hand, are generated dynamically. All pages generated automatically by Odoo, for example, when
you install an app or module (e.g., /shop or /blog) or publish a new product or blog post, are
dynamic pages and are therefore managed differently.
Creazione di pagine¶
Le pagine del sito web possono essere create dal frontend e dal backend. Per creare una nuova pagina del sito web, procedere come segue:
Aprire l’app Sito web, fare clic su + Nuovo nell’angolo in alto a destra, quindi selezionare Pagina;
Oppure vai a e fai clic su Nuovo.
Inserire un Titolo della pagina; questo titolo viene utilizzato nel menu e nell’URL della pagina.
Fai clic su Crea.
Customize the page’s content and appearance using the website builder, then click Save.
Publish the page.
Nota
Disattiva Aggiungi al menu se la pagina non deve apparire nel menu.
Gestione delle pagine¶
Pubblicazione/annullamento della pubblicazione delle pagine¶
Pages need to be published to make them accessible to website visitors. To publish or unpublish a page, access it and toggle the switch in the upper-right corner from Unpublished to Published, or vice versa.
Nota
È anche possibile:
publish/unpublish a page from the page properties, where you can define a publishing date and/or restrict the page’s visibility if needed;
publish/unpublish several pages at once: go to , select the pages, then click Action and select Publish or Unpublish.
Pagina principale¶
When you create a website, Odoo creates a dedicated Home page by default, but you can
define any website page as your homepage. To do so, go to , then, in the Website info section, define the URL of the desired page in
the field Homepage URL (e.g., /shop).
Alternatively, you can define any static page as your homepage by going to . Select the Publish tab and enable Use as Homepage.
Proprietà della pagina¶
To modify a static page’s properties, access the page you wish to modify, then go to .
The Name tab allows you to:
rename the page using the Page Name field;
modify the Page URL. In this case, you can redirect the old URL to the new one if needed. To do so, enable Redirect Old URL, then select the Type of redirection:
301 Moved permanently: to redirect the page permanently;
302 Spostato temporaneamente: per reindirizzare la pagina temporaneamente.
You can further adapt the page’s properties in the Publish tab:
Show in Top Menu: Disable if you don’t want the page to appear in the menu;
Use as Homepage: Enable if you want the page to be the homepage of your website;
Indexed: Disable if you don’t want the page to be shown in search engine results;
Published: Enable to publish the page;
Publishing Date: To publish the page at a specific moment, select the date, click the clock icon to set the time, then click the green check mark to validate your selection.
Visibilità: seleziona chi può accedere alla pagina:
All
Signed In
Gruppo con restrizioni: seleziona i gruppi di accesso utente nel campo Gruppo autorizzato.
With Password: Enter the password in the Password field.
Suggerimento
Some of these properties can also be modified from .
Duplicare le pagine¶
To duplicate a page, access the page, then go to and click Duplicate Page. Enter a Page Name, then click OK. By default, the new page is added after the duplicated page in the menu, but you can remove it from the menu or change its position using the menu editor.
Eliminare le pagine¶
Per eliminare una pagina, procedi come segue:
Accedi alla pagina, quindi vai a e fai clic su Elimina pagina.
A pop-up window appears on the screen with all links referring to the page you want to delete, organized by category. To ensure website visitors don’t land on a 404 error page, you must update all the links on your website referring to the page. To do so, expand a category, then click on a link to open it in a new window. Alternatively, you can set up a redirection for the deleted page.
Once you have updated the links (or set up a redirection), select the I am sure about this check box, then click OK.
Mappatura dei reindirizzamenti URL¶
URL redirect mapping consists in sending visitors and search engines to a URL different from the one they initially requested. This technique is used, for example, to prevent broken links when you delete a page, modify its URL, or migrate your site from another platform to an Odoo domain. It can also be used to improve Ottimizzazione per i motori di ricerca (SEO).
Per accedere ai reindirizzamenti URL esistenti e crearne di nuovi, attiva la modalità sviluppatore e vai a .
Nota
A redirect record is added automatically every time you modify a page’s URL and enable Redirect Old URL.
You can set up redirections for static and dynamic pages.
Per creare un nuovo reindirizzamento, fai clic sul pulsante Nuovo, quindi compila i campi:
Nome: inserisci un nome per identificare il reindirizzamento.
Azione: seleziona il tipo di reindirizzamento:
404 Non trovato: i visitatori vengono reindirizzati a una pagina di errore 404 quando tentano di accedere a una pagina non pubblicata o eliminata.
301 Moved Permanently: for permanent redirections of unpublished or deleted static pages. The new URL is shown in search engine results, and the redirect is cached by browsers.
302 Spostato temporaneamente: per reindirizzamenti a breve termine, ad esempio se stai riprogettando o aggiornando una pagina. Il nuovo URL non viene né memorizzato nella cache dai browser né mostrato nei risultati dei motori di ricerca.
308 Redirect/Rewrite: for permanent redirections of existing dynamic pages. The URL is renamed; the new name is shown in search engine results and is cached by browsers. Use this redirect type to rename a dynamic page, for example, if you wish to rename
/shopinto/market.
URL from: Enter the URL to be redirected (e.g.,
/about-the-company) or search for the desired dynamic page and select it from the list.URL a: per i reindirizzamenti 301, 302 e 308, inserisci l’URL di destinazione. Se desideri reindirizzare a un URL esterno, includi il protocollo (ad es.
https://).Sito web: seleziona un sito web specifico.
Sequenza: per definire l’ordine in cui vengono eseguiti i reindirizzamenti, ad esempio nel caso di catene di reindirizzamento (ovvero una serie di reindirizzamenti in cui un URL viene reindirizzato a un altro, che a sua volta viene ulteriormente reindirizzato a un altro URL).
Attiva l’interruttore Attiva per disattivare il reindirizzamento.
Importante
404, 301, and 302 redirections are meant to migrate traffic from unpublished or deleted pages to new pages, while the 308 redirect is used for permanent redirections of existing pages.
Vedi anche