How can I edit text on an ArcGIS Hub site page?
For python there is the Hub API: https://www.esri.com/arcgis-blog/products/arcgis-hub/announcements/introducing-arcgis-hub-python-api...
Yes , but I am wondering how you can edit the text 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.
Thank you, but I am wondering how you can EDIT some of the TEXT in a card on a hub page with Python.
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.
Something like this?
When you `print(thelayout.sections[0].ROWS[0].cards[0].component.settings.markdown)` what does it display? Overwrite the same value in the markdown variable and only replace the text string with the text string of your choice.
Also, you can only update the layout if you own the page/site OR are part of the initiative core team OR an org administrator.
Print returns
<h1 id='our-community'>Douglas County Profile</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>
I then can set it = to its original value or anything and get the error.
I am able to edit it through the web interface hub.arcgis.com with the same user
Maybe you could give an example of code you have used that works?