Is there a way to get the full article information? It seems that CM
Auto Readmore has found a way, see
http://extensions.joomla.org/extensions/news-display/articles-summary/17979
I would very much want to develop for 1.6+, if I only would know how...
Thanks,
parvus
--
http://www.fastmail.fm - mmm... Fastmail...
Check out Michael Babker's and Andrea Forghieri's workarounds in the
tracker item that you mentioned.
Kind regards,
Nick
> --
> You received this message because you are subscribed to the Google Groups
> "Joomla! General Development" group.
> To post to this group, send an email to
> joomla-de...@googlegroups.com.
> To unsubscribe from this group, send email to
> joomla-dev-gene...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/joomla-dev-general?hl=en-GB.
>
>
Thank you. I somehow missed Andrea's suggestion.
Michael's suggestion crossed my mind too, but is impractical. Querying
the database on the introtext field is hardly a solution to consider. an
content plugin can be scheduled to run before or after other content
plugins. Any content plugin can - and probably will - alter the
contents. A query will then not give any result. Or: what to when a
query yields two or more results? This solution is not feasible.
Regarding Andrea's suggestion: I can't find any information on the
onContentBeforeDisplay event - except how to code for it. What is this
event (originally) meant for? What is the difference with
onContentPrepare (except the available information, that is)? How this
event fit architecurally?
Also, on StackOverflow, I found this:
http://stackoverflow.com/questions/6056886/joomla-plugin-how-to-get-article-tile-and-article-id
Haven't tried it out yet, though.
Greetings,
parvus
On Tuesday, September 27, 2011 12:45 AM, "Nick Savov"
--
http://www.fastmail.fm - IMAP accessible web-mail
1)
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tra
cker_item_id=24340 - Passes the ID as well as the introtext objects to
onContentPrepare
2)
http://joomlacode.org/gf/project/joomla/tracker/?action=TrackerItemEdit&tra
cker_item_id=26421 - Adds a context to all views passing to
onContentPrepare via JHtmlContent::prepare (includes the com_content
category and featured views)
Note that the platform change that was required for the context has
already been committed and was included in the Platform 11.2 tag which is
the platform version in J! 1.7.1.
Just a question simple question: and about performance? Pass entire object didint make diference?
Is is not really used os at least good part of plugins os this type, and have a good (and documented) workaroud why not just stay as is since j16?
att. Emerson
/android
I am now using the onContentBeforeDisplay() event in my content plugin,
but this comes with its own set of problems, so it seems.
- I noticed that this indeed gives the full article object, but it
doesn't seem to play nice for the featured view:
- On 1.6, the fulltext field is not defined,
- On 1.7, the fulltext field is empty.
And this even if fulltext does exist in the database. This only
happens in a "featured" view, not in a category view or any other
view.
- Worse, the event is even not triggered in the categories view: the
code in components/com_content/views/categories/view.html.php lacks any
trigger calls.
Is this all intended behavior from the core? Or am I missing something?
Greetings,
On Wednesday, September 28, 2011 9:59 PM, "Michael Babker"
--
http://www.fastmail.fm - The way an email service should be