techutopia
Total posts: 202
10 Сен 2016 18:19

Hi,

In the files for a record list I wish to add a class to the links for the titles.

e.g.

Currently:

<h2 class="record-title" id="h201473531695821">
<a href="/memories/user-item/495-dale-sharp/20-ewewewew">Test Test Test</a>
</h2>

Required:

<h2 class="record-title" id="h201473531695821">
<a ***class="record-link"*** href="/memories/user-item/495-dale-sharp/20-ewewewew">Test Test Test</a>
</h2>

I've been searching and can't find the file, any help appreciated.

Thanks,

Dale.

Последние изменения: 12 Сен 2016


danielbidala VIP
Total posts: 153
12 Сен 2016 12:52

Which list template do you use?


techutopia
Total posts: 202
12 Сен 2016 13:38

Hi,

It is a home secition item.

The record list is "map".

So I click on icon to edit map template.

Then I have "Show list of records under the map" as the default template.

Ta.

Dale.


pepperstreet VIP
Total posts: 3,837
12 Сен 2016 21:55

techutopia "Show list of records under the map" as the default template.

Hello Dale, templates location is explained here. See chapter 4.

Your default list template should be found here:
../components/com_cobalt/views/records/tmpl/default_list_default.php


Headsup: Hence the documentation article chapter 3. Cobalt has its own template manager.
You might copy/rename the default template to keep it save on updates!
Remember to select your new template in section parameters / map template parameters.


techutopia
Total posts: 202
12 Сен 2016 22:23

Thanks all! ;-)

One day when I know what I'm doing I'll help out too! :-)

Dale.

Работает на Cobalt