I just noticed that the Form I've created to have the users submit articles to a specific category, doesn't create an alias. I've set that the user is allowed to modify their own article, but with no alias, that is not possible.
How do I get the alias set with something?
Hi fribse,
You don't say how you are creating the article but it should take no more than a couple of lines of code to copy the article and save it in the alias column.
Bob
Hi Greyhead
As you adviced I used the action "Submit Article".
I've created a form where the events looks like this:
On Load
Show html
Custom Code (to show a headline)
On Submit
Submit Article
Show Thanks Message
What I'm wondering is, if you create a standard function like "Submit Article" why doesn't it fill in the required fields, or give the opportunity to do so, without having to create some sort of code yourself (which I'm unable to)?
If I create two articles, and goes to the backend, and I try to edit one of them, it immediately complains that there is another article with the same alias "".
If I use the standard 'Create article' it creates an alias if I don't fill it in.
Best regards
Kenneth
Hi Kenneth,
Sorry, I've never looked at how this works in CFv4.
I'll see if I can find time to work out what needs to be added to Max's code.
Bob
Hi Kenneth,
I have applied a fix for that, you need to extract the attached file and upload the .php file included to your Joomla website under this path:
\administrator\components\com_chronoforms\form_actions\submit_article
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
It works perfectly! Wow, that was quick, excellent help, thankyou!
Are you open for some enhancement requests :-)
I've prefilled some of the fields with text like 'fill in here', could you make an option to make it volatile, ie. when you click the field it disappears, or can that be done via the existing actions.
Hi Kenneth,
This can be done through some JS code in your form, you may find some examples on Google, its not hard to do.
Regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.