A little help on html template tuning

Status
Not open for further replies.

lcollong

FabriKant d'applications web
Hi,

I'd like to display the list title in the place indicated on the screenshot. This a "lost space" where the title would ideally show (also it can't be a definitive mod as it's only there when filters are on). I've tried with or without div but the result is broken or at best the filter div goes under the title alignment. I can't make it under the button while keeping the filter block at its place. I'm using the standard default list template. Probably obvious for a HTML/css specialist that I'm definitively not ! Anys hints ?
 

Attachments

  • Capture.JPG
    Capture.JPG
    51.6 KB · Views: 387
Copy + rename the default template folder
edit default.php
change the first lines to
Code:
defined('_JEXEC') or die;
 
if ($this->tablePicker != '') : ?>
    <div style="text-align:right"><?php echo JText::_('COM_FABRIK_LIST') ?>: <?php echo $this->tablePicker; ?></div>
<?php
endif;
?>
 
<?php ?>
<form class="fabrikForm" action="<?php echo $this->table->action;?>" method="post" id="<?php echo $this->formid;?>" name="fabrikList">
 
<?php echo $this->loadTemplate('buttons');
if ($this->showFilters) :
    echo $this->loadTemplate('filter');
endif;
?>
<div class="titlebox">
<?php
if ($this->getModel()->getParams()->get('show-title', 1)) :?>
    <h1><?php echo $this->table->label;?></h1>
<?php endif;
echo $this->table->intro;
?>
</div>
<?php
/*
* For some really ODD reason loading the headings template inside the group
in custom_css.php add
Code:
.titlebox {display:block;width:45%;position:absolute;top:45px}

This will display title + intro below the buttons.
Tested in frontend only. You can't put a fabrik content string into the intro with this version.
 
Not a little help ! Thanks Troester.
So it was a div. I missed the css (once again) ... :-(
Here is my final div code as I wanted to display also the menu title :

Code:
<div class="titlebox">
<h1><?php
if ($this->getModel()->getParams()->get('show-title', 1)) : echo $this->table->label . "</br>";
endif;
    $app = JFactory::getApplication();
    $menu  = $app->getMenu();
    $active  = $menu->getActive();
    echo $active->title;
?></h1>
<?php
echo $this->table->intro;
?>
</div>

It looks great !
 

Attachments

  • Capture.JPG
    Capture.JPG
    32.8 KB · Views: 416
Status
Not open for further replies.
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top