![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@payload-enchants/better-use-as-title
Advanced tools
[screen-capture.webm](https://github.com/r1tsuu/payload-enchants/assets/64744993/ba3a8e37-3f5e-48a4-ac25-9ea81bc43b01)
useAsTitle
property for Payload 3.0pnpm add @payload-enchants/better-use-as-title
Add into your payload.config.ts:
import { betterUseAsTitle } from '@payload-enchants/better-use-as-title';
export default buildConfig({
// ...your config
plugins: [
betterUseAsTitle({
// List of collections to apply a custom `useAsTitle`
collections: [
{
// Collection slug
slug: 'better-use-as-title-test',
// `data` is the current document data, req is instance of PayloadRequest, from which you can get `payload` and `user`
// could be asynchronous as well
useAsTitle: ({ data, req }) =>
`${data.firstName ?? ''} - ${data.secondName}, ${data.age} y.o`,
// override properties for useAsTitle field for this collection
fieldOverride: {
name: 'customNameForCollection',
},
},
],
// override properties for useAsTitle field globally
fieldOverride: {
name: 'customName',
},
}),
],
});
You would need to write a custom script that updates all your docs like this
payload.update({
collection: 'posts',
where: {}
})
FAQs
[screen-capture.webm](https://github.com/r1tsuu/payload-enchants/assets/64744993/ba3a8e37-3f5e-48a4-ac25-9ea81bc43b01)
The npm package @payload-enchants/better-use-as-title receives a total of 29 weekly downloads. As such, @payload-enchants/better-use-as-title popularity was classified as not popular.
We found that @payload-enchants/better-use-as-title demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.