Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

Menu with parameteres 07 Dec 2012 13:33 #5886

Hello. First of all, I would like to thanks for jCook. It's great tool.

I have an issue.

Let's say that I build 2 tables. First table can be for example cars manufacturers. Second table can bo models.
First tables contains values like Audi, Mercedes, Chrysler, Toyota. Second table contains values like:

A8, Audi (taken from 1 table with thanks to foreign key), Limousine
Q7, Audi, SUV
S500, Mercedes, Limousine
ML500, Mercedes, SUV
SL500, Mercedes, Roadster
Voyager, Chrysler, VAN
Previa, Toyota, Van
Land Cruiser, Toyota, SUV

What I want to do is to build menu position in the back end called Mercedes and I want to see in the front end grid containing all Mercedes Models. Than I want to do the same for Audi models etc etc. (so I dont want to see all items in the grid, all models, but only selected one from one manufacturer which I choose)

That I means that I want to build menu position for GRID but in that I would like to add parameters (this parameter would be the field taken from 1st table where cars manufatures are beeing saved)

Is it possible. Can anybody help me to deal with it?

Kind regards

Please Log in or Create an account to join the conversation.

Re: Menu with parameteres 07 Dec 2012 15:38 #5892

  • JoomGuy
  • JoomGuy's Avatar
  • Offline
  • Moderator
  • Moderator
  • Joomla Enthusiast, Lover of Cooking
  • Posts: 1115
  • Thank you received: 195
Have you looked at filtering the grid layout based on your brand/make of car - combo filter (with ajax maybe)?

Do you really want to have to create a menu item for every single brand of car to have them accessible? I mean, sure, you can do that. If that is what you want to do, you need to have a foreign key field set up on your cars table linking to makes. Then, when you create a menu item to cars, you should have an option in the parameters to select the brand.

If not, you can create one. Look here at the form field types that you can use to customise your XML for adding what were known as parameters in J1.5.: docs.joomla.org/Form_field

Hope it helps,

Gez
Need help with your Cook/Joomla Project? . PM me to find out what I can help with. NO time wasters please!!!

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.076 seconds
  I still don't believe he can really be human to do all this ! From all of the forums that I've ever participated in this is certainly the one that most encapsulates the feeling of being truly open source where everyone's opinions and contributions can and will shape the development of the service! It's truly awesome! Hope you enjoy cooking and look forward to reading and contributing to any of the editorial work that you proposed too!! Thanks
Gez (audibleid - JED)

Get Started