Skip to main content
Known Participant
May 26, 2009
Question

dynamic header

  • May 26, 2009
  • 1 reply
  • 364 views

Hi,

My header file is getting really big, lots of jquery, stylesheets and other bits and pieces due to the demands of trying to create a modern UI.

What I would like to do is invoke a header on a page by page basis and only inlclude the bits I want rather than pull in the whole kitchen sink.

Can I do something like this below. -

<cfinvoke component="cfc.header" method="header"  returnvariable="myHeader" jquery="yes" mainStyle="yes" validation="no" />

I suppose I need to invoke an some arguments (argument collection?) and then return them as text.

- is this possible?


- would it make the pages more lightweight?

- how can i return the html to the browser?

Many thanks.

    This topic has been closed for replies.

    1 reply

    Inspiring
    May 26, 2009

    Yes it's possible.

    Yes it would make your pages more lightweight.

    For the html part, you can either display it from your function, or return the string to the calling template and output it.