Jump to content

Martinus

Members
  • Posts

    63
  • Joined

  • Last visited

Everything posted by Martinus

  1. Yep! This did the trick: "<p>{$item->vendor->title}</p>" Is this always when taking multiple pages in a selector?
  2. Hello, I try to display my field value from a page but it only shows: 1020->title On my product page I use $product->vendor->title and displays just fine: Samsung My code: <ul> <?php $items = $pages->find("parent=/products/, limit=3, sort=-date"); foreach($items as $item) { echo "<li>" . "<h3><a href='$item->url'>$item->title</a></h3>" . "<p>$item->vendor->title</p>" . "<p>$item->summary</p>" . "</li>"; } ?> </ul> What I do wrong?
  3. I have found the setting for Page Reference Field. I am curious about the multiple page array vs single page: My Vendor can be Vendor A, Vendor B, Vendor C, and so on. This can only be seen on the home page where it lists all products. If I view page Vendor A, then I only have products to list from that Vendor A. Should I choose Multiple Page Array anyway? ps. I could not find a type Decimal Field.
  4. I made fields for Vendor, Seller. Is that the 'page reference field' you mention?
  5. Hi there, I try to setup product pages. The main goal is to have an index list much like Skyscrapers. But there should also be an index of products by Vendor, or by Seller. Do I use different pages with one template? Each product listed opens by clicking the title on these index lists and should be using the same template. Fields displayed: Vendor, Seller, Price and Action. I made price the integer type where Blank and 0 are equivalent. But how about displaying 100,90 ? The Action field will have a value such as: Promo, or Featured, or New (How to do that?) Hope to hear from you.
  6. Hi, I think so. I used an installation with markup. So, once I put everything inside <div id="content"> ...</div> it worked.
  7. Thanks all, for thinking with me. This topic can be closed as solved.
  8. Yes I found it. I feel so stupid. Upon installation I thought it was not mandatory to use. Now my question: is it better to use that, or do it without? I could only think about benefits such as SEO or scroll to section actions.
  9. btw. looking at home page, the earth page is a child of home. Is that correct?
  10. Yes I did. My host directory is: www/production/site/templates and has files like this: _init.php _main.php admin.php basic-page.php home.php and planet.php In admin going to setup > templates it has the basic-page, home and planet templates. the page earth uses planet template.
  11. In step 1 it should be this: <div id="content"> <html> <head> <title>Earth</title> </head> <body> <h1>Earth</h1> <h2>Type: Happy planet, Age: Millions of years</h2> <p>Earth (or the Earth) is the third planet from the Sun, and the densest and fifth-largest of the eight planets in the Solar System. It is also the largest of the Solar System's four terrestrial planets. It is sometimes referred to as the World, the Blue Planet, or by its Latin name, Terra.</p> </body> </html> </div> when placed in between the <div id="content"> ... </div> it works, but I do not know why?
  12. In step 3 at the end it says Now you have created a new page using the template that you added. You are now in the page edit screen and you should see your title field populated with "Earth". Click the View link that appears on this page edit screen. You should see the output of the HTML from step 1. Click the back button in your browser to return to the edit screen. I have this: Home>Earth default content edit this page did I do something wrong?
  13. Hi there, I was wondering if PW is mobile friendly or do I need to add some css? If so, where to find and how to implement? I am thinking of making an index for products (like the demo Skyscrapers) but each product is linking to an external cart program since I did not see that possibility in PW. Thanks, Martin
×
×
  • Create New...