Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
0

Server Side Include & Template

New Here ,
Jul 08, 2008 Jul 08, 2008

Copy link to clipboard

Copied

I have a template that I'm trying to use a server side include to put a navigation bar on the template. It shows up on the template, and then on the pages I'm working on, however, when I go live it isn't there.

If I put the include somewhere in an editable region of the file, it shows up when i go live.

Can you not include server side includes in templates?

Thanks.
TOPICS
Server side applications

Views

359
Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 08, 2008 Jul 08, 2008

Copy link to clipboard

Copied

> Can you not include server side includes in templates?

Of course you can.

Let's see the markup used in the include line of the Template page, please.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"GlennC02108" <webforumsuser@macromedia.com> wrote in message
news:g4vmic$313$1@forums.macromedia.com...
>I have a template that I'm trying to use a server side include to put a
> navigation bar on the template. It shows up on the template, and then on
> the
> pages I'm working on, however, when I go live it isn't there.
>
> If I put the include somewhere in an editable region of the file, it shows
> up
> when i go live.
>
> Can you not include server side includes in templates?
>
> Thanks.
>

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 08, 2008 Jul 08, 2008

Copy link to clipboard

Copied


> Can you not include server side includes in templates?

I think putting a SSI in a template sort of defeats the purpose. I
suppose it has its uses.

Of course you should make sure the SSI is posted and all pages that have
the SSI in them should also be posted. I don't think putting a SSI in a
template is any different than any other bit you might put in a
template. The only other problem I can think of is perhaps you have the
path to the SSI wrong?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 08, 2008 Jul 08, 2008

Copy link to clipboard

Copied

> I think putting a SSI in a template sort of defeats the purpose. I suppose
> it has its uses.

Think again.

I use the following scheme....

First, I mentally separate the page layout into three sections:

1. Stuff that will probably not change for the life of the site (i.e., the
basic
structural elements)
2. Stuff that *could* change from time to time (e.g., navigation elements,
burst advertisements, section-specific navigation, etc.)
3. Stuff that *will* change from one page to the next

Then I create a template containing all class1 elements. Next I create
server-side include files containing all class 2 elements and place them on
the template as needed. Note - some of the class 2 elements may be
"section-specific elements", and their placement on the template will be
subject to the next item. Finally, I insert editable regions to cover the
class 3 items, INCLUDING the section-specific navigation.

This allows me to just cookie-cut the rest of the site. I estimate that
even for fairly large sites, about 80% of my work goes into planning and
creating this template file.

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Art" <lee_*nospamification@artjunky.com> wrote in message
news:g4vvlq$bl4$1@forums.macromedia.com...
>
>> Can you not include server side includes in templates?
>
> I think putting a SSI in a template sort of defeats the purpose. I suppose
> it has its uses.
>
> Of course you should make sure the SSI is posted and all pages that have
> the SSI in them should also be posted. I don't think putting a SSI in a
> template is any different than any other bit you might put in a template.
> The only other problem I can think of is perhaps you have the path to the
> SSI wrong?

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jul 08, 2008 Jul 08, 2008

Copy link to clipboard

Copied

I discovered what I was doing wrong. I was saving it as a dwt file instead of Insert / Template Objects / Make Template.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 09, 2008 Jul 09, 2008

Copy link to clipboard

Copied

LATEST
Can you describe what/when/where you are using this approach?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"GlennC02108" <webforumsuser@macromedia.com> wrote in message
news:g5106m$g4c$1@forums.macromedia.com...
>I discovered what I was doing wrong. I was saving it as a dwt file instead
>of Insert / Template Objects / Make Template.

Votes

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines