We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

New to EE - Need Help Generating a Dynamic List

How Do I?

avidrunner's avatar
avidrunner
1 posts
10 years ago
avidrunner's avatar avidrunner

I would like to generate a dynamic list of vehicles entered into EE. I enter in the following channel “vehicles” and the following channel fields “year”, “make” (dropdown), “model” (textinput), “images” (upload), “content” (textarea). First I’m wondering how I should accept the “year” value? The calendar picker is not really what I am looking for — rather, just 4 digits and numeric only.

Also, after I add a number of vehicles, how I can generate a dynamic list of all of the vehicles? So that it will show “year”, “make”, “model” (2012 Honda Civic) and a link to each vehicle page?

Thanks!

       
TheVendor's avatar
TheVendor
1 posts
10 years ago
TheVendor's avatar TheVendor

When you create the date channel field, look under the ‘Field Options’ section and change ‘Field Content’ to number and ‘Maxlength’ to 4. You can then use the jQuery Validation plugin http://jqueryvalidation.org/ to implement these conditions on your channel form (frontend).

In terms of generating the list, you could simply use Channel Entries with the channel field names you made. https://ellislab.com/expressionengine/user-guide/add-ons/channel/channel_entries.html

       
avidrunner's avatar
avidrunner
1 posts
10 years ago
avidrunner's avatar avidrunner

Thanks! I’ll take a look at that.

Update: I found the setting to turn “vehicle_year” into a 4 digit numeric only text input. Is there any way to remove the “0” that shows up by default when adding a new entry?

In terms of the vehicle makes, I have them separated line-by-line in a dropdown select field. To make sure my terminology correct: “vehicles” is the channel name, and “vehicle_make” is the channel field.

If I want to add an image (emblem) to each of the vehicle_make entries, should I restructure it out of the dropdown select field? Or can I tie in the “vehicle_emblem” image to each “vehicle_make” channel field somehow? Each time the vehicles of a particular make are shown on the browse make page it should show that particular emblem. Also, when browsing the vehicle details page it should show the appropriate emblem for that make too.

Hope that all makes sense. I’m not sure where to begin with something like this – and if it’s a really complex thing to do within EE or if it’s an incredibly easy to do?

I’m really loving the template system in EE - by far the most intuitive and easy to understand of all the CMS’ I have come across. I am a front-end-designer so I don’t want to be held back with a bunch of different files and locations scattered all over the place. EE makes my life a dream!

Thanks!

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.