but as the webskin is called of every instance of the objects created by the rule this would work.
It is just it took me a lot of effort and time to get this out that I thought that must be an easier way - something along the lines of the preHTML and postHTM attibutes of container - maybe introHTML??
On 5/31/05, Ben Bishop <[EMAIL PROTECTED]> wrote:
Hi Andrew,
> Is there a way to format the text inputed into the Intro for a container
>
> I have got it working with the following, but there must be a better way..?
> from the rule CFC
> <cfif len(trim(stObj.intro)) AND qGetNews.recordCount>
> <cfset tmp = arrayAppend( request.aInvocations,'<div
> class="underheader">#stObj. intro#</div>')>
> </cfif>
What don't you like about this approach?
Changing it slightly, you could add <p class="intro">#stObj. intro#</p>
to the cfc, then add preHTML and postHTML to your container to specify
an id or class.
<con:container label="#stobj.objectID#_myContainer" preHTML="<div
id=""myContainer"">" postHTML="</div>">
That would allow you to style
#myContainer p.intro { ... }
#myOtherContainer p.intro { ... }
Or were you after WYSIWYG plug-in editor styling for content editors?
Regards,
Ben
---
You are currently subscribed to farcry-dev as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/
--- You are currently subscribed to farcry-dev as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED] Aussie Macromedia Developers: http://lists.daemon.com.au/
