Conversation
|
Isn't that basically local in scope? That is, shouldn't you need something like Apologies if that's a silly remark; I should head off to bed so I only skimmed it. But in case that's all it is it might suffice to resolve the problem. ^_^ |
| $this->_title($title); | ||
| $this->_authors($authors); | ||
| $this->_content($content); | ||
| $test = ["cons","truct"]; | ||
| $this->_content_enclosures($test); |
There was a problem hiding this comment.
in __construct() the setter _content_enclosures() works
| $entry->_tags($tags); | ||
| $entry->_feed($this); | ||
| $test2 = ["lo","ad","Ent","ry"]; | ||
| $entry->_content_enclosures($test2); | ||
| $entry->hash(); //Must be computed before loading full content |
There was a problem hiding this comment.
this setter _content_enclosures() does not work
There was a problem hiding this comment.
I have not looked into it. but first test would be to get the content again there.
Either via debugging, writing to a test file, or writing to the logs, which I often do, e.g.:
syslog(LOG_DEBUG, __METHOD__ . ' ' . json_encode($entry->content_enclosures()));
please have a second look on the source code :) |
|
By the way, I have a draft of code on my side to save the enclosures when we receive them, and be better able to output them again |
How is there the current status? |
|
I close this draft. I go forward with #4944 |
I need your help:
My general goal: I want to improve the enclosures, that HTML is set in
Feed->loadEntries()but it would make sense to have the HTML innormal.phtml.I added
FreshRSS_Entry->content_enclosureand it setter_content_enclosures()and gettercontent_enclosures().The issue: with $test (in the constructor) it works, but $test2 (in loadEntries()) it does not work,
How to test:
print_r()outputIt is now:

Expected behaviour:
Array ( [0] => lo [1] => ad [2] => Ent [3] => ry ) 1Any help?