[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [ic] Printer friendly pages ala content_editor help


On 10/29/2005 08:23 AM, Sam Batschelet wrote:
>  My question is how can I hard
> code this so that content editor adds the code for each new page.

> so 
> 
> @_LEFTONLY_TOP_@  
> 
> Would become
> 
> [if cgi pdf]
> @_LEFTONLY_PRINTFRIENDLY_TOP_@
> [else]
> @_LEFTONLY_TOP_@
> [/else]
> [/if]
On 10/29/2005 11:23 AM, Peter wrote:
Why not just put all the code in the LEFTONLY_TOP template?  Ie inside 
LEFTONLY_TOP you would have:


-Peter

It seems logical and was my initial approach but something to do with
the order in which the code is processed seemed to be throwing it off.
What I found is if you place the code [if cgi pdf] [create-pdf] [/if] at
the bottom of the MYTEMPLATE_TOP that the content wouldn't be processed
even though it was after [component group=content] wonder why.  Adding
it to the MYTEMPLATE_BOTTOM fixed everything creating a complete pdf.

Side Note: I can see that messing with content_editor would be a bad
idea as it appears to be quite complex.

Thanks -Sam


_______________________________________________
interchange-users mailing list
suppressed
http://www.icdevgroup.org/mailman/listinfo/interchange-users


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.