Categories > TinyButStrong general >

Suggestion for File Includes

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Will Robertson
Date: 2003-07-23
Time: 09:07

Suggestion for File Includes

Would it be possible on an include to specify for instance take bgcolor and background attributes from document that you're including and have them applied to the td tag?

Thus producing an full dynamic area that the user can change?

Thanks,
Will Robertson
By: Skrol29
Date: 2003-07-23
Time: 09:49

Re: Suggestion for File Includes

It looks like a good idea, but can't we simply do that with styles ?
By: Will Robertson
Date: 2003-07-24
Time: 01:25

Re: Suggestion for File Includes

Well, I actually have a use for this... here's what I'm doing:

(our template) http://rifts.kassah.net/_da_index/global_template.html

now this is a directory index generated. There is the global header and footer. However, in the case that there is a header file in place in that directory called _da_header.html it picks up and uses that header instead.

Right now I have work around, It does the same thing for templates, and in the cases of the tables where I want to change the background to fit the header... I just have to include a custom template in that directory. Not elegant... but it works.

as you can see with: http://rifts.kassah.net/ I had to change the table background to black in the directory template. However, I think it would be much nicer to be able to get the body attribute tags and put them in strategic places (for instance the bgcolor tag on that table).

Thanks,
Will Robertson
(Yes, the workaround works... just thought it'd be nice feature to impliment in your next version)
By: Skrol29
Date: 2003-07-25
Time: 13:53

Re: Suggestion for File Includes

Your suggestion is to be able to retrieve the tag's name and value from another file?

Something which could be used like this:
<tr [tbs_retrieve;tag=body;file='back.htm']>

Is that what you mean?
By: Will Robertson
Date: 2003-07-25
Time: 20:46

Re: Suggestion for File Includes

That would work... however... it is not exactly what I had in mind. Let's take this for example maybe... this is what I had in mind... however, I believe your version will work just as well.
<table background="[tbs_include.1;file='file.html';tag=body;attribute=background]" bgcolor="[tbs_include.1;tag=body;attribute=bgcolor]">
<tr><td>[tbs_include.1;tag=body]</td></tr></table>
This would produce a table with the background tag and bgcolor based from that of the file loaded. For the tag=body... that would return the contents of everything inbetween <BODY> and </BODY>

There ya go...
Will Robertson
By: sahbi
Date: 2003-07-26
Time: 13:06

Re: Suggestion for File Includes

ok