added on Jul 1, 2007 by
I have looked several places on the board to find out how to edit the template in a table view with nice row and nice
columns. From what I read on the template samples, it sort of does not make sense to. It would be pretty nice to
actually see some examples which I we would be able to see it a bit closer then what is there.
I just switched from the axslinks because of the lack of backend control and all, but the template was very easy to set
up is all. Just wanting to get this done so I can get rid of that other thing. LOL Thanks for any help
Crow
added on Jul 1, 2007 by
Sorry for spelling! Tired and you know!
added on Jul 1, 2007 by
hi,
yes I'm working on the manual/documentation.
When a modification is made in some of the data, LinkEX will know what links, and based on that, which categories has
been affected.
All the categories are then rebuilt, and for every category, all the links will be sorted based on the category setting,
and then looped.
In every loop, LinkEX will merge the category template and the link data together, replacing the variables.
When done going through all the links, LinkEX will look for the {TABLE..} template tag, if it is present, the attributes
inside the {TABLE..} is analysed, if it finds a
col="n"
it knows to create n colums, otherwise it'll default to 3. Then all the links/category template data is split into the
number of columns requested and the links are wrapped into <td>'s and <tr>'s.
So to give an example, the following template:
{TABLE cols="2"}
<a href="{$URL}">{$ANCHOR}</a>
Will produce something like this:
<table>
<tr>
<td><a href="http://www.url1.com">Link 1</a></td>
<td><a href="http://www.url2.com">Link 2</a></td>
</tr>
<tr>
<td><a href="http://www.url3.com">Link 3</a></td>
<td><a href="http://www.url4.com">Link 4</a></td>
</tr>
<tr>
<td><a href="http://www.url5.com">Link 5</a></td>
<td></td>
</tr>
</table>
You can use all the attributes you like inside the {TABLE..}, but the following is handled differently:
cols="n" as shown above,
rows="n" which willl force LinkEX to make n rows, it defaults to having as many needed,
valign="xxx" which will be put into the <tr>'s
All other attributes, will be put into the <table> tag. Eg. {TABLE style="width:100%;"
class="mytable" cellpadding="0"}
will make a <TABLE style="width:100%;" class="mytable" cellpadding="0">
Hope this cleared you confusion? Otherwise let me know how you would like the output to be, and I can help you create a
template that suits you :)
- v0id
added on Jul 2, 2007 by
Thanks for explaining it a bit better. I am happy with the backend of linkex compared to axslink one. I like the
category thing.
Well, basically what I want is to have all my links in in a button style format which I use css style.
This is what it looks like from the axslink include: <div class="hardlinks">
{$links}
</div>
Just remember they have a different way of controlling the template. They have a link setting that is this:<a
href="{$link}" title="{$title}" target="_blank">{$title}</a>
And the output is what I put above the last.
You can see what I wanted for my look at the bottom of galleried here:
http://www.nastylittlenymphos.com/
Hope that explains my idea a bit. I want to get rid of this crap script asap. LOL
Crow
added on Jul 2, 2007 by
Actually, I got it working perfectly now after a few tries on how I want it. Thanks for the tips!
Cheers