Hi there
Cobalt running great!
I am strugling to figure out, how (in article list) I can get the data sorted by pressing the column title / label. This is on my custom fields. As I can't find anything in the settings, I assume I have to mess with the template. My php skills are very limited though! To me it looks like it's this code I want to fiddle with (in particular the 4th line):
<?php foreach ($this->total_fields_keys AS $field):?>
<?php if(in_array($field->key, $exclude)) continue; ?>
<th width="1%" nowrap="nowrap">
<?php echo JText::_($field->label);?></th>
<?php endforeach;?>
Will I have to put in an if statement to check whether my field is sortable and then create a link or something? Or do I need to hardcode each column?
I want a very simple design on my page and have therefore removed the adminform and search field, hence sorting on the title will be ideal.
A few minor questions related to this:
Is it possible to get a different label than the field name or make a description come up when mouse is hovering over label?
If I want a field before the title, should I hardcode this in and then exclude it in settings?
Is it possible NOT to have a label (again without hardcoding all of it), as some info is self-explanatory, e.g. a logo?
Thanks in advance if anyone can help:)
Regards
Ove
Hi there
Cobalt running great!
I am strugling to figure out, how (in article list) I can get the data sorted by pressing the column title / label. This is on my custom fields. As I can't find anything in the settings, I assume I have to mess with the template. My php skills are very limited though! To me it looks like it's this code I want to fiddle with (in particular the 4th line):
Will I have to put in an if statement to check whether my field is sortable and then create a link or something? Or do I need to hardcode each column?
I want a very simple design on my page and have therefore removed the adminform and search field, hence sorting on the title will be ideal.
A few minor questions related to this: Is it possible to get a different label than the field name or make a description come up when mouse is hovering over label? If I want a field before the title, should I hardcode this in and then exclude it in settings? Is it possible NOT to have a label (again without hardcoding all of it), as some info is self-explanatory, e.g. a logo?
Thanks in advance if anyone can help:)
Regards
Ove