Results 1 to 2 of 2
  1. #1
    Full Member jazzylee77's Avatar
    Join Date
    February 18th, 2005
    include "featured products" atother pages?
    I'm wanting to mix perl, php and html again.

    In the dyse templates random products are displayed by <!--cat.feature.grid.3-->

    I'm thinking it would be cool if the script would also send the random products to a special url like

    Then I could include that with php into my index page. And if I happen to have more than one shop, I could use a rotator script to rotate between all the shops featured products.

    Or maybe some other method. It would just be another nice way to entice visitors and spiders on into the shops.

  2. #2
    ABW Ambassador cusimano's Avatar
    Join Date
    January 18th, 2005
    Toronto, Canada
    DySE does not support including its output into other pages (e.g.: like You would have to make a .php script that fetches DySE output using the php function file_get_contents such as:

    thehtml = file_get_contents(url)

    Then parse thehtml to isolate the Featured Products section. In your DySE template add recognizeable comments before/after the featured products so you can easily find them in PHP and delete before/after them. You might want to cache this html to disk and stale it out after a while (e.g.: 1 minute), that way you don't keep calling the DySE page each time.

    Yours truly,
    Cusimano.Com Corporation
    per: David Cusimano

  3. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Replies: 0
    Last Post: April 5th, 2010, 02:56 AM
  2. Replies: 4
    Last Post: November 29th, 2008, 07:31 AM
  3. Replies: 2
    Last Post: July 29th, 2005, 12:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts