Categories
Contact Doug!
Learn About Doug!
View Doug Boude's online resume
updated 11/18/2009

View Doug Boude's profile on LinkedIn
Link to me!

Follow Doug Boude on Twitter
Follow me!

Be Doug's friend on Facebook
Befriend me!
(I promise not to follow you home)
OO Lexicon
Chat with Doug!
Recent Entries
You may also be interested in...
Web Hosting

<< January, 2011 >>
SMTWTFS
1
2345678
9101112131415
16171819202122
23242526272829
3031
Search Blog

Recent Comments
Re: Disappearing IE Popup Window During Save/Open Dialog (by LZ at 4/20 7:58 AM)
Re: Create Dynamic WHERE Clauses in PHP (by pooja at 3/20 7:29 AM)
Re: Just What IS a 'Service Layer', Anyway? (by EugenK at 3/07 7:56 PM)
Re: Using Google as your CF Mail Server (by 5starwebteam.com at 2/25 1:27 AM)
Re: Why Provide for Service layer objects in CFWheels? (by Steven Benjamin at 1/25 11:43 AM)
Re: What is an 'Advanced' Coldfusion Developer? (by ColdFusion Developer at 12/24 5:14 AM)
Re: Equivalent of SQL "TOP X" in Oracle (by Ashenafi Desalegn at 12/06 5:29 AM)
Re: PHP Export to Excel Snippet (by serene at 12/05 1:44 AM)
Re: Just What Is 'Application Logic', Anyway? (by Arif at 11/13 8:06 AM)
Re: Hosts File Changes Not Acknowledged on Vista 64 (by Aaron at 10/22 2:31 PM)
Re: PHP Export to Excel Snippet (by Jafar Shah at 10/10 4:28 AM)
Re: Viewing Option Text (in IE7) that's Wider than the Select List (by Chenelle S at 10/04 12:53 PM)
Re: PHP Export to Excel Snippet (by Kilo at 9/26 5:20 PM)
Re: Porting Coldfusion Code to Mura (by tariq at 9/03 9:51 AM)
Re: Just What IS a 'Service Layer', Anyway? (by James at 8/27 4:06 PM)
Re: Calculating Business Hours (by helen at 8/14 2:54 AM)
Re: What IS 'Business Logic', Anyway? (by dougboude at 8/06 11:30 AM)
Re: What IS 'Business Logic', Anyway? (by Adrianne at 8/06 10:29 AM)
Re: Family Law: The Weapon of Choice for Woman Scorned (by dougboude at 8/04 4:39 PM)
Re: Family Law: The Weapon of Choice for Woman Scorned (by Lola LB at 8/04 7:43 AM)
Archives
Photo Albums
Funnies (5)
Family (3)
RSS

Powered by
BlogCFM v1.11

17 January 2011
Adding Mura Components to a Page Without Cascading

The Scenario

My last Mura post was on how to include Ajax functionality in a Mura site. In my case, I needed to add this functionality to the home page (very topmost in my page hierarchy), and I did so by placing a component into that page's "main content" area. Well, this was all find and dandy until I realized that, because my home page is being inherited by many of the children pages (due to some sidebar links I wanted to cascade down), my ajax component was ALSO being inherited. No bueno. The topic of this post, then, is how to add a component to a page and not have it to be inherited by child pages.

adding ajax component to home page in mura

The short answer: Rather than add the component via the "content objects" tab, output the component within your page content manually.

Since page content is not inherited by children (only items added via the "content objects" tab are inherited), this approach ensures that the component is only rendered for that page alone.

DETAILS

Not much to this, really. We will utilize a Mura command called "dspObject" to perform the manual rendering of the component. dspObject requires the ID of the component you want to render, so you'll need to grab that first thing. To find the ID, go to Components, edit the component you're interested in, click on the "Advanced" tab, and copy the Content ID value.

get the id of the mura component

Lastly, we output the component in the page content we're interested in. Just add

[Mura]dspObject('component','[your component ID here]',request.siteid)[/Mura]

to the page content where you want the content to appear.

manually output a mura component using dspObject

That's it! Now your component will appear within your page, but will NOT be inherited by any child page.

Doug out.

Posted by dougboude at 10:24 AM | PRINT THIS POST! | Link | 2 comments