I used a mod located at http://www.gossamer-threads.com/perl/forum/showflat.pl?Cat=&Board=LSQLDisc&Number=98906&page=&view=&sb=&vc=1 for inserting headers and footers outside of the templates dir. How do I apply this for 2.0? Thanks.
Feb 12, 2001, 2:22 PM
Administrator (9387 posts)
Feb 12, 2001, 2:22 PM
Post #3 of 13
Views: 4012
If you are using 2.0.1, then you can just do:
<%include /full/path/to/file.txt%>
Cheers,
Alex
--
Gossamer Threads Inc.
<%include /full/path/to/file.txt%>
Cheers,
Alex
--
Gossamer Threads Inc.
Feb 24, 2001, 1:14 PM
Novice (35 posts)
Feb 24, 2001, 1:14 PM
Post #5 of 13
Views: 3987
I would like to include a different file for each category. This was possible with links 2.0 and linkssql 1.13 with some modifications.
I used the tag <%include<<header>>%>
You could then specify a different file.txt for each category, using the header field.
Is this possible in linkssql 2.0.2, and how?
I used the tag <%include<<header>>%>
You could then specify a different file.txt for each category, using the header field.
Is this possible in linkssql 2.0.2, and how?
Feb 24, 2001, 8:47 PM
Veteran / Moderator (6956 posts)
Feb 24, 2001, 8:47 PM
Post #6 of 13
Views: 3947
Check alex's message on the new tags and tag processor for the 2.0.2 version. I think it addresses these issues.
PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Feb 25, 2001, 6:01 AM
Veteran / Moderator (6956 posts)
Feb 25, 2001, 6:01 AM
Post #8 of 13
Views: 3928
http://gossamer-threads.com/p/125631
PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Feb 25, 2001, 6:23 AM
Veteran / Moderator (6956 posts)
Feb 25, 2001, 6:23 AM
Post #9 of 13
Views: 3920
>> I would like to include a different file for each category. This was
>> possible with links 2.0 and linkssql 1.13 with some modifications.
>> I used the tag <%include<<header>>%>
>> You could then specify a different file.txt for each category, using the
>> header field.
>> Is this possible in linkssql 2.0.2, and how?
This is what the header and footer fields in the Category table record are for! If you give it a filename (or a header LESS THAN 20 characters), it looks for the file in the :
$CFG->{admin_root_path}/footers/ and $CFG->{admin_root_path}/headers/
Directories. The links install doesn't automatically create those directories, but you can just create them with most FTP programs (they are in the admin directory with the defs,backup, templates, etc. directories).
Alex should _REALLY_ expand the processing system, and allow the setting of:
$CFG->{footers} = some/user/path
$CFG->{headers} = some/user/path
But I'm sure he will get around to it.
The <%header%> and <%footer%> variables then contain the category specific information from that category record's automatically included file.
PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
>> possible with links 2.0 and linkssql 1.13 with some modifications.
>> I used the tag <%include<<header>>%>
>> You could then specify a different file.txt for each category, using the
>> header field.
>> Is this possible in linkssql 2.0.2, and how?
This is what the header and footer fields in the Category table record are for! If you give it a filename (or a header LESS THAN 20 characters), it looks for the file in the :
$CFG->{admin_root_path}/footers/ and $CFG->{admin_root_path}/headers/
Directories. The links install doesn't automatically create those directories, but you can just create them with most FTP programs (they are in the admin directory with the defs,backup, templates, etc. directories).
Alex should _REALLY_ expand the processing system, and allow the setting of:
$CFG->{footers} = some/user/path
$CFG->{headers} = some/user/path
But I'm sure he will get around to it.
The <%header%> and <%footer%> variables then contain the category specific information from that category record's automatically included file.
PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum