Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Looking for a simple way to insert some text into the detailed.html pages.

Quote Reply
Looking for a simple way to insert some text into the detailed.html pages.
Hi,

I have a template global that is changed on an almost daily basis (not everyday however), and it contains nothing more than simply the date in the format of Month Day, Year

I need to insert this into every detailed page that gets built, in other words every links record in the system has this show up on it's detailed page.

However, since I am changing the "date" in the template global on an almost daily basis, this requires rebuilding the entire system every single day, which as the system grows takes more and more horsepower to do.

So Im looking for a simple solution that would allow me to insert the date into the detailed pages.

I've tried the following code:
Code:
<object width="600" height="20" type="text/plain" data="/decks/price.txt" border="0" style="overflow: hidden;">
</object>

And thought I had the perfect solution because it looks great in Firefox, however loading up the pages in Internet Explorer had it looking like an iframe and the date wasn't showing at all unless someone were to scroll down with the little up down arrows, and it gave it a 3d looking effect of a box within the page which is not what I want. I simply want the date that I can store in either a simple txt file on my server to show up on the detailed pages so that I only have to build the changed files when needed instead of having to build all every day that the date changes.

Does anybody have an simple solutions to doing this?

My preference would be to do it all within Links Admin, maybe creating a new template page named pricedate.txt or pricedate.html and somehow (through Javascript maybe?) pull the text of that template page into the detailed pages for each record. However it appears that will be a problem since the template pages are stored within the admin area and it would require a user supplying the admin control panel username and password just to see the date. Obviously not a good solution. So Im open to other suggestions on how to do the above using the Links system, and all through the admin panel if at all possible. At worst case, I'll have to ftp into the server every time the price changes and upload the new text file I suppose.

But mainly I've got to find a solution to make it display properly in Internet Explorer, for as it is now it looks as if I've added an iframe page to the detailed pages with just a date in them and looks wacked.
Subject Author Views Date
Thread Looking for a simple way to insert some text into the detailed.html pages. Westin 7021 May 15, 2009, 4:45 AM
Thread Re: [Westin] Looking for a simple way to insert some text into the detailed.html pages.
Andy 6924 May 15, 2009, 6:06 AM
Thread Re: [Andy] Looking for a simple way to insert some text into the detailed.html pages.
Westin 6888 May 15, 2009, 8:46 AM
Thread Re: [Westin] Looking for a simple way to insert some text into the detailed.html pages.
Andy 6912 May 15, 2009, 8:47 AM
Thread Re: [Andy] Looking for a simple way to insert some text into the detailed.html pages.
Westin 6877 May 15, 2009, 9:09 AM
Thread Re: [Westin] Looking for a simple way to insert some text into the detailed.html pages.
Andy 6882 May 15, 2009, 9:12 AM
Thread Re: [Andy] Looking for a simple way to insert some text into the detailed.html pages.
Westin 6872 May 15, 2009, 9:34 AM
Thread Re: [Westin] Looking for a simple way to insert some text into the detailed.html pages.
Andy 6844 May 16, 2009, 12:10 AM
Post Re: [Andy] Looking for a simple way to insert some text into the detailed.html pages.
Westin 6833 May 16, 2009, 2:40 AM
Thread Re: [Westin] Looking for a simple way to insert some text into the detailed.html pages.
VishalT 6861 May 16, 2009, 9:53 AM
Post Re: [SWDevil.Com] Looking for a simple way to insert some text into the detailed.html pages.
Westin 6788 May 16, 2009, 6:57 PM
Post Re: [Westin] Looking for a simple way to insert some text into the detailed.html pages.
SandraR 6838 May 16, 2009, 7:38 AM