Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How can I modify “add a site” form?

Quote Reply
How can I modify “add a site” form?
A few questions.

1. How can I modify “add a site” form? I would like to modify some fields and add some comments in between the fields.

2. Is there any way to modify “what's new” page so I don't have new sites listed per day but all together? When page is opened I would like to be able to see all new sites listed there. Also after how long the pages are removed from “what's new” page?

3. How can I change site description font in search results? Right now whatever font I choose for site title in link.html is used for site description also.

4. How to change path of "home" link at the top of each page? I would like this link to point to my home page not to SQL links example. SQL links example is in the pages subfolder and my index page is in public_html.

I apologize if any of these questions are answered already, but I wasn't able to find the answers or answers where not good enough.

Thank you.

Z
Quote Reply
Re: [Z] How can I modify “add a site” form? In reply to
Hi,

1. The template for the add site form is include_form.html

2. If you want to display all the new links on one page, the easiest way it to turn off span pages in the Admin>Setup>Build Options. However, this will turn off the span pages for all the categories as well. Hopefully this will be separated in a future release. To just turn it off for the What's New page you would need to hack the code in a file. The setting for how long links are considered new is also in the Setup>Build Options.

3. Not sure what you mean here. I think the link.html file has

<%body_font%><%Description%></font><br>


If you don't want to use the body_font then you can just change it to whatever you want using something like

<font face="whatever"><%Description%></font><br>


4. To change the url of the home link in the menu bar you just need to edit the include_menu.html template. If you want to change the url in the title_linked it is more difficult.

Hope this helps with some of your questions,

Laura.
The UK High Street
Quote Reply
Re: [afinlr] How can I modify “add a site” form? In reply to
Thank you. It helped a lot. Smile
Quote Reply
Re: [afinlr] How can I modify “add a site” form? In reply to
 
Under 4. I was asking about links under menu bar. For example Home>Art>Dance>Ballet Each of these is a link to certain category and while you drill down they change. I want to change path of the first one "Home".

Thank you

Z
Quote Reply
Re: [Z] How can I modify “add a site” form? In reply to
Hi!

Maybe this could help you:

http://www.gossamer-threads.com/...orum.cgi?post=207306
Quote Reply
Re: [Payooo] How can I modify “add a site” form? In reply to
I found this post in the forum and it worked.

Hi,

I did it on a different way on my site.
The home page is at http://mishpat.net and the pages are built in http://mishpat.net/law/

LinksSQL builds a home page at http://mishpat.net/law/ but non of the pages point there. The only thing I had to change was the linked title bar.

In build.pm sub build_title_linked I changed the default to the following:
$output = qq| <a href="http://mishpat.net">$top</a> :|;

Now all the pages point to http://mishpat.net as the home page, and not to http://mishpat.net/law (so all you have to do is change the URL to yourdomain.com).
The page on http://mishpat.net was manually built and is not generated by LinksSQL build (this has other advantages such as the ability to choose which subcategories appear on the home page).

- Didi
Quote Reply
Re: [Z] How can I modify “add a site” form? In reply to
This works, but you have to keep in mind that you have to change that again every time you upgrade Links SQL.

Ivan
-----
Iyengar Yoga Resources / GT Plugins