⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

[ask]how to make field like datetime, upload dropdown in grocerycrud



opek
  • profile picture
  • Member

Posted 10 July 2012 - 10:58 AM

hiii i'm nubie in grocery crud.
how to make field like datetime, upload, dropdown in grocerycrud

thanks

fdias
  • profile picture
  • Member

Posted 10 July 2012 - 12:37 PM

opek just look at the examples and docs. It's pretty much all there.

http://www.grocerycrud.com/examples

www.grocerycrud.com/documentation

Cheers

opek
  • profile picture
  • Member

Posted 10 July 2012 - 13:22 PM

fdias i already look at that but i no idea how to make field [color=#282828][font=helvetica, arial, sans-serif]like datetime, upload, dropdown in grocerycrud ?[/font][/color]
[color=#282828][font=helvetica, arial, sans-serif]like this [/font][/color]http://www.grocerycrud.com/examples/orders_example
[color=#282828][font=helvetica, arial, sans-serif]which file i must code [/font][/color]

[color=#282828][font=helvetica, arial, sans-serif]hanks [/font][/color][color=#282828][font=helvetica, arial, sans-serif]t[/font][/color]

fdias
  • profile picture
  • Member

Posted 10 July 2012 - 13:43 PM

Dear opek I suggest you download GC, install, configure and look at the code. It is really simple!

Regarding the date field all you need to do is have the db column set as datetime.

opek
  • profile picture
  • Member

Posted 11 July 2012 - 06:37 AM

[quote name='fdias' timestamp='1341927815' post='2613']
Dear opek I suggest you download GC, install, configure and look at the code. It is really simple!

Regarding the date field all you need to do is have the db column set as datetime.
[/quote]

i already install GC i know i fwant confifure just in controller but i don't have idea how to make view input in GC like dropdown upload
maybe you have tutorial i need clue

thanks

fdias
  • profile picture
  • Member

Posted 11 July 2012 - 16:52 PM

File Upload example:

http://www.grocerycrud.com/examples/set_upload_field_example

Set relation example (combo):

http://www.grocerycrud.com/examples/set_a_relation

opek
  • profile picture
  • Member

Posted 13 July 2012 - 05:58 AM

[quote name='fdias' timestamp='1342025526' post='2645']
File Upload example:

http://www.grocerycr...d_field_example

Set relation example (combo):

http://www.grocerycr.../set_a_relation
[/quote]
thanks fdias i have figure out how to like that but
i have problem grocery with my template like this
/topic/678-helpwhy-my-grocery-in-my-template-like-this/

fdias
  • profile picture
  • Member

Posted 13 July 2012 - 12:38 PM

Replied there. noskov's guess is my first guess as well, but let us know if it worked out.