Hi there,
I'm writing an extension that needs to do the same effect on updating
categorisation as editing a page and saving it, but from the PHP code.
The article being edit/saved has a parser-function in it which
categorises the article.
When I manually edit the page and then save it without changing
anything, the categorisation is updated by the parser-function and I can
see the article listed in that category page.
But when I do this same operation from the code, I see the updated
category link at the bottom of the article, but the title does not show
up in the associated category page unless the categorisation took place
via a manual edit/save.
To do the edit/save from the PHP I'm doing this:
$article->doEdit( $article->fetchContent(), $summary, EDIT_UPDATE );
Does anyone here have any idea what might be different between this
approach and manually edit/save? neither one creates a new revision, but
the manual process does something more which places the article into the
category page properly.
Cheers,
Aran