makeLinks won't really work in this scenario, it isn't designed for this kind 
of output. Use getStarts and your own loop to build it.

On May 3, 2014, at 10:03 AM, Justin Will <[email protected]> wrote:

> I am trying to get MakeLinks build a batch like this but cannot seem to get
> it right.  Could anyone give me some tips?  Here's what I'm trying to build:
> 
> 
> 
> <li><a href="#">1</a></li>
> 
> <li class="active"><a href="#">2</a></li>
> 
> <li><a href="#">3</a></li>
> 
> <li><a href="#">4</a></li>
> 
> <li><a href="#">5</a></li>
> 
> 
> 
> 
> 
> 
> 
> The closest I can seem to get, notice the extra closing li on the first row
> and the missing tags on the last row.
> 
> 
> <li class="active">1</li></li>
> <li><a href="?bst=26
> <view-source:http://test.facilitywerks.com:8888/dashboard/transaction_list.h
> tml?bst=26> " >2</a></li>
> <li><a href="?bst=51
> <view-source:http://test.facilitywerks.com:8888/dashboard/transaction_list.h
> tml?bst=51> " >3</a></li>
> <li><a href="?bst=76
> <view-source:http://test.facilitywerks.com:8888/dashboard/transaction_list.h
> tml?bst=76> " >4</a></li>
> <li><a href="?bst=101
> <view-source:http://test.facilitywerks.com:8888/dashboard/transaction_list.h
> tml?bst=101> " >5</a></li>
> <li><a href="?bst=126
> <view-source:http://test.facilitywerks.com:8888/dashboard/transaction_list.h
> tml?bst=126> " >6</a></li>
> <li><a href="?bst=151
> <view-source:http://test.facilitywerks.com:8888/dashboard/transaction_list.h
> tml?bst=151> " >7</a>
> <a href="?bst=26
> <view-source:http://test.facilitywerks.com:8888/dashboard/transaction_list.h
> tml?bst=26> " >li</a>
> 
> 
> 
> Using this code:
> 
> 
> 
> c_text($prev; $batches; $next)
> 
> $prev := "li"
> 
> $next := "li"
> 
> $batches := "</li><li>"
> 
> $needBatches := $batch->makeLinks($prev; $batches; $next; "" ; "li|active")
> 
> 
> 
> Thanks
> 
> Justin
> 
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://list.aparajitaworld.com/listinfo/active4d-dev
> Archives: http://active4d-nabble.aparajitaworld.com/

Regards,

  Aparajita

_______________________________________________
Active4D-dev mailing list
[email protected]
http://list.aparajitaworld.com/listinfo/active4d-dev
Archives: http://active4d-nabble.aparajitaworld.com/

Reply via email to