![]() |
|
Home | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() Along the same lines as you have the option to "embed a view in a post"... I want to do the same thing, but need the php code, to be able to embed a view, from within the php code of a page (if this is possible).
So what I want to be able to do: On some sites, it would be nice to have my datafeedr store categories outputted above my latest blog posts. So instead of the home page of my site, pointing at the datafeedr store homepage, I want to have the home page of my site, be my latest blog posts, but above those, output my datafeedr store categories. I would have to go into the main.php file or whichever one it is, and add the code to output a custom view, above the latest posts loop. Is this possible? ![]() |
#2
|
||||
|
||||
![]() Hi
Yes, it's possible and pretty straightforward. The first thing you need to know about is this: PHP Code:
Here are a few examples: This embeds your store's homepage anywhere you want (not sure how useful that is): PHP Code:
PHP Code:
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 Code:
PHP Code:
Eric
__________________
![]() ![]() ![]() ![]() |
#3
|
|||
|
|||
![]() Great I look forward to being able to do that.
After all the playing around tonight, I have a lot more questions... but they will have to wait until manana. 1am and bed is calling. |
#4
|
|||
|
|||
![]() I'm having trouble with this.
I'm using the tag: PHP Code:
Last edited by pnewcomb : March 7th, 2011 at 08:51 PM. |
#5
|
||||
|
||||
![]() Hi
You need to go here: The Factory > Your Store > VIEWS > CUSTOM VIEWS > Custom View Name > View Properties and add view to the Custom CSS ID field. Eric
__________________
![]() ![]() ![]() ![]() |
#6
|
|||
|
|||
![]() Thanks Eric, that worked like a charm!
|
#7
|
|||
|
|||
![]() Hi!
I tried to add Quote:
Quote:
|
#8
|
||||
|
||||
![]() What version of the plugin are you using?
__________________
![]() ![]() ![]() ![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Add a View Library | ayorofrance | Feature Requests | 0 | January 9th, 2011 07:08 AM |