|
7 | 7 | "source": [
|
8 | 8 | "# Introduction to Enterprise Sites features\n",
|
9 | 9 | "\n",
|
10 |
| - "ArcGIS Enterprise Sites allows you to create a tailored web page experience for your users to help you share your portal's authoritative GIS data to other departments more easily, even if they are not used to working in your GIS. Instead of learning to navigate the portal and access groups, members can go directly to the custom web page you create to navigate the content relevant to them. Click [here](https://enterprise.arcgis.com/en/sites/) to learn more about Enterprise Sites.\n", |
| 10 | + "ArcGIS Enterprise Sites allows you to create a tailored web page experience for your users by allowing you to share your portal's authoritative GIS data to other departments more easily, even if they are not used to working in your GIS. Instead of learning to navigate the portal and access groups, members can go directly to the custom web page you create to navigate the content relevant to them. Click [here](https://enterprise.arcgis.com/en/sites/) to learn more about Enterprise Sites.\n", |
11 | 11 | "\n",
|
12 |
| - "Note: The pattern to add, search, get, update, delete `Sites` and `Pages` is identical to that of __Initiatives__ (insert link to premium nb) as demonstrated here. \n", |
| 12 | + "Note: The pattern to add, search, get, update and delete `Sites` and `Pages` is identical to that of __Initiatives__ (insert link to premium nb) as demonstrated here. \n", |
13 | 13 | "\n",
|
14 |
| - "In this notebook we will take a look at examples to\n", |
15 |
| - "* Create site with custom domain and pages\n", |
16 |
| - "* Edit site theme\n", |
17 |
| - "* Edit page layout" |
| 14 | + "In this notebook, we will demonstrate how to\n", |
| 15 | + "* Create a site with a custom domain and pages\n", |
| 16 | + "* Edit a site's theme\n", |
| 17 | + "* Edit a site's page layout" |
18 | 18 | ]
|
19 | 19 | },
|
20 | 20 | {
|
|
32 | 32 | "id": "696a104d",
|
33 | 33 | "metadata": {},
|
34 | 34 | "source": [
|
35 |
| - "We will sign into an ArcGIS Enterprise organization to demonstrate these workflows. We can work with Enterprise Sites using the `sites` property of the `GIS` object. \n", |
| 35 | + "First, we will sign into an ArcGIS Enterprise organization to demonstrate these workflows. We can work with Enterprise Sites using the `sites` property of the `GIS` object. \n", |
36 | 36 | "\n",
|
37 | 37 | "Note: This workflow is for demonstration purposes only. To replicate this, you may have to sign-in to an ArcGIS Enterprise organization you have access to.\n",
|
38 | 38 | "\n",
|
39 |
| - "Here are examples for working with Initiatives and Events using __ArcGIS Premium__ (insert live URL) and site and page creation and cloning using __ArcGIS Basic__ (insert live URL) to see other ways of working with your Hub using the ArcGIS API for Python. " |
| 39 | + "Here are examples for working with Initiatives and Events using __ArcGIS Premium__ (insert live URL) and site and page creation and cloning using __ArcGIS Basic__ (insert live URL) that demonstrate other ways of working with your Hub using the ArcGIS API for Python. " |
40 | 40 | ]
|
41 | 41 | },
|
42 | 42 | {
|
|
188 | 188 | "id": "842b184b",
|
189 | 189 | "metadata": {},
|
190 | 190 | "source": [
|
191 |
| - "We fetch the value for the `background` color for this site theme, to change it." |
| 191 | + "Next, we fetch the value for the `background` color for this site theme to change it." |
192 | 192 | ]
|
193 | 193 | },
|
194 | 194 | {
|
|
274 | 274 | "\n",
|
275 | 275 | "The Site Editor provides a user with several capabilities in the form of __cards__ to simplify their site building and editing workflows. However, applying a common change to multiple sites and pages in your organization can become a tedious process.\n",
|
276 | 276 | "Using the site layout editing functionality supported in the Python API, you can successfully apply a common change across all the necessary sites and pages. \n",
|
277 |
| - "In order to programmatically edit a site, we need to take a deeper dive into the data model of a Site/Page item. The site layout has __Sections__ which contain __Rows__ within, and the row contain __Cards__ within. \n", |
278 |
| - "Sections have configurable attributes such as background color and font-color and are used to theme a site or page. Rows are the building blocks of your site are implicitly created when you add a card to a section below another card. Whenever you want to add a card, such as a text card or image card, you must have a row card positioned where you want to add the content. Multiple cards can fit in a row card.\n", |
| 277 | + "In order to programmatically edit a site, we need to take a deeper dive into the data model of a Site/Page item. The site layout has __Sections__ that contain __Rows__, and the rows further contain __Cards__. \n", |
| 278 | + "Sections have configurable attributes, like background color and font-color, and are used to theme a site or page. Rows are the building blocks of your site and are implicitly created when you add a card to a section below another card. Whenever you want to add a card, such as a text card or image card, you must have a row card positioned where you want to add that content. Multiple cards can fit in a row card.\n", |
279 | 279 | "\n",
|
280 | 280 | ""
|
281 | 281 | ]
|
|
285 | 285 | "id": "ac17fa13",
|
286 | 286 | "metadata": {},
|
287 | 287 | "source": [
|
288 |
| - "We will see an example each of editing the layout of this site and its page. \n", |
| 288 | + "Next, we will see an example of how to edit each aspect of the layout of this site and its page. \n", |
289 | 289 | "\n",
|
290 | 290 | "The process is similar to editing the theme of the site. We fetch the layout of the site/page, make the required changes and commit them using the `update_layout()` method. "
|
291 | 291 | ]
|
|
313 | 313 | "id": "4a33646b",
|
314 | 314 | "metadata": {},
|
315 | 315 | "source": [
|
316 |
| - "You can access the nested sections, rows and cards of the layout as follows:" |
| 316 | + "You can access the nested sections, rows and cards of the layout as shown below." |
317 | 317 | ]
|
318 | 318 | },
|
319 | 319 | {
|
|
342 | 342 | "id": "01d0d218",
|
343 | 343 | "metadata": {},
|
344 | 344 | "source": [
|
345 |
| - "To add a new card you update the cards list - for the row within the section - with the dictionary for the new card.\n", |
| 345 | + "To add a new card, you must update the cards list for the row within the section with the dictionary for the new card.\n", |
346 | 346 | "\n",
|
347 |
| - "We start by first accessing the row of interest we would like to add the new card to." |
| 347 | + "First, we will access the row we want to add the new card to." |
348 | 348 | ]
|
349 | 349 | },
|
350 | 350 | {
|
|
373 | 373 | "id": "0bdb72ce",
|
374 | 374 | "metadata": {},
|
375 | 375 | "source": [
|
376 |
| - "The 1st row of 2nd section has 1 text card. We will now add another text card." |
| 376 | + "The first row of second section has 1 text card. We will now add another text card." |
377 | 377 | ]
|
378 | 378 | },
|
379 | 379 | {
|
|
408 | 408 | "id": "e4a57e25",
|
409 | 409 | "metadata": {},
|
410 | 410 | "source": [
|
411 |
| - "Let's publish these changes and verify them on the site." |
| 411 | + "Now, we publish these changes and verify them on the site." |
412 | 412 | ]
|
413 | 413 | },
|
414 | 414 | {
|
|
449 | 449 | "source": [
|
450 | 450 | "### Deleting a card from the page\n",
|
451 | 451 | "\n",
|
452 |
| - "We will now delete the red text card from the page that reads \"Where we're going\". We first fetch the layout of the page, delete the card from the layout and publish the changes.\n", |
| 452 | + "We will now delete the red text card from the page that reads \"Where we're going\". To do this, we fetch the layout of the page, delete the card from the layout, and publish the changes.\n", |
453 | 453 | "\n",
|
454 | 454 | ""
|
455 | 455 | ]
|
|
490 | 490 | "id": "863d2295",
|
491 | 491 | "metadata": {},
|
492 | 492 | "source": [
|
493 |
| - "We delete this card from the row." |
| 493 | + "Next, we delete the card from the row." |
494 | 494 | ]
|
495 | 495 | },
|
496 | 496 | {
|
|
0 commit comments