Hmm ok so i have setup a blueprint for the values but it doesn’t seem to like option groups. Shouldn’t this work? The only options i can see in the panel are the ones with one level like Option7: Kids & Family
. All others are blank.
type: group
fields:
category:
label: Category
type: select
options:
Option1: Arts
- Design
- Fashion & Beauty
- Food
- Literature
- Performing Arts
- Visual Arts
Option2: Business
- Business News
- Careers
- Investing
- Management & Marketing
- Shopping
Option3: Education
- Educational Technology
- Higher Education
- K-12
- Language Courses
- Training
Option4: Games & Hobbies
- Automotive
- Aviation
- Hobbies
- Other Games
- Video Games
Option5: Government & Organizations
- Local
- National
- Non-Profit
- Regional
Option6: Health
- Alternative Health
- Fitness & Nutrition
- Self-Help
- Sexuality
Option7: Kids & Family
Option8: Music
Option9: News & Politics
Option10: Religion & Spirituality
- Buddhism
- Christianity
- Hinduism
- Islam
- Judaism
- Other
- Spirituality
Option11: Science & Medicine
- Medicine
- Natural Sciences
- Social Sciences
Option12: Society & Culture
- History
- Personal Journals
- Philosophy
- Places & Travel
Option13: Sports & Recreation
- Amateur
- College & High School
- Outdoor
- Professional
Option14: Technology
- Gadgets
- Tech News
- Podcasting
- Software How-To
I have also setup the config like so:
c::set('itunesOptions', [
'option1' => [
'category' => 'Arts',
'subcategory' => 'Fitness',
'subcategory' => 'Design',
'subcategory' => 'Fashion & Beauty',
'subcategory' => 'Food',
'subcategory' => 'Literature',
'subcategory' => 'Performing Arts',
'subcategory' => 'Visual Arts',
],
'option2' => [
'category' => 'Business',
'subcategory' => 'Business News',
'subcategory' => 'Careers',
'subcategory' => 'Investing',
'subcategory' => 'Management & Marketing',
'subcategory' => 'Shopping',
],
'option3' => [
'category' => 'Education',
'subcategory' => 'Educational Technology',
'subcategory' => 'Higher Education',
'subcategory' => 'K-12',
'subcategory' => 'Language Courses',
'subcategory' => 'Training',
],
'option4' => [
'category' => 'Games & Hobbies',
'subcategory' => 'Automotive',
'subcategory' => 'Aviation',
'subcategory' => 'Hobbies',
'subcategory' => 'Other Games',
'subcategory' => 'Video Games',
],
'option5' => [
'category' => 'Government & Organizations',
'subcategory' => 'Local',
'subcategory' => 'National',
'subcategory' => 'Non-Profit',
'subcategory' => 'Regional',
],
'option6' => [
'category' => 'Health',
'subcategory' => 'Alternative Health',
'subcategory' => 'Fitness & Nutrition',
'subcategory' => 'Self-Help',
'subcategory' => 'Sexuality',
],
'option7' => [
'category' => 'Kids & Family',
],
'option8' => [
'category' => 'Music',
],
'option9' => [
'category' => 'News & Politics',
],
'option10' => [
'category' => 'Religion & Spirituality',
'subcategory' => 'Buddhism',
'subcategory' => 'Christianity',
'subcategory' => 'Hinduism',
'subcategory' => 'Islam',
'subcategory' => 'Judaism',
'subcategory' => 'Other',
'subcategory' => 'Spirituality',
],
'option11' => [
'category' => 'Science & Medicine',
'subcategory' => 'Medicine',
'subcategory' => 'Natural Sciences',
'subcategory' => 'Social Science',
],
'option12' => [
'category' => 'Society & Culture',
'subcategory' => 'History',
'subcategory' => 'Personal Journals',
'subcategory' => 'Philosophy',
'subcategory' => 'Places & Travel',
],
'option13' => [
'category' => 'Sports & Recreation',
'subcategory' => 'Gadgets',
'subcategory' => 'Tech News',
'subcategory' => 'Podcasting',
'subcategory' => 'Software How-To',
],
]);
I am still a bit confused how to connect the two together and get seperate values out in front end. I have set the field method up as well but not tried to use it yet.