xtoc (xtoc) wrote in smartsitelj,
xtoc
xtoc
smartsitelj

Parent macro isn't working correctly

Is only tested in smartsite 5.2

When you are using a parent macro (<se type="parents" />) you will get a problem when it shows more then 3 results.
Example:
/title1/title2  /title3

Instead of
/title1/title2/title3

the second result will get an space. If you check the source you will see this space is actually a breakline.
This is a know issue. There is only one way to solve this issue.

Check example below:

<se type="parents" save="buffername" />
aim="no"
format="/%navtitle%"
footer="/{page:navtitle}"
separator=""
replacedata=" /:=/"
maxlevelsback="6"
/>

Do not use a macro in xml style and also use replacedata to remove the space from the resultoutput.
Subscribe
  • Post a new comment

    Error

    Comments allowed for members only

    Anonymous comments are disabled in this journal

    default userpic

    Your IP address will be recorded 

  • 0 comments