TACC / Core-CMS

The Core CMS codebase used by TACC Portals.
https://cep.tacc.utexas.edu
2 stars 1 forks source link

How to Load Blog Articles Across Sites #876

Open wesleyboar opened 1 month ago

wesleyboar commented 1 month ago

Goal

Show TACC news articles [list] on LCCF. [Include pagination.] — TUP-706.

Why

Ideas

1. How to Load?

How to load remote content from one site on another.

1.A. Via URL w/ /blog/remote/

Load https://site-A.edu/news/latest-news/.../ at https://site-B.org/blog/remote/.../.

Examples - Load [https://**site-a.edu/news/latest-news/**](https://tacc.utexas.edu/news/latest-news/) at `https://site-B.org/blog/remote`. - Load [https://**site-a.edu/news/latest-news/**tag/frontera/](https://tacc.utexas.edu/news/latest-news/tag/frontera/) at `https://site-B.org/blog/remote/tag/frontera`. - Load [https://**site-A.edu/news/latest-news/**2024/...-cars/](https://tacc.utexas.edu/news/latest-news/2024/09/11/escape-from-hurricanes-with-driverless-cars/) at `https://site-B.org/blog/remote/2024/-...-cars/`.

1.B. Via URL w/ ?from=…

Load https://site-A.edu/news/latest-news/.../ at https://site-B.org/?from=https://.../news/latest-news/.../.

Examples - Load [https://**site-a.edu/news/latest-news/**](https://tacc.utexas.edu/news/latest-news/) at `https://site-B.org/?from=https://.../news/latest-news/.../`. - Load [https://**site-a.edu/news/latest-news/**tag/frontera/](https://tacc.utexas.edu/news/latest-news/tag/frontera/) at `https://site-B.org/?from=https://.../news/latest-news/tag/frontera`. - Load [https://**site-A.edu/news/latest-news/**2024/...-cars/](https://tacc.utexas.edu/news/latest-news/2024/09/11/escape-from-hurricanes-with-driverless-cars/) at `https://site-B.org/?from=https://.../news/latest-news/2024/-...-cars/`.

2. How to Configure?

How to configure what site loads what site at what URL?

2.A. Dev Configures via Settings

Tell a developer any URL requirements and which news to load. - `/special/path/` or `?special_key` - which websites' news to load

2.B. Admin Configures via a Model

Add a "Cross-Site Content" data entry in the admin UI. - `/special/path/` or `?special_key` - which websites' news to load You could add multiple entries. Why? Load from many sources e.g. - load from one or more news (from other site/s) - load from one or more other pages (from other site/s)

Ref.

History:

  1. TUP-706
  2. 870

  3. 871

  4. 872

  5. 868

Related:

wesleyboar commented 1 month ago

Goal

Load only a the LCCF news listing from TACC.

So, now: