Jump to content

many listings: change of default # of listings lead to error


Michael

Recommended Posts

Hi,

 

is it already sort of obvious that I am testing the widget factory on my side?  ;) I noticed the following:

 

1) grab the code of a many listings widget with default number of listings and place it on your website = fine

 

e.g. this one: http://demo.reviewsforjoomla.com/widgets?wid=2

 

2) change the number of listings from default value (here: 3) to lets say 5 and place the widget on your website: widget cannot be loaded anymore

 

I am seeing this with your demo widget as well as with my own widgets. I do not know why, but if you compare the widget codes

 

1)

<div data-wid="0sKSV" data-action="listings/many" data-count="3" data-order="rating" data-catid="24" data-jr_state="new-york" data-jr_city="new-york" data-summary="20" data-userrating="1"><img src="http://demo.reviewsforjoomla.com/images/logo.png" alt="image"> <br> Find the best restaurants in New York at <a href="http://demo.reviewsforjoomla.com/search/search-results?order=rating&cat=24&criteria=3&jr_state=new-york&jr_city=new-york">demo.reviewsforjoomla.com</a></div>
<script>(function(d,o,j,w,m){w=d.createElement(o),m=d.getElementsByTagName(o)[0];
w.async=1;w.src=j;m.parentNode.insertBefore(w,m)
})(document,'script','//demo.reviewsforjoomla.com/components/com_jreviews_addons/widgetfactory/views/js/widget.loader.min.js');</script>

 

and

 

2)

<div data-wid="0sKSV" data-action="listings/many" data-count="5" data-order="rating" data-catid="24" data-jr_state="new-york" data-jr_city="new-york" data-summary="20" data-userrating="1"><img src="http://demo.reviewsforjoomla.com/images/logo.png" alt="image"> <br> Find the best restaurants in New York at <a href="{url}">demo.reviewsforjoomla.com</a></div>
<script>(function(d,o,j,w,m){w=d.createElement(o),m=d.getElementsByTagName(o)[0];
w.async=1;w.src=j;m.parentNode.insertBefore(w,m)
})(document,'script','//demo.reviewsforjoomla.com/components/com_jreviews_addons/widgetfactory/views/js/widget.loader.min.js');</script>

 

you see that in #2 the deeplink somehow gets lost.

 

Tricky thing is that the preview of #2 is shown correctly in advance.

 

Further thing I found out: This must be somehow related to the content of the static html section in the backend. Yours says:

 

<img src="http://demo.reviewsforjoomla.com/images/logo.png" alt="image" />
<br />
Find the best restaurants in New York at <a href="{url}">demo.reviewsforjoomla.com</a>

 

If you delete this field, the many listing widget works as intended with different numbers of listings.

 

As far as I see, the img src is not the problem, but rather the {url}, which somehow causes this error. At least this could be reproduced by me several times.

 

Maybe you can have a look into this.

 

Thanks for your effort!

 

BR,

 

Michael

 

 

Link to comment
×
×
  • Create New...