I used the code snippet you gave me and it looks like it worked one of one of my pages, so thank you. But I can't get the category "main" page to do it. Is that code also in category.html or is it category_index.html? Here is what my url's look like, maybe this might help:
This path is working: http://127.0.0.1:8000/category/gold/american-eagles/ #this works This path is not working: http://127.0.0.1:8000/category/gold/ #this doesn't Would the http://127.0.0.1:8000/category/gold/ be in the same file? j. On Dec 3, 8:35 pm, jc <[email protected]> wrote: > Yes, that does help *a lot*. So thank you. Now to see how to code all > of this in...thanks for the code above...I'm going to start with that > and see if I can get it to work. > > Thanks again for the help, > J. > > On Dec 3, 8:24 pm, Laszlo Antal <[email protected]> wrote: > > > > > > > > > Hi, > > > On Dec 3, 2010, at 16:32, jc <[email protected]> wrote: > > > > lzantal- > > > > Thanks again for the reply. If you don't mind me nagging you :) if I > > > copied that category template file out of > > > /satchmo/apps/product/templates/product/category.html and into my / > > > store folder, where would I put that category.html file at? > > > Create a templates folder in your projectfolder and copy it in there with > > the same folder hierarchy. > > Eg: > > storeproject/ > > settings.py > > templates/ > > product/ > > category.html > > > hope it helps > > > lzantal > > > > Right now, > > > everything that I've edited (as far as template files) are simply in > > > the root of the /store folder, which is nice. But I'm not sure if I > > > can do that with that file or should I create an app folder and nest > > > it like it is in the /satchmo folder. Thanks again for the reply back. > > > > @Stuart Thanks again for your comments and the link to the django > > > template inheritance docs, they both help. > > > > J. > > > > On Dec 3, 7:07 pm, Laszlo Antal <[email protected]> wrote: > > >> Hi, > > > >> On Dec 3, 2010, at 15:38, jc <[email protected]> wrote: > > > >>> I think what I'm not understanding is where is the "<li> product info > > >>> here </li>" part at? This is all I have in my base.html file. > > > >> That is going into > > >> templates/product/category.html template > > >> as I wrote it below. > > >> Copy that template out and modify it. > > > >> lzantal > > > >>> If I > > >>> comment or alter the #content in my styles.css file I can see that > > >>> things can be edited that way. But, there is nothing in the div tag > > >>> within my base.html file. So usinng something {% fro product in > > >>> products %} would be looping nothing, no content as there is no > > >>> content in that <div> block, this is all have there, see below: > > >>> <div id="content"> > > >>> {% block content %} > > >>> {% endblock %} > > >>> </div> > > > >>> On Dec 3, 4:22 pm, lzantal <[email protected]> wrote: > > >>>> Hi > > >>>> On Dec 3, 1:08 pm, jc <[email protected]> wrote:> I see the > > >>>> following code in my base.html so I'm almost positive this > > >>>>> is where I'd go if I was to code it in. Anyone know the code that I > > >>>>> would put in here to make the product align across the page instead of > > >>>>> vertically? > > > >>>> If you mean in the category view then you need to overwrite the > > >>>> templates/product/category.html template. > > >>>> """ > > >>>> <u class="product-category"l> > > >>>> {% for product in products %} > > >>>> <li> product info here </li> > > >>>> {% endfor %} > > >>>> </ul> > > >>>> """ > > >>>> Style product-category class to float the <li>, That's all you need. > > > >>>> lzantal > > > >>>>> <div id="content"> > > >>>>> {% block content %} > > >>>>> {% endblock %} > > >>>>> </div> > > > >>>>> On Dec 3, 3:59 pm, jc <[email protected]> wrote: > > > >>>>>> How do I format my products across the category page instead of them > > >>>>>> going under each other, like this website > > >>>>>> does.http://playingfair.com.au/category/children-s-clothes/ > > > >>>>>> Currently, my products are going vertically down the page, as though > > >>>>>> there is a <br /> after each product is created. > > > >>>>>> Where do I look at the fix this? Can I do this in the Site > > >>>>>> Administration Store or do I need to code that behavior in to the > > >>>>>> site. > > > >>>>>> Thanks for the help in the past, > > >>>>>> J > > > >>> -- > > >>> You received this message because you are subscribed to the Google > > >>> Groups "Satchmo users" group. > > >>> To post to this group, send email to [email protected]. > > >>> To unsubscribe from this group, send email to > > >>> [email protected]. > > >>> For more options, visit this group > > >>> athttp://groups.google.com/group/satchmo-users?hl=en. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Satchmo users" group. > > > To post to this group, send email to [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group > > > athttp://groups.google.com/group/satchmo-users?hl=en. -- You received this message because you are subscribed to the Google Groups "Satchmo users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/satchmo-users?hl=en.
