10 years ago
17
Topic

Hello all,

I'm creating a form that allows register user to submit their articles and I want to be able to select the category that they will save their article. Is it possible?

I work on Joomla 3, SEBLOD 3

Feel free to ask for more information if needed.

Best Regards

Ioannis

Get a Book for SEBLOD
10 years ago
0
Level 1

You mean you want someone to select a category to classify a form submission?

If this is the case, yes - Very easy.  Simply use ARTICLE when creating your new form.  You should see a Article Category form field. 

If you've created a "blank" form, then you will need to add it to your form.  See if this example helps.

Add Category Field example


10 years ago
1
Level 1

Hello,

Well I have some problems about configure SEBLOD. To start I want to have a form in the front-end for register user to upload an article. I have configure almost every field except the category drop-down and submit button. First when I use "Article Category Id(JForm - Category)" I get in the frond-end a box that displays the Joomla categories but it's not a drop-down. Second when I push the submit button nothing saves in my article manager.

Anyone can help me please? Or tell me where to find a compete documentation?

Extra info:

Website www.cookmeup.gr

Username: demo-user

Password: demo-us3r

You can find the form in the top toolbar named SEBLOD


Thanks for your help!

10 years ago
0
Level 2

Not sure if this is the correct way but it has worked out well for me so far. Change your jform category field and change to simple select. From there assign your label names equal to the category id. Ex: blog=1, Entertainment=2 etc...

10 years ago
1
Level 1

I have used lloyds approach successfully on multiple sites.

You create a simple select field and set its storage to Standard Article catid. The storage type is very important here.

In the select options:

Name of Category=ID of category.

Eg.:

Birthday=2

This way the user can choose the name of the category and in the database the ID of that category gets saved. So the submitted article gets saved in the chosen category.


10 years ago
0
Level 2

Hello,


I follow your instruction but I can find there to set "Name of Category=ID of category", can you provide a print-screen?

Thanks for your help.

Print-screen in to images top and bottom from my article category id settings:

Top

Bottom

10 years ago
0
Level 1

Thanks for your answers I'll try and let you know if they solve the problem!

10 years ago
10
Level 1

Here you can see the settings.

Do not check "Custom Attributes"

10 years ago
9
Level 2

Once again thanks for your help, I've done everything that you suggest I have the drop-down menu, but when I push the submit button nothing saves...Any suggestion?

10 years ago
8
Level 3

Have you set storage to Standard - Article - catid?

10 years ago
7
Level 4

Yeap I have it right...Also I have configure the permission on Article & category to allow register user to create/modify etc!

10 years ago
6
Level 5

So it does submit but it just doesn't save in the correct category? Did you create a standard article content type or did you create a blank one? If you created one from scratch you'll have to set the storage type at the bottom to "standard" - "free" - "#_content" - "catid"

10 years ago
5
Level 6

Hello lloyd,

It doesn't submit at all...After I push submit from the front-end I go to article section in back-end and nothing has been created...I didn't create a new one from scratch I use the article content type but I change some fields (disable some, hidden some other, added category id field)...

Need any other info?

Thanks in advance for your help!

10 years ago
4
Level 7

When you submit your article does it display the "message has been successfully saved"? Or does nothing happen at all?

10 years ago
0
Level 8

Nothing Happen at all!

10 years ago
2
Level 8

Nothing Happen at all! Any thoughts about what cause that problem?

10 years ago
1
Level 9

In your button submit field change your "type" to input instead of button.

10 years ago
0
Level 10

I had it on input.

It work I had to use "button" and not "input" in type field...

Get a Book for SEBLOD