By ceski on
Hi all,
I've been trying to work with Simple dialog to display some nodes in a popup.
http://drupal.org/project/simple_dialog
It works nicely, I just have some troubles with passing some style through the rel attribute in my link.
In views - configure field - I rewrite the output of my field as :
1. <a href="future/[nid]" class="simple-dialog" title="Score" name="content" <strong>rel="width:900;"</strong>>[field_future_status]</a>
the outcome in the source code :
<a href="future/151" class="simple-dialog" title="Score" name="content" <strong>rel="900;"</strong>>score</a>
==> so it loses <strong>width:</strong> in the rel attribute.
2. <a href="future/[nid]" class="simple-dialog" title="Score" name="content" <strong>rel="width:900;resizable:false;position:[center,60]"</strong>>[field_future_status]</a> (as in the example @ http://drupal.org/project/simple_dialog)
The outcome in the source code :
<a href="future/151" class="simple-dialog" title="Score" name="content" <strong>rel="[center,60]"</strong>>score</a>
==> so it loses width:900;resizable:false;position: in the rel attribute. Everything before the last ":"
Does someone knows why I get this result and how I can solve this ?
Thanks a lot !
Comments
Missing ">"
I don't see where you close the first element.
Shouldn't you have
<a href="future/[nid]" class="simple-dialog" title="Score" name="content">rather than<a href="future/[nid]" class="simple-dialog" title="Score" name="content".To me that would explain the missing chunk, because it gets lost between then and the next close bracket.
drupalshrek
The ">" is actually there
The ">" is actually there but I used the bold button in drupal.org and added afterwards the code tag in drupal.org to make the syntax of my links visible. :-) Sorry for the confusion.