Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Multiple Template Sets

Quote Reply
Multiple Template Sets
Hello everyone,

I'm wondering if there is a way to use multiple template sets in Links 2? I'm thinking that there could be a script (like in Links SQL) to dynamically pick one template set over the others.

If something like this exists, where can I find it?

-digitalsea
http://www.digital-sea.com/
Quote Reply
Re: [digitalsea] Multiple Template Sets In reply to
Looked in the Resource Section? This link is there:

http://www.bobsgoodstufflists.net/mtemplates_mod.html


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Multiple Template Sets In reply to
Sorry if I wasn't clear enough in the first post...

I don't need a script to let different categories each have different templates - I need a script that will change the entire site layout on the fly (like cobranding).

Reply back if you are still sonfused.

-digitalsea
http://www.digital-sea.com/
Quote Reply
Re: [digitalsea] Multiple Template Sets In reply to
Ahhh...

Links is not built 'on the fly' though, they are static pages. I suppose you could have nph-build create duplicates of everything, using different templates. Sounds a bit complicated...

I think you could have two (or more) full Links2 scripts, using different templates, but all using a common database. Only use one of the Links2 as your admin to add, etc, the others only to create different looks (skins). Still, a lot of work.

The changes to make would be at the bottom of links.cfg, where the paths to db files are found:

# Extra Paths -- unless you feel the need to rename files, you
# can leave this as is.

In the second bunch, change this:

$db_script_path

to:

$db_script_path2

then add this at the top of the file, after the original:

# PATH of Admin CGI directory. No Trailing Slash.
$db_script_path2 = "/alex/links/cgi-bin/admin";

where the path would point to the one install of links that you use to add links info.


# PATH and URL of Admin CGI directory. No Trailing Slash.
$db_script_path = "/cgi-bin/links/admin";
$db_dir_url = "http://localhost/cgi-bin/links/admin";

# PATH of Admin2 CGI directory. No Trailing Slash.
$db_script_path2 = "/cgi-bin/links2/admin";


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Multiple Template Sets In reply to
anybodu around who does templates for links 2.0 ? or has readymade templates for sale /?
>> Nakul Goyal (SEO, Link Building Expert)
Web Site Promotion
Tips 'n' Tricks
SEO News