Keyword

How do you reference objects within the feed array? E.g. item 3 (title, descript

  • k8fisher9
  • k8fisher9's Avatar Topic Author
  • Offline
  • New Member
More
13 years 6 days ago - 13 years 6 days ago #44413 by k8fisher9
Hi

just wondering if someones successfully adjusted the code to reference specific items in the rss array?
E.g. Print odd numbered rss items here from the array, print even numbered rss items here?

Im not familiar with the notation which you would use to access the array of rss items, and the structure of the rss items

<?php echo substr($feed[3]->itemTitle,0,150).'...' ?>  --- what type of notation would you use to access item 3 from the rss array?

Using this notation gives error message of:
Fatal error: Cannot use object of type JObject as array in /homepages/33/d345251787/htdocs/chemmy/modules/mod_jw_srfr/tmpl/default/default.php on line 62

Does this mean you cannot index into the array at all or have I used the wrong notation?

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum