View Single Post
  #2  
Old January 9th, 2011, 10:33 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi

Yes, it's possible and pretty straightforward.

The first thing you need to know about is this:
PHP Code:
<?php echo datafeedr_tag(); ?>
That function will display most of your views (doesn't currently work with widgets at this time) anywhere on your site when called from your .php files.

Here are a few examples:

This embeds your store's homepage anywhere you want (not sure how useful that is):
PHP Code:
<?php echo datafeedr_tag("home"); ?>
Embed a product details page for a single product:
PHP Code:
<?php echo datafeedr_tag('product?p=850801159528968')?>
With this you can embed a category list:
http://www.datafeedr.com/forums/show...65&postcount=2

Or you can embed any custom view that you create by following this pattern:
PHP Code:
<?php echo datafeedr_tag("Custom View Name"); ?>
Embed a category page anywhere in your .php files:
PHP Code:
<?php echo datafeedr_tag("category?c=514253"); ?>
Embed your Sales Items custom view anywhere:
PHP Code:
<?php echo datafeedr_tag("Sale Items"); ?>
The real power is when you create new custom views to handle small tasks such as displaying a category list.

Eric