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?
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
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
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
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
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
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.
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
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
Hi Kenneth,
I wrote up a little tutorial for doing this in CFv3.2 that you can buy for a few dollars here. It's not been tested with CFv4 thoough.
The code is fairly straightforward but you have to have a script run on submit to check that none of the label values are being submitted as form data.
Bob
I wrote up a little tutorial for doing this in CFv3.2 that you can buy for a few dollars here. It's not been tested with CFv4 thoough.
The code is fairly straightforward but you have to have a script run on submit to check that none of the label values are being submitted as form data.
Bob
This topic is locked and no more replies can be posted.