Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

...

Code Block
languagehtml/xml
themeDJango
linenumberstrue
<div class="ProductText">$formatHelper.replaceNewLinesWithHtmlBreaks($item.getExtendedDescriptionNoEscapeEditable())</div>

#if ($item.getAttributeValue("productAdditionalText") != "")
	<div class="ProductText">$item.getAttribute("productAdditionalText")</div>
#end
#if ($item.getAttributeValue("productAdditionalText2") != "")
	<div class="ProductText">$item.getAttribute("productAdditionalText2")</div>
#end
#if ($item.getAttributeValue("AdditionalTechnicalInfo") != "")
	<div class="ProductText">$item.getAttribute("AdditionalTechnicalInfo")</div>
#end

#if ($item.getAttributeValue("hhFeatures") != "")
	<h2 class="ProductHeader">Features</h2>
	#set ($itemfeatures = $item.getAttribute("hhFeatures"))
	#foreach ($itemfeature in $itemfeatures.split("\n"))
		<div style="text-indent:-9px; margin:0 0 0 10px;">&bull; $itemfeature</div>
	#end
##	<div class="ProductText">$formatHelper.replaceNewLinesWithHtmlBreaks($item.getAttribute("hhFeatures"))</div>
#end

#if ($item.getAttributeValue("hhIncludes") != "")
	<h2 class="ProductHeader">Includes</h2>
	<div class="ProductText">$formatHelper.replaceNewLinesWithHtmlBreaks($item.getAttribute("hhIncludes"))</div>
#end

... lots more

As

you

can

see

from

the

example,

if

you

want

a

rich

listing

template,

you'll

need

to

add

attributes

to

your

items.


The

attributes

are

located

in

the

item

editor

(Home{rarr}Item Management{rarr}Items{rarr}\

(HomeItem ManagementItems[Select

an

Item

\

]

on

the

[

Catalog

tab

|ucdoc:Catalog Tab]

.

The

tab

is

named

Catalog

because

originally

the

data

on

that

tab

was

just

used

in

the

store

catalogs.

It's

now

used

in

the

store

catalogs,

auto

responders,

Facebook,

eBay,

and

growing.

But,

the

tab

has

remained

'Catalog'.

Tip
Wiki Markup