Module not showing link element correctly

Status
Not open for further replies.
The module is displayed with divpresssidebarmodule list template. How do you display link elements in this template?
 
What troester said.

Looks like that template is heavily customized. Can you show us the code, probably default_row, which renders those elements?

-- hugh
 
You bet. Here is the default_row.php:

Code:
<div id="<?php echo $this->_row->id;?>" class="<?php echo $this->_row->class;?>">
<table>
 <tr>
          <td>
    <div id="pressarticledate" <?php echo @$this->cellClass['press___articledate']; ?>>
         <?php echo @$this->_row->data->press___articledate;?>
    </div>    
    
    </td>
     </tr>
    <tr>
          <td>
    
    <div id="pressheadlineoutlet" <?php echo @$this->cellClass['press___headline']; ?>
         <?php echo @$this->cellClass['press___outlet']; ?>>     
         <?php echo @$this->_row->data->press___headline;?>&nbsp - 
         <?php echo @$this->_row->data->press___outlet;?>
    </div>    

        </td>
     </tr>
     <tr>
          <td>
    <div id="pressarticleauthor" <?php echo @$this->cellClass['press___articleauthor']; ?>>
         By: <?php echo @$this->_row->data->press___articleauthor;?>
    </div>    
    
    </td>
     </tr>
   
     <tr>
          <td>
    
    <div id="pressarticlesummary" <?php echo @$this->cellClass['press___articlesummary']; ?>>
         <?php echo @$this->_row->data->press___articlesummary;?>
    </div>
    
</td>
     </tr>
    
</table>    

</div>
 
Looks OK, except that you are missing the ['class'] off the end of your cellClass references, so all your cell classes are rendering as 'array' instead of the actual class defs. Those need to be like:

$this->cellClass['press___articleauthor']['class']

But that shouldn't affect the display of the element.

The only thing I can think of to check for is that your link element is set to display in the list, under the element's List settings.

If it isn't, it'll still be included in $this->_row->data, but un-formatted. We only format elements which are specified as being incldued in the List display, to save unnecessary processing. But we still include the "raw" data, in case it is needed by "something else".

-- hugh
 
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top