Gossamer Forum
Home : Products : Gossamer Links : Discussions :

How do I <%insert%> with Links 2,0?

Quote Reply
How do I <%insert%> with Links 2,0?
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.

Quote Reply
Re: How do I <%insert%> with Links 2,0? In reply to
Create Global tags through the admin script.

Search this forum for Global.

Regards,

Eliot Lee
Quote Reply
Re: How do I <%insert%> with Links 2,0? In reply to
If you are using 2.0.1, then you can just do:

<%include /full/path/to/file.txt%>

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: How do I <%insert%> with Links 2,0? In reply to
Cool, thanks!!!!!!!!!!!

Quote Reply
Re: How do I <%insert%> with Links 2,0? In reply to
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?

Quote Reply
Re: How do I <%insert%> with Links 2,0? In reply to
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
Quote Reply
Re: How do I <%insert%> with Links 2,0? In reply to
Sorry, Pugdog, I have searched all the forums, but I can not find that message. Where is it?

Quote Reply
Re: How do I <%insert%> with Links 2,0? In reply to
http://gossamer-threads.com/p/125631


PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: How do I <%insert%> with Links 2,0? In reply to
>> 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
Quote Reply
Re: How do I <%insert%> with Links 2,0? In reply to
I did what you said, made new folders "headers" and "footers". It is working great. Thanks a lot for your help, pugdog!

Quote Reply
Re: How do I <%insert%> with Links 2,0? In reply to
In Reply To:
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.
Would be very happy to see this future soon.Smile Alex?

Quote Reply
Re: How do I <%insert%> with Links 2,0? In reply to
Added to the todo list. =)

Cheers,

Alex

--
Gossamer Threads Inc.
Quote Reply
Re: How do I <%insert%> with Links 2,0? In reply to
How is this done in 2.0.4 ?
I read that include files are referenced to admin/templates directory but I would like to reference from root ie /home/username/public_html