How can I edit text on an ArcGIS Hub site page?
I sent you a message as soon as you sent this - a few weeks ago, and I was wondering if you received my message?
yes, this has worked several times in the past.
In that case can you email me a screenshot of the exact code + error trace in the notebook?
Also I'd like to know:
1. Are you running this in your local environment or ArcGIS notebooks?
2. Are you using the `arcgis` package or `arcgishub` package?
3. Do you have the most updated versions of both those packages?
do you have success using any code to edit text?
Yes as I stated above - I can edit using a browser at hub.arcgis.com
Do you have the permissions to edit this page? Can you manually edit and publish changes to this site?
Does this work for you? it does not work for me
Let me give you an example for your case:
```
layout = mySite.layout
#Assign same value with change to layout
layout.sections[0].ROWS[0].cards[0].component.settings.markdown = "<h1 id='our-community'>New Text</h1><p>The information included below provides context for the Hazard Mitigation Plan. Environmental, social, and economic characteristics of a county make it unique. </p><p><br></p>"
mySite.update_layout(layout)
Refer to the notebook and the Github repo I shared earlier for examples on how to edit sites and pages.
Something like this?
you need to edit the text within the html of the particular card. Fetch the card (as demonstrated in the example notebook), edit the card to replace text as seen on the site with the text you would like instead, and then call the update_layout method with the changes.
Thank you, but I am wondering how you can EDIT some of the TEXT in a card on a hub page with Python.
yes, we have an example guide that demonstrates the process of editing layout of a page to edit text.
Yes , but I am wondering how you can edit the text on a hub page with Python.
For python there is the Hub API: https://www.esri.com/arcgis-blog/products/arcgis-hub/announcements/introducing-arcgis-hub-python-api-for-sites/
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.