Ho,
I've setup a simple detailview for private templates - take a look here:
http://tinyurl.com/3cw9os
I use thickbox for displaying content for the moment. The "problem" is, I've preload the whole list and hide the details via display:none; and display them in thickbox.
how this work? (phpwcms 1.3.0 + ex_data v2.7.0)
First I need an ID for each record. But IDs are not provided as Replacement Tag so I setup my own:
goto line 1005 in
include/inc_module/mod_exdata/inc_lib/exdata.classes.frontend.php and add after:
Code: Select all
//when field is empty don't show the titlefield
if ($row_num[$i]['field'.$j.''] and $row_num[$i]['field'.$j.'']!="|") { //| when empty articlelink
$event = str_replace("{TF".$j."}", $fieldname['field'.$j.''], $event);
this Line:
Code: Select all
$event = str_replace("{ID}", $row_num[$i]['id'], $event); //IDREPLACER
then setup in Private Template a [main-template] like this:
Code: Select all
<h3>{EXD_HEAD}</h3>
<ol>
{EXD_ITEMS}
</ol>
then setup in Private Template a [entry-template] like this:
Code: Select all
<!-- ul list template -->
<li>
<a href="#TB_inline?height=360&width=430&inlineId=id_{ID}" class="thickbox">{EF1}</a><!--start_cut2--> - {EF2}<!--end_cut2-->
<div id="id_{ID}" style="display:none">
<h4>{EF1}</h4>
<div style="float:left;">{EF3}</div>
<div style="margin:0 0 0 155px;">
{EF4}<br />{EF2}<br />
{EF5}<br />
{EF6}
</div>
</div>
</li>
include the
Thickbox scripts (+ jquery library) in your phpwcms template (I would suggest to put it in the template/inc_app/thickbox folder.
If you running different Ajax applications you should know which library is where loaded!
thats all.
maybe someone has an better idea (maybe without load the whole content of the list. just call and included via php. if you know what I mean - like the classic article link "more..." in phpwcms article listing.)
hope that helps.
best marcus
[/code]