I recently made a small order and learned some knowledge from it and share it with you here
<ul>
<li><a href='{dede:global.cfg_cmsurl/}/'><span>Home</span></a></li>
{dede:channelartlist typeid=’top’ row=’10’}
<li> {dede:type typeid=’top’} <a href=”[field:typelink/]”>[field:typename/]</a> {/dede:type}
<ul>
{dede:channel type=’son’ noself=’yes’}
<li> <a href=”[field:typelink/]”>[field:typename/]</a> </li>
{/dede:channel}
</ul>
</li>
{/dede:channelartlist}
</ul>
</div>
dede:list pagesize=’25’}
[field:global runphp=’yes’ name=autoindex]
$a=”<li class=’line’>”;
$b=”<li>”;
if ((@me%5)==0 && @me!= 30) @me=$a;
else @me=$b;
[/field:global]
<a href=”[field:arcurl/]” target=”_blank”>[field:title/]</a><span class=”rt”>[field:pubdate function=”MyDate(‘Y-m-d’,@me)”/]</span>
</li>
{/dede:list}
Dream Weaving Level 2 column, solve the highlighted problems in the current column
Without saying a word, add the code.
First, modify includetaglibchannelartlist.lib.php
Find $pv->Fields['typeurl']= GetOneTypeUrlA($typeids[$i]);
Add the following code below:
- //The current column is highlighted
- if($typeids[$i][‘id’]?==?$ refObj->TypeLink->TypeInfos[‘id’]){
- $pv->Fields[‘currentstyle’]?=?’? class=”m_hover”‘;
- }
- else{
- $pv->Fields[‘currentstyle’]?=?”;
- }
Save.
When using, use it like this
- <ul? class=”ky7″>
- {dede:channelartlist? type=’son’? noself=’yes’? typeid=’2′}
- <li><a? href=”{dede:field? name=’typeurl’/}”? {dede:field? name=’currentstyle’/}>{dede:field? name=’typename’/}</a></li>
- {/dede:channelartlist}
- </ul>
In this way, the a-tag of the current column will have one more.m_hover class
Just define different styles in css.