[pmwiki-users] Marking up the markup

DaveG pmwiki at solidgone.com
Wed Apr 25 16:22:09 CDT 2007


Anyone help? I need to get a class tag inside an anchor link:
      <a href="xyz" class="my_class">text</a>

  ~ ~ Dave

DaveG wrote:
> How would I go about acheiving the same affect with links? Thus, I want 
> to produce:
>     <a href="xyz" class="my_class">text</a>
> 
> Best I've been able to get so far is a SPAN around the anchor.
> 
>   ~ ~ Dave
> 
> DaveG wrote:
>> Excellent, thanks. Research also provide this alternative:
>> * %apply=list class=my_class% test List
>>
>> and to apply the class to a specifc list item:
>> * %apply=item class=my_class% test List
>>
>> REF: http://pmwiki.com/wiki/PmWiki/WikiStyles#Blocks
>>
>>   ~ ~ Dave
>>
>> Petko Yotov wrote:
>>> On Monday 23 April 2007 23:34, DaveG wrote:
>>>> I want to produce this output from within a wiki page:
>>>> <ul class="tabs-nav">
>>>>     <li><a href="#local_ref">text</a></li>
>>>> </ul>
>>>>
>>>> The key being the class on the UL tag. Is it possible to use the normal
>>>> "*" markup and specify a class, or is there an alternate way?
>>> Yes:
>>>
>>> * %list tabs-nav% [[#local_ref|text]]
>>> * [[#local_ref_2|text 2]]
>>>
>>> Or even, somewhere in the page:
>>>
>>> %list class=tabs-nav define=nav%
>>>
>>> * %nav% First list with class="tabs-nav"
>>> * [[#local_ref|text]]
>>> ----
>>> * %nav%  A second list with the same class="tabs-nav"
>>> * [[#local_ref_2|text 2]]
>>>
>>> Petko
>>>
>>>
>>>
>>> _______________________________________________
>>> pmwiki-users mailing list
>>> pmwiki-users at pmichaud.com
>>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>>>
>> _______________________________________________
>> pmwiki-users mailing list
>> pmwiki-users at pmichaud.com
>> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
>>
> 
> _______________________________________________
> pmwiki-users mailing list
> pmwiki-users at pmichaud.com
> http://www.pmichaud.com/mailman/listinfo/pmwiki-users
> 



More information about the pmwiki-users mailing list