Question about the ADS app

Hi all

The publication of an advertisement consists of 2 parts (2 forms). In the first form you must select the category and in the second form you must complete the ad's own data.

Question: is there a way to do all that with a single form? That is, in the same form the user can select the ad category and complete the other information.

Also, if I am filling out the second form and I made a mistake when selecting the category on the first form, there is no way to change it, I have to start all over again.

Thanks.

image_transcoder.php?o=sys_images_editor&h=2102&dpx=1&t=1718928058

image_transcoder.php?o=sys_images_editor&h=2103&dpx=1&t=1718928074

  • 466
  • More
Replies (15)
    • Hello @Claudio Acosta !

      The Ads app have been developed by this way to get more easier way of the form's customization for every category. If the user makes the wrong choice he may just delete the "not good" item.

      • Hi @LeonidS

        Thanks for response.

        In my case I am going to use the app only to publish job opportunities. Therefore I will have to accept that the publication consists of 2 steps. 😔

        1) Would I then have to delete the other categories? Because I don't want a user to be able to select other categories.

        2) How does the form change according to the selected category? where is this configured or customized?

        3) Regarding the Job module in development (https://github.com/unacms/una/issues/4726), could we know what its features would be?

        Thank you so much.

        • Hi @LeonidS

          When you can answer this, I would be very grateful.

          Regards.

          • Ok, let's review the shortest way to your purposes:

            1) Yes, it's leave there only 1 variant to chose.

            2) It is calculated with the support of the bx_ads_categories_types table. Every type there defines the forms which will work with the add, edit and view forms. For example, the price type (all "With price"-prefix forms):

            INSERT INTO `bx_ads_categories_types` (`id`, `name`, `title`, `display_add`, `display_edit`, `display_view`) VALUES
            (1, 'price', '_bx_ads_cat_type_price', 'bx_ads_entry_price_add', 'bx_ads_entry_price_edit', 'bx_ads_entry_price_view');
            

            So all categories with this type will use the forms bx_ads_entry_price_add, bx_ads_entry_price_edit, bx_ads_entry_price_view

            3) It will be the app with the basic jobs functionality - ability to posting and applying jobs with the set salary and budget values.

            • I was already asking similar question here:

              https://unacms.com/d/edit-ad-category-not-possible

              • Hi @LeonidS

                Thank you very much for the reply.

                1) Understood. Then I can delete the other top level categories.

                Is it necessary to maintain the first level "Jobs" category? Or I could delete the "Jobs" category and delete what is currently created as subcategories and create them as categories?

                2) Understood. That is to say, if I wanted to create a different form, for another topic, I would first have to create an entry in the table.

                3) Understood.

                Another question, why can't the category data be modified once an ad is published? I say this because it is normal to select the wrong category and should be able to modify it. I was looking through the "With Price: Edit" form and couldn't find a way to do it. Or would I have to modify the form with the Developer app?

                Thanks.

                • 1) It's better to leave the Jobs and create other categories if necessary.

                  2) Yep.

                  3) Yes, the forms and fields within can be changed via the Forms or Developer->Forms apps.

                  Why it's hard to edit the categories again - it's connected with the different forms on each category as was mentioned before.

                  • Hi @LeonidS

                    For now I'm only trying "Jobs" with its 4 subcategories. I disabled the other categories.

                    image_transcoder.php?o=sys_images_editor&h=2117&dpx=1&t=1719489813

                    Maybe I'm not understanding your answer. It is not clear to me whether or not it can be configured so that the user can modify the selection in the Category field.

                    In "Forms" > "Ads" > "With Price: Edit" I did not find anything to configure, since the only "Category" field that is activated is only the one that shows the result of the category choice made in the first step.

                    image_transcoder.php?o=sys_images_editor&h=2118&dpx=1&t=1719489910

                    In "Developer" > "Forms" > "Ads" > "With Price: Edit" I activated the Category field indicated in the following screenshot, which allowed me to select a category in the edit form. However, when clicking "Submit" an error appears in the database:

                    image_transcoder.php?o=sys_images_editor&h=2119&dpx=1&t=1719489942

                    image_transcoder.php?o=sys_images_editor&h=2120&dpx=1&t=1719489970

                    image_transcoder.php?o=sys_images_editor&h=2121&dpx=1&t=1719489987

                    You say that the categories are connected to different types of forms, however I want to use only 1 type of form, the one corresponding to Jobs and its subcategories. It seems reasonable to me that if a user makes the wrong subcategory when publishing an ad, they can then change it in the edit form. Otherwise the user would have to delete the ad and republish it, which is not practical.

                    Regards.

                    • Hi @LeonidS

                      I just want to request your comments regarding the last thing I wrote.

                      Your answer will allow me to decide if the Ads app is useful for me or not.

                      Thank you so much.

                      • Let's check your DB error first. Every DB error is sent report to the site's email, so you may provide me the text of the error's message.

                          • Yes, confirmed that the error relates to the 'category_select' field which is missing in the bx_ads_entries table. So for your task, Ads are too excess module which will need to be "simplified" only via the code's editing. You'd better to wait the future Jobs or you may add the separate field for the subcategories and enable it in the Edit form too.

                            • Hi @LeonidS

                              I really do not understand. 

                              Anyone can make a mistake when publishing an ad when selecting the category and they should be able to modify it, because otherwise the person is obliged to delete the ad and republish it, which I think is nonsense.

                              That said, at the risk of being wrong because I am no expert, I believe that the module does not work correctly.

                              Is there an approximate date for the launch of the "Jobs" module?

                              When you say "you may add the separate field for the subcategories and enable it in the Edit form too." I understand that you mean not using the categories used by the "Ads" module and adding my own category field. However, in that case I think I would lose the classification of the ads by categories/subcategories that the module offers.

                              I appreciate your usual kindness in responding.

                              Regards.

                              • Anyone can make a mistake when publishing an ad when selecting the category and they should be able to modify it, because otherwise the person is obliged to delete the ad and republish it, which I think is nonsense.

                                Yes, I mentioned reasons about, but in your case with 1 big category this issue looks more uncomfortable than usual situations.

                                Is there an approximate date for the launch of the "Jobs" module?

                                I guess it will be released with UNA 14 stable.

                                I understand that you mean not using the categories used by the "Ads" module and adding my own category field.

                                Yes, in your case with 1 main category (Jobs) it's better to have own subcategories.

                                I think I would lose the classification of the ads by categories/subcategories that the module offers.

                                You may try to use this variant for subcategories to keep main features:

                                https://unacms.com/wiki/Browseable-categories

                                • Hi @LeonidS

                                  Thank you again for the response and patience.

                                  "Yes, I mentioned reasons about, but in your case with 1 big category this issue looks more uncomfortable than usual situations."

                                  I want to clarify that the same problem (the category cannot be modified) occurs when using the Ads module for any type of ad. That's why I think it's a module problem.

                                  "I guess it will be released with UNA 14 stable."

                                  Any approximate release date for UNA 14?

                                  "You may try to use this variant for subcategories to keep main features: https://unacms.com/wiki/Browseable-categories"

                                  Great! thank you so much.

                                  Regards.

                                  Login or Join to comment.