Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Shankar Baba
Hiding a page in velocity
November 22, 2012 9:53 PM
Answer

Shankar Baba

Rank: Regular Member

Posts: 144

Join Date: October 17, 2012

Recent Posts

Can any body tell me what is the code for hiding a page in Apache velocity
Manish Kumar
RE: Hiding a page in velocity
November 23, 2012 9:02 AM
Answer

Manish Kumar

Rank: Junior Member

Posts: 94

Join Date: March 1, 2012

Recent Posts

Hello Shivaji,
Can you specify that for which condition you are hiding that page.
If you dont want to show a page simply comment the page entry theme of navigation.vm.
Shankar Baba
RE: Hiding a page in velocity
November 25, 2012 8:32 PM
Answer

Shankar Baba

Rank: Regular Member

Posts: 144

Join Date: October 17, 2012

Recent Posts

Manish, i want to hide login page after logging in my application.
Anil Sunkari
RE: Hiding a page in velocity
November 25, 2012 8:47 PM
Answer

Anil Sunkari

Rank: Expert

Posts: 427

Join Date: August 11, 2009

Recent Posts

If i'm correct you wanna page to be hidden from UI front.So why cant you go with Administartion Configuration of setting page as hidden.
Manish Kumar
RE: Hiding a page in velocity
November 30, 2012 8:56 AM
Answer

Manish Kumar

Rank: Junior Member

Posts: 94

Join Date: March 1, 2012

Recent Posts

Hello Shivaji,
you can checkin this condition in your navigation.vm of your theme. This will work for you.
 1<nav class="$nav_css_class" id="navigation">
 2    <h1>
 3        <span>#language("navigation")</span>
 4    </h1>
 5
 6    <ul>
 7        #foreach ($nav_item in $nav_items)
 8       
 9        #if(!$nav_item.getName().equals("Login")|| !$is_signed_in)
10            #end
11                   #end
12        </ul>



Thanks,
Manish Kumar