You are here: Foswiki>Tasks Web>Item14540 (02 May 2018, StefanH)Edit Attach

Item14540: PublishPlugin: Not all resources published correctly

Priority: Normal
Current State: New
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: PublishPlugin
Branches: master
Reported By: StefanH
Waiting For:
Last Change By: StefanH
In a recently published topic the following code is generated:
<link media="all" class="head JQUERYPLUGIN::COMMENT" type="text/css" href="../System/CommentPlugin.attachments/comment.css" rel="stylesheet"><!--JQUERYPLUGIN::COMMENT-->
<link href="../System/TwistyPlugin.attachments/twisty.css" rel="stylesheet" type="text/css" class="head JQUERYPLUGIN::TWISTY" media="all"><!--JQUERYPLUGIN::TWISTY: requires= missing ids: JavascriptFiles/foswikiPref-->
<link href="../System/SmiliesPlugin.attachments/smilies.css" rel="stylesheet" class="head SMILIESPLUGIN" type="text/css" media="all"><!--SMILIESPLUGIN-->
The file ../System/JavascriptFiles/foswikiPref.js is neither transferred to the published directory nor referenced somewhere.

-- StefanH - 24 Nov 2017

Should be OK now

-- Main.CrawfordCurrie - 26 Jan 2018 - 19:17

I'm afraid I have to reopen this. I just tested it with the latest plugin version 3.4, but foswikiPref.js is still not published.

My parameters are:
./rest /PublishPlugin/publish "topics=MyWeb.TestPage" publishskin="myskin" format="file" outfile="publish-test" allattachments="1"

-- StefanH - 02 May 2018

After further analysis it seems the corresponding line is included by our "myskin" template in this case:
%ADDTOZONE{"script" id="JavascriptFiles/foswikiPref" text="<script type=\"text/javascript\" src=\"../System/JavascriptFiles/foswikiPref.js\"></script>" requires="JQUERYPLUGIN::FOSWIKI"}%
I don't know if the PublishPlugin should handle this. If not I am fine to close this then.

-- StefanH - 02 May 2018
Topic revision: r4 - 02 May 2018, StefanH - This page was cached on 11 Sep 2020 - 23:26.

The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy