All posts in category 'Admin'

Sort out astro-wpress routing

This is all about the mapping between site-url/xxxx/yyyy/zzzz and Astro pages. Even though there are no files in the /src/pages tree, the magic files [slug].astro, [...path].astro perform the same sort of rôle as if there were.

Add these to /src/:

└── pages
    ├── author
    │   └── [slug].astro
    ├── category
    │   └── [slug].astro
    ├── index.astro
    ├── [...path].astro
    ├── [slug].astro
    ├── tag
    │   └── [slug].astro
    └── [year]
        └── [month].astro

All this would have been impossible without AI assistance.

Source of media files

Move images and other media files which have to be loaded by URL to the cloud so the URLs don't have to be fiddled with as the site is copied around. Is it important that these external files come from SSL protected sites?

Here's one from wikimedia.org

Reduce canonical WP

Something basic with the master at localhost/wp/wp and distributed around to the various default cloud sites

Category: Admin
Rendered by content.php

Move away from block editor

Now it's clear that I don't need full site editing and only need the block editor for the Home and Blog pages, convert all other pages and posts to the classic editor.

Category: Admin
Rendered by content.php

Different menus on different pages

If these can be made to work smoothly I may not need a hybrid site, like my new garden, but look carefully at Planting Plans.
This may be another case like CAS membership form with payment where I can use a shortcode to basically dump code on a WP page and not worry about registering it.

Post with a gallery

The gallery shortcode is much more concise than raw HTML, but there's no control over thumb and slide captions beyond what's in the media library.
Moving sites around is more of a pain because the image ids are (usually) different in the different sites.

Category: Admin
Rendered by content.php

Post with an image

Raw HTML seems to be the way forward.
This one doesn't pop-out:

Hellebores

This one does. As usual, you have to enter the img url twice:



Hellebores

There's inevitably some fiddling required when sites are moved around, but it's probably less than the single-image gallery method.

Category: Admin
Rendered by content.php

Setting 'allow comments' flag

You can't seem to do this from the normal edit page, but have to go to the quick edit page. Irritating. OK I've found it now. Check 'Discussion' in screen options.

Category: Admin
Rendered by content.php

Force strong passwords

I'm surprised this isn't part of WP core. There are a few plugins which address the problem, at least one of which admits to being susceptible to being bypassed by a knowledgeable hacker. It ought to be possible to see how strong a user's password is from the dashboard.

Rendered by index.php