Welcome Guest, Not a member yet? Register   Sign In
How would I create anchor links for each of the list items in list generater?
#1

[eluser]johnmerlino[/eluser]
Hey all,

I'm trying to use this link generator:

http://codeigniter.com/wiki/Generatic_List_Generator/

it works well to generate an unordered list. But what if I want each link to point to a specific page like this:

<ul>
<li>< a href="home">Home</a></li>
<li>< a href="about">About Us</a></li>
<li>< a href="practice">Practice Areas</a>
<ul>
<li>< a href="practice/property">Property Damage</a></li>
<li>< a href="practice/foreclosure">Foreclosure</a></li>
<li>< a href="practice/Bankruptcy">Bankruptcy</a></li>
<li>< a href="practice/debt">Debt</a></li>
</ul>
</li>
<li>< a href="profile">Profile</a></li>
<li>< a href="contact">Contact</a></li>
</ul>
Can this be done with this list builder script and if so, what would I pass as a value to the link key?

I try this:

'link' => '<a > array('insurance_claims','foreclosure_defense','bankruptcy','debt','deficiency','summary_judgment')),'attorney_profile', 'hire', 'contact') . '>');

but this outputs a element with Array as the href value for all of them




Thanks for response.
#2

[eluser]InsiteFX[/eluser]
Use the anchor tag

CodeIgniter User Guide - URL Helper

InsiteFX




Theme © iAndrew 2016 - Forum software by © MyBB