Datafeedr Support Forums

Datafeedr Support Forums (/index.php)
-   Tips, Tricks & Tutorials (/forumdisplay.php?f=66)
-   -   How to show products in posts via tags? (/showthread.php?t=10824)

brinch July 18th, 2014 07:59 AM

How to show products in posts via tags?

I have made a custom view which I am using in my blog posts when I make for example a top 10 review of products. I am using it after each review = 10 times per post. The short code I am using is: [DFR:My custom view?word=coca cola]
My custom view = the name I gave the view when I made it
coca cola = the brandname from where I want products to be shown - it can be more then one word.

Now I became aware that when I use the same short code, I have an issue with illegal attributes bec. it is the same CSS ID.

Does any of you have a good tip, idea or maybe an alternative, to how I can show products in posts via tags/keywords/brandname without having illegal css as above?

I can't imagine that I have to make a new view for each block of products I want to show...


Eric July 18th, 2014 09:20 AM

Hi Thomas,

What you can do to get rid of duplicate CSS IDs is to configure your custom view to "Don't use layout for this view" (under View's menu > View Properties).

The only issue then is you will need to add a wrapper <div> around all of your embedded views like this:

HTML Code:

<div id="view">
        [DFR:My custom view?word=coca cola]
        [DFR:My custom view?word=foobar]
        [DFR:My custom view?word=qwerty]


brinch July 18th, 2014 09:33 AM

Perfect :-)


All times are GMT -5. The time now is 12:51 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.