Edges and menus.

5 views
Skip to first unread message

NCS_One

unread,
Apr 4, 2011, 5:44:58 AM4/4/11
to xptemplate
Hi,

The following example doesn't work but is only to explain what I
want.

XPT ses
<%session` scope?"`scope`"^>
`cusor^
</%session>
XSET scope=ChooseStr( 'component', 'page', 'global')

If this worked if no option was choose from the menu the edges would
be removed.
Is it possible to something like this?

Thanks for the help.

dr-dr xp

unread,
Apr 4, 2011, 8:39:59 AM4/4/11
to xptem...@googlegroups.com
Adding a post filter to do the cleanup job:
XPT ses                                                                         
<%session` scope?"`scope`"^>                                                    
`cusor^                                                                         
</%session>                                                                     
XSET scope=ChooseStr( 'component', 'page', 'global')                            
XSET scope|post=Echo( V() =~ '""' ? "" : V() ) 

V() gets you the content of the place holder


--
You received this message because you are subscribed to the Google Groups "xptemplate" group.
To post to this group, send email to xptem...@googlegroups.com.
To unsubscribe from this group, send email to xptemplate+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/xptemplate?hl=en.




--
要了几天饱饭就不记得西北风啥味了

NCS_One

unread,
Apr 4, 2011, 10:08:13 AM4/4/11
to xptemplate
Hi,

Works very well, thank you.
Reply all
Reply to author
Forward
0 new messages