This question about Using an extension: Answered
publish from the command-line does not translate links in feeds from HeadlinesPlugin
When published from the command-line, links in feeds from the
HeadlinesPlugin aren’t translated to html links and still point to the wiki. This is not an issue when published from the wiki using a web browser, even when the options passed to publish are identical.
For example, with:
PUBOPTIONS="format=file;defaultpage=WebHome;skin=classewwwpublish;enableplugins=BreadCrumbsPlugin,ImagePlugin,DateTimePlugin,HeadlinesPlugin"
the following does not handle news or events items properly:
perl -T rest /PublishPlugin/publish web=$webname topiclist=WebHome ${PUBOPTIONS}
while this does.
curl 'https://our.wiki.server/bin/rest/PublishPlugin/publish?;web=$webname;topiclist=WebHome;${PUBOPTIONS}'
And here’s a diff comparing the links:
< <article><h1><a href="/Home/NewsAndEvents/JobsCornell23641" target="_top">Mechanical Design-Drafter (Drafter III)</a></h1></article>
< <article><h1><a href="/Home/NewsAndEvents/JobsAcad3676" target="_top">Postdoctoral Associate</a></h1></article>
< <article><h1><a href="/Home/NewsAndEvents/JobsAcad2253" target="_top">Assistant Professor</a></h1></article>
---
> <article><h1><a href="../NewsAndEvents/JobsCornell23641.html" target="_top">Mechanical Design-Drafter (Drafter III)</a></h1></article>
> <article><h1><a href="../NewsAndEvents/JobsAcad3676.html" target="_top">Postdoctoral Associate</a></h1></article>
> <article><h1><a href="../NewsAndEvents/JobsAcad2253.html" target="_top">Assistant Professor</a></h1></article>
--
DevinBougie - 02 May 2014
The format of PUBOPTIONS passed in the
rest
call is invalid; parameters have to be separated by spaces, not semicolons.
--
Main.CrawfordCurrie - 07 May 2017 - 09:11