This condition exists?

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

This condition exists?

Mencey Melgar
Hi, i would like to know if it's possible to use a condition to use for certain subcategories.
Let me explain. I noticed that you can make this with groups:

                                        <n.if.local_user.is_in_group group='Members'>
                        <then>
                        </then>
                        <else>
                        </else>
                                        </n.if.local_user.is_in_group>

and I would like to use it for subcategories, for example:

<n.if.sub_app.name name='Introduce yourself'>
                        <then>
                        </then>
                        <else>
                        </else>
                    </n.if.sub_app.name>

Thx
:) Helper
Reply | Threaded
Open this post in threaded view
|

Re: This condition exists?

Pedro
What do want to do? I think you have to check if the node is an app, then you can compare the names or the ids. But I can give you a better answer if you explain it to me.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: This condition exists?

Mencey Melgar
I want to change the link name "New Post" to "New Poll" in one of my subapps: http://forums.6326.n7.nabble.com/Clan-Polls-f871.html and also change a bit the new topic scheme for this subapp(make the +Add new poll button not a dropdown)
:) Helper
Reply | Threaded
Open this post in threaded view
|

Re: This condition exists?

Pedro
You can use:
<n.if.equal value1="[n.page_node.id/]" value2='871' >
<then>...
This will check when you are at the root page of that subapp.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: This condition exists?

Mencey Melgar
Thanks :)
:) Helper
Reply | Threaded
Open this post in threaded view
|

Re: This condition exists?

Mencey Melgar
Hmm, I was trying to delete the "add poll" option in order to make it opened by default(in this subcategory) buut I found it's a java thing, right? I have no knowledge of java. Could you tell me how to do this?

I suppose it's something in the add_poll_form
:) Helper
Reply | Threaded
Open this post in threaded view
|

Re: This condition exists?

Mencey Melgar
Nevermind, thanks
:) Helper