You are here: Foswiki>Tasks Web>Item10256 (11 May 2015, GeorgeClark)Edit Attach

Item10256: TOC incorrectly including images

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: TOC
Branches:
Reported By: BenHall
Waiting For:
Last Change By: GeorgeClark
Using TOC for a topic other than the current topic causes images in headers to be displayed.

For example If we have a topic called TestTopic with a header like this:

---+ <img src="/pub/Main/TestTopic/test.gif /> Test Topic

Then in another topic we include it:
%TOC{TestTopic}%

This will result in the example test.gif being displayed in the TOC.

This does not happen if you are using TOC on the topic that actually has images in headers. Therefore behavior is inconsistent. The desired behavior is not to include images in a TOC.

-- BenHall - 13 Jan 2011

Tested on Foswiki 1.2, images are consistently displayed in the TOC regardless of where it's included from. I'd think that if you include an image in a heading, it should show in the TOC as well.

Could you explain a bit more on why this would be incorrect behavior?

-- GeorgeClark - 06 Jan 2015

No response, changing to no action.

-- GeorgeClark - 11 May 2015
 

ItemTemplate edit

Summary TOC incorrectly including images
ReportedBy BenHall
Codebase 1.1.2, 1.1.0
SVN Range
AppliesTo Engine
Component TOC
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease n/a
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r3 - 11 May 2015, GeorgeClark
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