textpattern resources [ge]

Frisch aus der Presse

Linkfarben dynamisch einstellen

Autor: Alex
 

Der kleine hack stammt von stevechamp siehe -> Forum

<li<?php if ($GLOBALS['id'] == <txp:article_id />) { echo " class="current""; } ?>>
<txp:permlink><txp:title /></txp:permlink></li>

Knapp ausgedrückt wird eine css class, hier namens ‘current’, eingefügt, wenn es sich um die korrekte Artikel ID handelt. Für die class setzt man im stylesheet die Attribute.

 
Filed:
Mods & Hacks
| 10.10.04 |

Neue TXP Sites

    Unable to connect to del.icio.us