Template for repeating bundle

Hi,

I'm relatively new to Collective Access so maybe I just don't understand it yet... but I'm stuck and think this might be a bug. I use Pawtucket2 version 1.7.8.

I have a repeating bundle that looks like this (json export):

"ca_entities.pk_normdaten":{
   "1898015":{
       "de_DE":{
           "pk_normdaten_url":"lirumlarumloeffelstil",
       },
   },
   "956719":{
       "de_DE":{
           "pk_normdaten_url":"http:\/\/d-nb.info\/gnd\/4267208-9",
       }
   }
}


I'm trying to display this, so I put the following code into 'ca_entities_default_html.php':

{{{
    <unit relativeTo="ca_entities.pk_normdaten">
        <a target="_new" href="^ca_entities.pk_normdaten.pk_normdaten_url"/>^ca_entities.pk_normdaten.pk_normdaten_url</a><br/>
    </unit>
}}}         

which results in

<a target="_new" href="http://d-nb.info/gnd/4267208-9"></a>http://d-nb.info/gnd/4267208-9<br>
 ; 
<a target="_new" href="lirumlarumloeffelstil"></a>lirumlarumloeffelstil<br>

What am I doing wrong? I'm completely puzzled and would appreciate any help.

Thanks and kind regards,

Martin

Comments

  • Ups. It took me really long to realize that I have made a very simple (and stupid) mistake: I put an empty a-tag in my template (<a .../>).

    Kind regards,

    Martin

Sign In or Register to comment.