Using the Story Link field as a variable for public story submissions and profile submission options

Hi all,
I have a question about the instructions here: Public Submissions - LiveWhale Support
It looks like it uses the news_body variable to get story details, but within a news story, you can add either text content under story body or a story link, but there doesn’t seem to be a way to enforce that with a specific variable on the submission form. The default seems to be story description with news_body, and the news_url variable is for the related content section. Is there a way to make it enforce that the story submission has a link instead of a description?

Relatedly, is there any existing option for public forms for submissions that would go into a specific profile type, instead of the currently available stories/events/images? The project I’m working on might be better done as a public profile submission form, instead of a story, so if anyone has suggestions for it that isn’t on the guide page already, that would be great!
Thanks,
Sudeshna

Hi Sudeshna,

Thanks for writing – I see what you mean, yes it looks like news_url and events_url get used in the public module as Related content by default. I think both things you’re describing – using a URL from _POST as the story url instead of a related content, and/or revamping received values to $_LW->create() a profile item could both be done with the onAfterPublicSubmission - LiveWhale Support handler. I’ll let others weigh in case they may already have code to this effect in the wild! Cheers,

Karl

1 Like