Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Category Alignment

Quote Reply
Category Alignment
I have been thru the boards and still can not solve.

This is my subcategory.html:

<dl>
<dt><strong><a class="link" href="<%URL%>"><%Short_Name%></a></strong> <small><class="numlinks">(<%Number_of_Links%>)</small>
<%if Has_New_Links eq 'Yes'%><small><sup class="new">new</sup></small><%endif%>
<%if Has_Changed_Links eq 'Yes'%><small><sup class="new">update</sup></small><%endif%>
</dt>
<%if Description%><dd><span class="descript"><%Description%>(id.<%ID%>)</span></dd><%endif%>
</dl>


The URL <http://www.sfahq.com/> As you can see I need the extra 20% wider space in each Cat Column.

<http://www.sfahq.com/>
The FOG

Quote Reply
Re: Category Alignment In reply to
You need to look in HTML_Templates.pm at sub site_html_print_cat

The start of the category output is # Print Header. where you'll see the HTML to generate a table to put the two columns of categories into.

Compare the source code of one of your category pages to see how the table is put together and you should be able to tweak this routine to get what you want.

All the best
Shaun



Quote Reply
Re: Category Alignment In reply to
Great Fixed that, Still have problem with too much left side and center margin. In subcategory.html I don't know what the <dl> replacement is.

<dl>
<dl><strong><a class="link" href="<%URL%>"><%Short_Name%></a></strong> <small><class="numlinks">(<%Number_of_Links%>)</small>
<%if Has_New_Links eq 'Yes'%><small><sup class="new">new</sup></small><%endif%>
<%if Has_Changed_Links eq 'Yes'%><small><sup class="new">update</sup></small><%endif%>
</dl>
<%if Description%><dl><span class="descript"><%Description%> (id.<%ID%>)</span></dl><%endif%>
</dl>

http://www.sfahq.com/
Thanks
SP
The FOG

Quote Reply
Re: Category Alignment In reply to
Use bulleted list codes:

<ul>
<li></li>
</ul>

OR Menu

<menu>
</menu>

OR Blockquote

<blockquote>
</blockquote>

Time to visit some HTML web sites, I believe. Wink

Regards,

Eliot Lee

Quote Reply
Re: Category Alignment In reply to
After 8 1/4 hrs and 21 ftps and 21 reindexs it finally works right.

<dl>
<dt><strong><a class="link" href="<%URL%>"><%Short_Name%></a></strong> <small><class="numlinks">(<%Number_of_Links%>)</small>
<%if Has_New_Links eq 'Yes'%><small><sup class="new">new</sup></small><%endif%>
<%if Has_Changed_Links eq 'Yes'%><small><sup class="new">update</sup></small><%endif%><BR>
<%if Description%><span class="descript"><%Description%>(id.<%ID%>)</span><%endif%>
</dl>

The addition of the (id.<%ID%>) makes it alot faster to change things in Cats and Descriptions.

http://www.sfahq.com/
Thanks for the help.
FOG

Quote Reply
Re: Category Alignment In reply to
If all it was was 8.5 hours you are lucky! I've put hundreds, maybe thousands of hours into the templates to make them do what I need. But it beats rewriting the code.

Just to prevent confusion in people struggling to make sense of it all:

As for "re-index" I'm sure you meant "re-builds" .... since the changes to the templates are shown on the site when you rebuild, not when you reindex (that works for searches).



http://www.postcards.com
FAQ: http://www.postcards.com/FAQ/LinkSQL/

Quote Reply
Re: Category Alignment In reply to
Pugdog

So if I just work on the templates I don't have to Re-Index??

The 8+ and something hours was just for that 1 boo-boo <BR>

I have about 18 hours a day in this for almost 2 months now, and have no earthly idea how to write it.


Phil King
Quote Reply
Re: Category Alignment In reply to
FOG,

I've put nearly two years into my sites, a lot of which has been modifying Links and LinksSQL. I can remember how confusing it all looked when I first started using it (seems like a lifetime ago Smile) but keep going and you'll soon get the hang of how it all fits together. The more you play with it, the better you'll get at modifying it.

Don't forget if you need help - ask here in the forums - you'll find that most people are really friendly and helpful, and between us we can often help each other out with our projects, tweaks, modifications and problems.

You'll find that even little tweaks can give you an amazing feeling of satisfaction when you figure out how to do what you want. I know it took you 8+hrs for this one, but how good did you feel when you'd done it? Smile

All the best
Shaun