Hi,
I’m trying to create pages for members to use for blogs, diaries, etc. I’ve created a variant of my standard template, and added the following CSS link:
<link rel="stylesheet" type="text/css" href="[~[*parent*]~][*version*]" />
The parent is a folder named the same as the member. It is also a CSS file, so they have the option of using the text editor, or using CSS. The "version" TV is for those who will use CSS, so that they can force browsers to collect their latest CSS file:
[*version*]" = ?version=2 etc.
The URL will appear like the this:
http://www.xxxxx.com/blog/harry/home. "harry" being empty, or containing CSS; and "home" being their, well, home page. I’ve also created a slightly advanced version, where they can control the TV calling the CSS, for those who will be creating subpages:
<link rel="stylesheet" type="text/css" href="[*blog*][*version*]" />
Two things. I’d prefer not have two versions of these blog templates, but I can see no way of easily referincing a file that will be their own CSS file, other than using "parent". Having the blog TV for them to point to their own CSS seems a bit like overkill; I’m probably missing some simple trick.
On a related issue, using parent messes up the menu system. I’d like to use the menu snippet for the blog-like content, but of course the name of the member is the above folder - I will have "home" showing as a subfile, and of course, it is that file that must be selected.
I guess that I should just drop the whole idea of using "parent", and provide some instructions for them on how to use the TV to point to their own CSS file. However, any help, pointers to snippets, or whatever, would be greatfully appreciated. There must be someone here who has already created someting similar.
Thanks.