Skip to content

Fix slugField render behavior in admin#283

Merged
linkion merged 8 commits into
devfrom
281-it-is-impossible-to-type-into-the-title-field-on-articles-in-admin
Jan 11, 2026
Merged

Fix slugField render behavior in admin#283
linkion merged 8 commits into
devfrom
281-it-is-impossible-to-type-into-the-title-field-on-articles-in-admin

Conversation

@espdesign

@espdesign espdesign commented Jan 11, 2026

Copy link
Copy Markdown
Contributor

Context

Fix for Issue:
#281

Fix copied from
payloadcms/payload#14007

Using the new module slugField from payload and removed old template version files src/fields/slug. This should help with longer term compatibility on updates.

because this uses payload official version, they renamed table columns,

slug_lock > generate_slug
version_slug_lock > version_generate_slug

When typing in the title field, the title is now properly updated and fluid, however the slug does not auto-fill anymore.

Note: I tested the behavior from an updated and new payload-website template, it seems to not auto fill on new templates as well.

Test Plan

browse to http://localhost:3000/admin

Make new pages, articles, edit the new and existing titles.

@espdesign espdesign linked an issue Jan 11, 2026 that may be closed by this pull request
@espdesign espdesign self-assigned this Jan 11, 2026
@espdesign espdesign added invalid This doesn't seem right and removed invalid This doesn't seem right labels Jan 11, 2026
@tadjh tadjh changed the title 281 it is impossible to type into the title field on articles in admin Fixed slugField render behavior in admin Jan 11, 2026
@tadjh tadjh changed the title Fixed slugField render behavior in admin Fix slugField render behavior in admin Jan 11, 2026
@tadjh

tadjh commented Jan 11, 2026

Copy link
Copy Markdown
Member

Nice! It seems their solution was to not bother with updating the slug until you save the document.

Which makes sense and is more pragmatic than constantly updating the slug whenever the title changes, when that's not something that should change much SEO wise.

@linkion

linkion commented Jan 11, 2026

Copy link
Copy Markdown
Contributor

This is working well on staging

@linkion linkion left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code changes look good to me, tested working on staging

@linkion linkion merged commit 68a0c87 into dev Jan 11, 2026
2 checks passed
@linkion linkion deleted the 281-it-is-impossible-to-type-into-the-title-field-on-articles-in-admin branch January 11, 2026 06:12
linkion added a commit that referenced this pull request Jan 16, 2026
Duplicated #283 to
app/dgg-political-action


## Testing
Check imputing text on collection titles. Should be smooth now.

---------

Co-authored-by: Patrick Orave <oravep@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

It is impossible to type into the Title Field on Articles in Admin

3 participants