You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2008/06/25 18:16:45 UTC

[jira] Created: (SLING-558) JST scripting: add breadcrumbs and child nodes navigation to default HTML rendering

JST scripting: add breadcrumbs and child nodes navigation to default HTML rendering
-----------------------------------------------------------------------------------

                 Key: SLING-558
                 URL: https://issues.apache.org/jira/browse/SLING-558
             Project: Sling
          Issue Type: Improvement
          Components: Scripting
            Reporter: Bertrand Delacretaz
            Priority: Minor


The JST HTML rendering should be search-engine friendly: adding breadcrumbs (navigation to parent nodes) and links to child nodes will make the content discoverable.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (SLING-558) JST scripting: add breadcrumbs and child nodes navigation to default HTML rendering

Posted by "Bertrand Delacretaz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Bertrand Delacretaz closed SLING-558.
-------------------------------------

    Resolution: Fixed

Implemented in revision 671596, rendering a node at /content/foo/bar/zz that has a "xyzzy" child node now includes

<div class='breadcrumbs'>
<a href='../../foo'>foo</a>
<a href='../bar'>bar</a>
</div>

and

<div class='childnodes'>
<a href='zz/xyzzy'>xyzzy</a>
</div>

in the default HTML rendering.

The rendering has also been improved to better expose the content, for a node that has title="Hello, Swling world", the default rendering is now

<div id="JstDefaultRendering">
<h1 class='title'>Hello, Sling world</h1>
<div class='breadcrumbs'>...
<div class='childnodes'>...
<div class='title'>Hello, Sling world</div>
</div>

Property with names starting with "jcr:" or "sling:" are omitted from this rendering.

This if followed by javascript code to remove that if javascript (and thus the JST template) is active:

<script language="javascript">
      var e = document.getElementById("JstDefaultRendering"); 
      e.parentNode.removeChild(e);
    </script>

We might want to include these improvements in Sling's default HTML rendering eventually, but for now I'll experiment a bit more here.


> JST scripting: add breadcrumbs and child nodes navigation to default HTML rendering
> -----------------------------------------------------------------------------------
>
>                 Key: SLING-558
>                 URL: https://issues.apache.org/jira/browse/SLING-558
>             Project: Sling
>          Issue Type: Improvement
>          Components: Scripting
>            Reporter: Bertrand Delacretaz
>            Priority: Minor
>
> The JST HTML rendering should be search-engine friendly: adding breadcrumbs (navigation to parent nodes) and links to child nodes will make the content discoverable.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.