Category structure

More
12 years 6 months ago #31406 by brandonking
Replied by brandonking on topic Category structure
Hello ggppdk,

I want to create custom select field with category recognition.
With this, I don't need to create many Types and many categories.

I want to add elements in custom select field like below format.
Value - Label1 - Label2
1::320::BMW%%
2::520::BMW%%
3::X1::BMW%%
4::Edge::FORD%%
5::Escape::FORD%%
6::Flex::FORD%%
7::Focus::FORD%%

[attachment=0:2lmrclxd]<!-- ia0 -->screenshot3.png<!-- ia0 -->[/attachment:2lmrclxd]
My question is that if I click BMW from category Brand(in first red box) then below Model select field
(second red box) will only show BMW model list.

In flexicontent field plugin, How can I bring above category name?
I tried with
Code:
$catname = $item->catid->name;
but doesn't work.

EDIT: Also, How can I make 3 elements list(Value::Label1::Label2%%)? At the moment, select field only supports for 2 elements.(Value::Label%%)

Best wishes,

Brandon
Attachments:

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

More
12 years 6 months ago #31408 by brandonking
Replied by brandonking on topic Category structure
Hello,

What about this scenario.

One Type: UsedCar
Category: Usedcar
|_Brand BMW
|_Brand FORD

Create Select field(assigned to Type UsedCar and Template)
- No elements has given.

Select fields NOT assigned to Type UsedCar/Template, these select fields are used only to hold each Brand's model list, like used as DB.
Select field - Elements with BMW Model list
Select field - Elements with FORD Model list

Populates elements in empty Select-field based on main category.

I kind of doubt it will work with filtering in category view.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.137 seconds
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline
Save