Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Which Template builds the "New" Static pages

Quote Reply
Which Template builds the "New" Static pages
I'm confused here... Which template is used to build the static pages, named by date, of the New listings? I'm assuming it's the same template used for the cool pages.

Safe swoops
Sangiro
http://www.dropzone.com/
Quote Reply
Re: Which Template builds the "New" Static pages In reply to
new.html

Regards,

Eliot Lee
Quote Reply
Re: Which Template builds the "New" Static pages In reply to
....I don't think so. That one builds the page with the links to the static pages that represents the new links for each day.
I'm looking for the template (I'm using static pages) which build the files called 2000-12-10.html, 2000-12-11.html, not for the template which builds the index file for the /New/ directory - that one is built by new.html.

Am I wrong?



Safe swoops
Sangiro
http://www.dropzone.com/
Quote Reply
Re: Which Template builds the "New" Static pages In reply to
I think it is done in nph-build.cgi - there isnt a specific template.

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Which Template builds the "New" Static pages In reply to
Hi,

The same template does both, it's just <%link_results%> is different depending on whether it is the index page or not.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Which Template builds the "New" Static pages In reply to
That makes sense. Here's my problem. I present my list of links in a table format. To be able to do that I need to place the <table> tags in the new.html template and the actual listings I assume are being generated through link.html, which then has a bunch of <TR> and <TD> tags to create the table rows for each link.

The index page of the /New/ directory obviously looks a lot different - a simple date, linked to the appropriate file. Now, you should be able to see how adding <table> tags to the new.html template would screw this up as the script obviously does not use link.html to create the index file for /New/

Any way I can split these two? You can see my stage here:
http://www.dropzone.com/gear/index1.shtml


Safe swoops
Sangiro
http://www.dropzone.com/
Quote Reply
Re: Which Template builds the "New" Static pages In reply to
In Reply To:
Am I wrong?
Yep. Wink

Regards,

Eliot Lee
Quote Reply
Re: Which Template builds the "New" Static pages In reply to
Hi,

There is a tag for that. Change your new.html template to something like:

<%if new_index%>
<%link_results%>
<%endif%>
<%ifnot new_index%>
<table>
<%link_results%>
</table>
<%endif%>

Let me know if that doesn't make sense.

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: Which Template builds the "New" Static pages In reply to
Makes perfect sense - I'll try it. Thanks Alex.

Safe swoops
Sangiro
http://www.dropzone.com/
Quote Reply
Re: Which Template builds the "New" Static pages In reply to
Alex - tried this one, both the index page and the detailed pages are building using the second <if> statement - so now my index listing has the two table tags... I think we're close though. Is this the correct tag?

Safe swoops
Sangiro
http://www.dropzone.com/
Quote Reply
Re: Which Template builds the "New" Static pages In reply to
Sorry, that tag will be available in the final due out tommorrow, it wasn't in the last beta.

Cheers,

Alex

--
Gossamer Threads Inc.