Login or create new account.

By registering on joomprod.com, you will have immediate access to all our free products and to the public side of our support forum.

Enjoy our subscriptions.

Each of our subscriptions allow you to enjoy the private side of the support forum and all the update of our products for a period ranging from 3 months to 1 year.

Payment And immediate download.

After subscribing to one of our subscription, the products are immediately downloadable.

Login

Or Register
Accueil / forum / Public Forum / Main Forum / Custom Autofill Category In Add Form

Support Availability Because we must sleep sometimes

Working days: Monday to Friday.
Reply time: Depending on the complexity of your support issue it's usually between a few hours to 48 hours.

Support is only guaranteed to paid subscribers

AdsManager - End of life

It is with great regrets that we have chosen to end the developpement of Adsmanager and its other associated components.

AdsManager is born 10 years ago and, as of today, the number of new subscriptions and downloads have fallen and we cannot maintain the component anymore.

All active subscribers will be able to continue enjoying support until the end of their subscription.

The components will be free and no support will be provided anymore for the other users.

×

Notice

The forum is in read only mode.

× OLD Forum post could be checked here : forum.joomprod.com

Custom Autofill Category In Add Form

  • KhrisBarajas
  • Topic Author
  • Offline
  • User
  • User
More
11 years 11 months ago #8441 by KhrisBarajas
Custom Autofill Category In Add Form was created by KhrisBarajas
Hello,
A client asked to add an autofill in the add Form, I make a new display category function in the file /helpers/category, using de select element from display combobox and the jquery from display multiple.

It seems to work fine when it comes to adding an item but when it comes to editing all the problem that appears is that the form doesn't show nor upload the categories of the item.

Is there is a way to direct the categories from the item to appear in the custom select? or where can i find the function edit that manage the elements of the item?
Attachments:
The following user(s) said Thank You: adarr
More
11 years 11 months ago #8458 by loic
Replied by loic on topic Custom Autofill Category In Add Form
Hello,

The categories are loaded in components/com_adsmanager/helpers/category.php', the function is called 'displayMultipleCategories'.

I hope it will help you :).

Best regards.
The following user(s) said Thank You: adarr
  • KhrisBarajas
  • Topic Author
  • Offline
  • User
  • User
More
11 years 11 months ago #8471 by KhrisBarajas
Replied by KhrisBarajas on topic Custom Autofill Category In Add Form
Hello thanks for answering,

Yes I've been working with the file category.php in "components/com_adsmanager/helpers/"
What i'm trying to find are the categories saved from an existent item, so they can be load in the edit form.
The following user(s) said Thank You: adarr
More
11 years 11 months ago #8487 by loic
Replied by loic on topic Custom Autofill Category In Add Form
Hello,

When you edit an existing ad, the category id is recover in the file 'components/com_adsmanager/views/edit/viex.html.php'.

At the line 92:
$content = $contentmodel->getContent($contentid,false,1);

We recover the data of the ad.

And at the line 153:
$catid = $content->cats[0]->catid;

We assign the category_id to the variable that will be used in the category select.

Best regards.
The following user(s) said Thank You: adarr
Moderators: perry
Time to create page: 0.058 seconds
Powered by Kunena Forum