If i wanted to edit the items displayed in say the listing page, am i looking to edit a html file? if so could someone point me in the direction or tell me the files i should be editing so i can research
Thanks
If i wanted to edit the items displayed in say the listing page, am i looking to edit a html file? if so could someone point me in the direction or tell me the files i should be editing so i can research
Thanks
Hey Tom!
Unfortunately the listing page isn’t build as a single HTML file so updating its layout and what it contains will be a bit more complex.
Have a look at the sharetribe/app/views/listings/ folder, this is where most of the listing content is defined.
Hopefully this helps!
Tom,
There are some things we need more information on to help you better. The advice Thomas provided is absolutely right if you need to edit the Ruby code which displays the page layout for a listing. However, what I am not certain of when I read this is, if you are trying to edit the content entered, or the actual page layout.
For starters, Sharetribe is based on Ruby on Rails with a database back-end. This means the structure of the application is in Ruby code, but the stored information for each listing gets stored in the database in the listings table. You can simply modify the data entered for a listing by editing the database directly.
Also, if you want to add or change the fields displayed for a listing easily, in a non-complex manner, the admin section allows you to define new fields and add them without writing any code. I would start there, and only modify the Ruby code if/when you really need to.
Also, you will want a test environment to work in if you’re new to Ruby. While its pretty standard Model>View>Controller type development, it has its idiosyncracies! I wouldn’t risk editing production in a live manner. Sorry if this is obvious!
Best…Rob