|
9 | 9 | "\n",
|
10 | 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 and 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](../guide/hub-for-guide-premium) as demonstrated here. \n", |
13 | 13 | "\n",
|
14 | 14 | "In this notebook, we will demonstrate how to\n",
|
15 | 15 | "* Create a site with a custom domain and pages\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) that demonstrate 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](../guide/hub-for-guide-premium) and site and page creation and cloning using [ArcGIS Basic](../guide/hub-for-guide-basic) that demonstrate other ways of working with your Hub using the ArcGIS API for Python. " |
40 | 40 | ]
|
41 | 41 | },
|
42 | 42 | {
|
|
54 | 54 | }
|
55 | 55 | ],
|
56 | 56 | "source": [
|
57 |
| - "gis_portal = GIS(\"https://rpubs22001.ags.esri.com/portal/home/\", \"creator1\")" |
| 57 | + "gis_portal = GIS(profile='your_enterprise_profile')" |
58 | 58 | ]
|
59 | 59 | },
|
60 | 60 | {
|
61 | 61 | "cell_type": "code",
|
62 |
| - "execution_count": 3, |
| 62 | + "execution_count": 4, |
63 | 63 | "id": "5d3bb436",
|
64 | 64 | "metadata": {},
|
65 | 65 | "outputs": [
|
|
68 | 68 | "text/html": [
|
69 | 69 | "<div class=\"item_container\" style=\"height: auto; overflow: hidden; border: 1px solid #cfcfcf; border-radius: 2px; background: #f6fafa; line-height: 1.21429em; padding: 10px;\">\n",
|
70 | 70 | " <div class=\"item_left\" style=\"width: 210px; float: left;\">\n",
|
71 |
| - " <a href='https://rpubs22001.ags.esri.com/portal/home//home/item.html?id=99c495bf38684dada961ac3de50a9e19' target='_blank'>\n", |
| 71 | + " <a href='https://rpubs22001.ags.esri.com/portal/home//home/item.html?id=a6d496adc7fc4be39ee1990c30380b23' target='_blank'>\n", |
72 | 72 | " <img src='https://rpubs22001.ags.esri.com/portal/home//portalimages/desktopapp.png' class=\"itemThumbnail\">\n",
|
73 | 73 | " </a>\n",
|
74 | 74 | " </div>\n",
|
75 | 75 | "\n",
|
76 | 76 | " <div class=\"item_right\" style=\"float: none; width: auto; overflow: hidden;\">\n",
|
77 |
| - " <a href='https://rpubs22001.ags.esri.com/portal/home//home/item.html?id=99c495bf38684dada961ac3de50a9e19' target='_blank'><b>Portal Python Site</b>\n", |
| 77 | + " <a href='https://rpubs22001.ags.esri.com/portal/home//home/item.html?id=a6d496adc7fc4be39ee1990c30380b23' target='_blank'><b>Portal Python Site</b>\n", |
78 | 78 | " </a>\n",
|
79 |
| - " <br/><img src='https://rpubs22001.ags.esri.com/portal/home//home/js/jsapi/esri/css/images/item_type_icons/layers16.png' style=\"vertical-align:middle;\">Site Application by creator1\n", |
80 |
| - " <br/>Last Modified: December 14, 2022\n", |
| 79 | + " <br/><img src='https://rpubs22001.ags.esri.com/portal/home//home/js/jsapi/esri/css/images/item_type_icons/layers16.png' style=\"vertical-align:middle;\" width=16 height=16>Site Application by creator1\n", |
| 80 | + " <br/>Last Modified: July 07, 2023\n", |
81 | 81 | " <br/>0 comments, 0 views\n",
|
82 | 82 | " </div>\n",
|
83 | 83 | " </div>\n",
|
|
87 | 87 | "<Item title:\"Portal Python Site\" type:Site Application owner:creator1>"
|
88 | 88 | ]
|
89 | 89 | },
|
90 |
| - "execution_count": 3, |
| 90 | + "execution_count": 4, |
91 | 91 | "metadata": {},
|
92 | 92 | "output_type": "execute_result"
|
93 | 93 | }
|
94 | 94 | ],
|
95 | 95 | "source": [
|
96 |
| - "portal_site = gis_portal.sites.add('Portal Python Site', subdomain='site-in-python')\n", |
| 96 | + "portal_site = gis_portal.sites.add('Portal Python Site', subdomain='site-in-python-new')\n", |
97 | 97 | "portal_site.item"
|
98 | 98 | ]
|
99 | 99 | },
|
| 100 | + { |
| 101 | + "cell_type": "markdown", |
| 102 | + "id": "f493aceb", |
| 103 | + "metadata": {}, |
| 104 | + "source": [ |
| 105 | + "Enterprise Sites also come with a Site item and the Content Team group for that site, where you can add the items for your site's Content Library. Users with Administrative privileges that create a site will also have a Core Team group created as part of the site, to allow collaboration among members of that team. You can also create Enterprise Sites with a custom domain that is different from the title, as shown above." |
| 106 | + ] |
| 107 | + }, |
100 | 108 | {
|
101 | 109 | "cell_type": "markdown",
|
102 | 110 | "id": "eb3ae83e",
|
|
107 | 115 | },
|
108 | 116 | {
|
109 | 117 | "cell_type": "code",
|
110 |
| - "execution_count": 4, |
| 118 | + "execution_count": 5, |
111 | 119 | "id": "88c384d2",
|
112 | 120 | "metadata": {},
|
113 | 121 | "outputs": [
|
|
116 | 124 | "text/html": [
|
117 | 125 | "<div class=\"item_container\" style=\"height: auto; overflow: hidden; border: 1px solid #cfcfcf; border-radius: 2px; background: #f6fafa; line-height: 1.21429em; padding: 10px;\">\n",
|
118 | 126 | " <div class=\"item_left\" style=\"width: 210px; float: left;\">\n",
|
119 |
| - " <a href='https://rpubs22001.ags.esri.com/portal/home//home/item.html?id=d09143066cc04d14b4d29d9b4344ebfc' target='_blank'>\n", |
| 127 | + " <a href='https://rpubs22001.ags.esri.com/portal/home//home/item.html?id=efc8a92f48c6487da49cb1770178e6ae' target='_blank'>\n", |
120 | 128 | " <img src='https://rpubs22001.ags.esri.com/portal/home//portalimages/desktopapp.png' class=\"itemThumbnail\">\n",
|
121 | 129 | " </a>\n",
|
122 | 130 | " </div>\n",
|
123 | 131 | "\n",
|
124 | 132 | " <div class=\"item_right\" style=\"float: none; width: auto; overflow: hidden;\">\n",
|
125 |
| - " <a href='https://rpubs22001.ags.esri.com/portal/home//home/item.html?id=d09143066cc04d14b4d29d9b4344ebfc' target='_blank'><b>New page</b>\n", |
| 133 | + " <a href='https://rpubs22001.ags.esri.com/portal/home//home/item.html?id=efc8a92f48c6487da49cb1770178e6ae' target='_blank'><b>New page</b>\n", |
126 | 134 | " </a>\n",
|
127 |
| - " <br/><img src='https://rpubs22001.ags.esri.com/portal/home//home/js/jsapi/esri/css/images/item_type_icons/layers16.png' style=\"vertical-align:middle;\">Site Page by creator1\n", |
128 |
| - " <br/>Last Modified: December 14, 2022\n", |
| 135 | + " <br/><img src='https://rpubs22001.ags.esri.com/portal/home//home/js/jsapi/esri/css/images/item_type_icons/layers16.png' style=\"vertical-align:middle;\" width=16 height=16>Site Page by creator1\n", |
| 136 | + " <br/>Last Modified: July 07, 2023\n", |
129 | 137 | " <br/>0 comments, 0 views\n",
|
130 | 138 | " </div>\n",
|
131 | 139 | " </div>\n",
|
|
135 | 143 | "<Item title:\"New page\" type:Site Page owner:creator1>"
|
136 | 144 | ]
|
137 | 145 | },
|
138 |
| - "execution_count": 4, |
| 146 | + "execution_count": 5, |
139 | 147 | "metadata": {},
|
140 | 148 | "output_type": "execute_result"
|
141 | 149 | }
|
|
163 | 171 | },
|
164 | 172 | {
|
165 | 173 | "cell_type": "code",
|
166 |
| - "execution_count": 5, |
| 174 | + "execution_count": 6, |
167 | 175 | "id": "33c1e112",
|
168 | 176 | "metadata": {},
|
169 | 177 | "outputs": [
|
170 | 178 | {
|
171 | 179 | "data": {
|
172 | 180 | "text/plain": [
|
173 |
| - "{'header': {'background': '#fff', 'text': '#4c4c4c'}, 'body': {'background': '#fff', 'text': '#4c4c4c', 'link': '#0079c1'}, 'button': {'background': '#0079c1', 'text': '#fff'}, 'logo': {'small': ''}, 'fonts': {'base': {'url': '', 'family': 'Avenir Next'}, 'heading': {'url': '', 'family': 'Avenir Next'}}}" |
| 181 | + "{'header': {'background': '#fff', 'text': '#000000'}, 'body': {'background': '#fff', 'text': '#4c4c4c', 'link': '#0079c1'}, 'button': {'background': '#0079c1', 'text': '#fff'}, 'logo': {'small': ''}, 'fonts': {'base': {'url': '', 'family': 'Avenir Next'}, 'heading': {'url': '', 'family': 'Avenir Next'}}, 'globalNav': {'background': '#fff', 'text': '#000000'}}" |
174 | 182 | ]
|
175 | 183 | },
|
176 |
| - "execution_count": 5, |
| 184 | + "execution_count": 6, |
177 | 185 | "metadata": {},
|
178 | 186 | "output_type": "execute_result"
|
179 | 187 | }
|
|
193 | 201 | },
|
194 | 202 | {
|
195 | 203 | "cell_type": "code",
|
196 |
| - "execution_count": 6, |
| 204 | + "execution_count": 7, |
197 | 205 | "id": "6fd93ff8",
|
198 | 206 | "metadata": {},
|
199 | 207 | "outputs": [
|
|
203 | 211 | "'#fff'"
|
204 | 212 | ]
|
205 | 213 | },
|
206 |
| - "execution_count": 6, |
| 214 | + "execution_count": 7, |
207 | 215 | "metadata": {},
|
208 | 216 | "output_type": "execute_result"
|
209 | 217 | }
|
|
226 | 234 | },
|
227 | 235 | {
|
228 | 236 | "cell_type": "code",
|
229 |
| - "execution_count": 7, |
| 237 | + "execution_count": 9, |
230 | 238 | "id": "c3cf31ac",
|
231 | 239 | "metadata": {},
|
232 | 240 | "outputs": [],
|
|
236 | 244 | },
|
237 | 245 | {
|
238 | 246 | "cell_type": "code",
|
239 |
| - "execution_count": 8, |
| 247 | + "execution_count": 10, |
240 | 248 | "id": "200b2186",
|
241 | 249 | "metadata": {},
|
242 | 250 | "outputs": [
|
|
246 | 254 | "True"
|
247 | 255 | ]
|
248 | 256 | },
|
249 |
| - "execution_count": 8, |
| 257 | + "execution_count": 10, |
250 | 258 | "metadata": {},
|
251 | 259 | "output_type": "execute_result"
|
252 | 260 | }
|
|
300 | 308 | },
|
301 | 309 | {
|
302 | 310 | "cell_type": "code",
|
303 |
| - "execution_count": 9, |
| 311 | + "execution_count": 11, |
304 | 312 | "id": "958142e9",
|
305 | 313 | "metadata": {},
|
306 | 314 | "outputs": [],
|
|
318 | 326 | },
|
319 | 327 | {
|
320 | 328 | "cell_type": "code",
|
321 |
| - "execution_count": 10, |
| 329 | + "execution_count": 12, |
322 | 330 | "id": "cbf5e535",
|
323 | 331 | "metadata": {},
|
324 | 332 | "outputs": [
|
325 | 333 | {
|
326 | 334 | "data": {
|
327 | 335 | "text/plain": [
|
328 |
| - "{'component': {'name': 'jumbotron-card', 'settings': {'header': 'Data Sharing', 'subheader': 'Search, Visualize, Download, Create', 'minHeight': '150', 'showLocation': False, 'imageUrl': '', 'showSearch': False}}, 'width': 12}" |
| 336 | + "{'component': {'name': 'spacer-card', 'settings': {'height': '50'}}, 'width': 12}" |
329 | 337 | ]
|
330 | 338 | },
|
331 |
| - "execution_count": 10, |
| 339 | + "execution_count": 12, |
332 | 340 | "metadata": {},
|
333 | 341 | "output_type": "execute_result"
|
334 | 342 | }
|
|
349 | 357 | },
|
350 | 358 | {
|
351 | 359 | "cell_type": "code",
|
352 |
| - "execution_count": 11, |
| 360 | + "execution_count": 13, |
353 | 361 | "id": "f993f45b",
|
354 | 362 | "metadata": {},
|
355 | 363 | "outputs": [
|
356 | 364 | {
|
357 | 365 | "data": {
|
358 | 366 | "text/plain": [
|
359 |
| - "{'cards': [{'component': {'name': 'markdown-card', 'settings': {'markdown': \"<p class='lead text-justify'>This is the platform for exploring and downloading GIS data, discovering and building apps, and engaging others to solve important issues. You can analyze and combine datasets using maps, as well as develop new web and mobile applications. Let's achieve our goals together</p>\"}}, 'width': 12, 'showEditor': False}]}" |
| 367 | + "{'cards': [{'component': {'name': 'markdown-card', 'settings': {'schemaVersion': 1, 'markdown': '<p class=\"lead text-justify\">This is the platform for exploring and downloading GIS data, discovering and building apps, and engaging others to solve important issues. You can analyze and combine datasets using maps, as well as develop new web and mobile applications. Let\\'s achieve our goals together</p>'}}, 'width': 12, 'showEditor': False}]}" |
360 | 368 | ]
|
361 | 369 | },
|
362 |
| - "execution_count": 11, |
| 370 | + "execution_count": 13, |
363 | 371 | "metadata": {},
|
364 | 372 | "output_type": "execute_result"
|
365 | 373 | }
|
|
378 | 386 | },
|
379 | 387 | {
|
380 | 388 | "cell_type": "code",
|
381 |
| - "execution_count": 12, |
| 389 | + "execution_count": 14, |
382 | 390 | "id": "03cbdf46",
|
383 | 391 | "metadata": {},
|
384 | 392 | "outputs": [
|
385 | 393 | {
|
386 | 394 | "data": {
|
387 | 395 | "text/plain": [
|
388 |
| - "[{'component': {'name': 'markdown-card', 'settings': {'markdown': \"<p class='lead text-justify'>This is the platform for exploring and downloading GIS data, discovering and building apps, and engaging others to solve important issues. You can analyze and combine datasets using maps, as well as develop new web and mobile applications. Let's achieve our goals together</p>\"}}, 'width': 12, 'showEditor': False},\n", |
| 396 | + "[{'component': {'name': 'markdown-card', 'settings': {'schemaVersion': 1, 'markdown': '<p class=\"lead text-justify\">This is the platform for exploring and downloading GIS data, discovering and building apps, and engaging others to solve important issues. You can analyze and combine datasets using maps, as well as develop new web and mobile applications. Let\\'s achieve our goals together</p>'}}, 'width': 12, 'showEditor': False},\n", |
389 | 397 | " {'component': {'name': 'markdown-card',\n",
|
390 | 398 | " 'settings': {'markdown': 'Build tailored websites and webpages to showcase ArcGIS Enterprise content to your users.'}},\n",
|
391 | 399 | " 'width': 6,\n",
|
392 | 400 | " 'showEditor': False}]"
|
393 | 401 | ]
|
394 | 402 | },
|
395 |
| - "execution_count": 12, |
| 403 | + "execution_count": 14, |
396 | 404 | "metadata": {},
|
397 | 405 | "output_type": "execute_result"
|
398 | 406 | }
|
|
413 | 421 | },
|
414 | 422 | {
|
415 | 423 | "cell_type": "code",
|
416 |
| - "execution_count": 13, |
| 424 | + "execution_count": 15, |
417 | 425 | "id": "3dfd7207",
|
418 | 426 | "metadata": {},
|
419 | 427 | "outputs": [
|
|
423 | 431 | "True"
|
424 | 432 | ]
|
425 | 433 | },
|
426 |
| - "execution_count": 13, |
| 434 | + "execution_count": 15, |
427 | 435 | "metadata": {},
|
428 | 436 | "output_type": "execute_result"
|
429 | 437 | }
|
|
456 | 464 | },
|
457 | 465 | {
|
458 | 466 | "cell_type": "code",
|
459 |
| - "execution_count": 14, |
| 467 | + "execution_count": 16, |
460 | 468 | "id": "93c32836",
|
461 | 469 | "metadata": {},
|
462 | 470 | "outputs": [],
|
|
466 | 474 | },
|
467 | 475 | {
|
468 | 476 | "cell_type": "code",
|
469 |
| - "execution_count": 15, |
| 477 | + "execution_count": 17, |
470 | 478 | "id": "cff113c2",
|
471 | 479 | "metadata": {},
|
472 | 480 | "outputs": [
|
|
476 | 484 | "{'component': {'name': 'markdown-card', 'settings': {'markdown': \"<h2 id='where-we-re-going'>Where We're Going</h2> <p>Here are the next steps and how we need your help to improve this data:</p> \", 'schemaVersion': 1}}, 'width': 12, 'showEditor': False}"
|
477 | 485 | ]
|
478 | 486 | },
|
479 |
| - "execution_count": 15, |
| 487 | + "execution_count": 17, |
480 | 488 | "metadata": {},
|
481 | 489 | "output_type": "execute_result"
|
482 | 490 | }
|
|
495 | 503 | },
|
496 | 504 | {
|
497 | 505 | "cell_type": "code",
|
498 |
| - "execution_count": 16, |
| 506 | + "execution_count": 18, |
499 | 507 | "id": "9dd885d4",
|
500 | 508 | "metadata": {},
|
501 | 509 | "outputs": [
|
|
505 | 513 | "{'cards': [{'component': {'name': 'markdown-card', 'settings': {'markdown': \"<h2 id='where-we-re-going'>Where We're Going</h2> <p>Here are the next steps and how we need your help to improve this data:</p> \", 'schemaVersion': 1}}, 'width': 12, 'showEditor': False}]}"
|
506 | 514 | ]
|
507 | 515 | },
|
508 |
| - "execution_count": 16, |
| 516 | + "execution_count": 18, |
509 | 517 | "metadata": {},
|
510 | 518 | "output_type": "execute_result"
|
511 | 519 | }
|
|
516 | 524 | },
|
517 | 525 | {
|
518 | 526 | "cell_type": "code",
|
519 |
| - "execution_count": 17, |
| 527 | + "execution_count": 19, |
520 | 528 | "id": "c0c5e5b6",
|
521 | 529 | "metadata": {},
|
522 | 530 | "outputs": [
|
|
526 | 534 | "True"
|
527 | 535 | ]
|
528 | 536 | },
|
529 |
| - "execution_count": 17, |
| 537 | + "execution_count": 19, |
530 | 538 | "metadata": {},
|
531 | 539 | "output_type": "execute_result"
|
532 | 540 | }
|
|
570 | 578 | "name": "python",
|
571 | 579 | "nbconvert_exporter": "python",
|
572 | 580 | "pygments_lexer": "ipython3",
|
573 |
| - "version": "3.7.11" |
| 581 | + "version": "3.7.16" |
574 | 582 | }
|
575 | 583 | },
|
576 | 584 | "nbformat": 4,
|
|
0 commit comments