Katello setting up PXE boot of Centos 7 server using kickstart

Problem:
I’m new to Foreman and I’m trying to setup kickstart to automatically build a Centos 7 image

Expected outcome:
I should be able to generate a kickstart file which gets added to a menu in /var/lib/tftpboot/ppxelinux.cfg/default which will be used to build my hosts. I believe in Spacewalk the kickstart file is automatically generated once selections are chosen from the user interface are but I can’t see this in Foreman. I have tried creating a kickstart file as a test but it didn’t update the PXE config. As a first step I’d be happy if I could just get a basic build built using kickstart without too much customisation.

Foreman and Proxy versions:
3.3

Foreman and Proxy plugin versions:
Katello 4.5

Distribution and version:
Centos 7.9

Other relevant data:
My pxelinux is below which gets created after I select “Build PXE default”

type or paste code here
UI menu.c32
MENU TITLE Booting unknown host (ESC to stop)
TIMEOUT 200
ONTIMEOUT local
DEFAULT local

LABEL local
  MENU LABEL Default local boot
  LOCALBOOT 0

LABEL local_primary
  MENU LABEL Default local boot from primary hard drive
  LOCALBOOT 0x80

LABEL local_skip
  MENU LABEL Boot from the next BIOS device
  LOCALBOOT -1

LABEL local_chain_hd0
  MENU LABEL Chainload the first hard drive (hd0)
  COM32 chain.c32
  APPEND hd0

LABEL local_chain_hd1
  MENU LABEL Chainload the second hard drive (hd1)
  COM32 chain.c32
  APPEND hd1


LABEL discovery
  MENU LABEL Foreman Discovery Image
  KERNEL boot/fdi-image/vmlinuz0
  APPEND initrd=boot/fdi-image/initrd0.img rootflags=loop root=live:/fdi.iso rootfstype=auto ro rd.live.image acpi=force rd.luks=0 rd.md=0 rd.dm=0 rd.lvm=0 rd.bootif=0 rd.neednet=0 nokaslr nomodeset proxy.url=https://server.domain.com proxy.type=foreman
  IPAPPEND 2

LABEL discovery_ipxe
  MENU LABEL Foreman Discovery Image - iPXE
  KERNEL ipxe.lkrn
  APPEND dhcp && chain https://server.domain.com/pub/discovery.ipxe

I got a base OS install going. Looks like I was missing either content view or lifecycle in my host. Once I set those and selected build it created the pxe config for that MAC.

I still need to create a customised kickstart config and also would like the pxelinux.cfg/default to build the hosts rather than having to pre-create the host in Foreman before I build the host creating a pxe config for each MAC

How would I create a customised kickstart within Foreman?

And is it possible to use the customised kickstart configuration in the pxelinux.cfg/default file rather than creating a kickstart file per host by creating the server in Foreman first?