How to selectively disable Header & Footer/How do we retrieve the PageName in the custom navtype cla

I would like to disable the Header and Footer for the login page. In my Custom Navigation Type class, I went ahead and made the following changes to the isFeatureEnabled() function.
if(feature.Equals(NavFeatureEnum.TOPBAR))
returnfalse;
if (feature.Equals(NavFeatureEnum.HEADER))
return false;
But this essentially disables the header and footer for the entire Sub Portal. How can I retrieve the PAGE NAME in the Navigation Type class so that I can selectively disable the feature. This is what I would like to do
if (pageName.equals("LOGIN")) {
if (feature.Equals(NavFeatureEnum.HEADER))
return false;
Appreciate anyone's help in resolving this issue.
Thanks
Vikram

Vikram,
Unfortunately, you there is no way to check for page name inside the IsFeatureEnabled method. What you could do, if you want to always disable the header and footer in all navigation schemes, is to change com.plumtree.portalpages.common.uiparts.PlumtreeDP to have it check for current page name. In the Display method, search for
displayHeader = GetPlugNavFeature(navType,NavFeatureEnum.HEADER);displayFooter = GetPlugNavFeature(navType,NavFeatureEnum.FOOTER);
and change it to:
if ( !LoginAS.STR_MVC_CLASS_NAME.equals(GetOwner().GetName()) ) { displayHeader = GetPlugNavFeature(navType, NavFeatureEnum.HEADER); displayFooter = GetPlugNavFeature(navType, NavFeatureEnum.FOOTER);} else { displayHeader = false; displayFooter = false;}
Just remember that we might make changes in PlumtreeDP in future updates. You would have to add this code in again if we do.

Similar Messages

  • How do I disable those pesky "hover-over" pop ups? I tried the method of right clicking on them and opting out, but it doesn't work. If you guys could add some kind of blocker to your browser, it would be a huge plus!

    # Question
    How do I disable those pesky "hover-over" pop ups? I tried the method of right clicking on them and opting out, but it doesn't work. If you guys could add some kind of blocker to your browser, it would be a huge plus!

    Chris CA wrote:
    Did you createa smart playlist? It's purple with a gear icon.
    And you set the criteria to
    Match rule:
    Date added is in the last two weeks?
    I tried it, but couldn't get it to work. I think I had trouble with the Rule. I put a Rule in as follows: Data added in the last five hours? I added music (data) but nothing appeared in my Smart Playlist. Oh yes - I named the playlist: Recently Added.
    What did I do wrong? Is it necessary to have a question mark at the end of the Rule? I couldn't find anything on how to create a Smart Playlist in Help. There is stuff in there, but it does not go into much detail, i.e., nothing on the proper wording of the Rule.

  • How to remove extra header/footer from BC default template?

    BC put their own header (with live links to dummy pages) and footer (two line of text on the bottom) in my Dreamweaver CS6  job at  http://140001.worldsecuresystems.com/
    Although I'm in the directory I can't seem to delete theses items,
    the Main Template.dwt inside the default Templates folder.
    I can't even delete the code inside it and leave it as an empty file.

    Tobydog20,
    I eneded up having to log in directly at Business Catalyst, not going through DW at all. There I entered a completely different mode, many more folders were visible. There it should also show you the template folder (the one you can't delete) belongs to your current DW project, which is why you can't delete it. You should see the other files that you can delete -- it's an entirely different experience going through Business Catalyst.
    An extra caution, Adobe also added some new CSS global sheets to MY project that weren't in my original upload, so keep an eye out. I discovered this when I had to add code and I swore that page didn't belong to my job. Well, it did.

  • How to select a value of a max value of another column in the same row?

    pversion pdate pcount
    1     11/6/2011     1
    0     11/6/2011     25
    1     11/6/2011     24
    How to select pversion for a maximum pcount, in this case max count is 25 and version will be 0?

    Like this?
    -- Data:
    with yourtable as
    select 1 pversion , 1 pcount from dual union all
    select 0 , 25 from dual union all
    select 1 , 24 from dual
    -- Query:
    select max(pversion ) keep (dense_rank last order by pcount) m_pversion
    from yourtable;(When you want to use the query with your real data, you will have to change 'yourtable' to your actual tablename)

  • How do you disable securtiy question, because iam trying to purchase apps, for the first time user

    how do u disable security questions for ur itunes if u don't remembet the question and answer, first time buyer for apps store
    its asking me the names that i set it up security, i have the password to login but i don't know how to disable those question, can u please help me
    how to disable those question

    Rescue email address and how to reset Apple ID security questions

  • How do you disable a restrictions code with out resetting your iPhone and the password

    How do you disable your restrictions code without resetting your phone and without putting in the code?

    No, there isn't. But you can restore your stuff if you have a current backup to restore. Otherwise, you are S.O.L.

  • How do I disable Facebook Message location features in iOS7? All of the information I seem to find on the subject is outdated. Thanks!

    Whenever I send a message in Facebook it attaches my location which is a bit creepy, yet all of the information I've found about how to shut this feature off seems to be outdated. How do I disable the location services for the Facebook app in the latest version of iOS?

    I've tried looking there but do I disable ALL location services (wouldn't that effect every app?) There doesn't seem to be a specific option to disable Facebook location services specifically.

  • How do I change header/footer print options for font, font size, and color?

    I know how to change the text for web page print of footers/headers. I can see no option to change font, font color, or font size (such as available on IE). I want to change the font, font color and font size of the footer/header when I print a web page. I read the FAQs, found nothing that seems to fit. Can you assist? or is this option available on Mozilla. I have the latest/greatest version (set to auto update).

    OK, my question was about how to change font/color in headers/footers... This suggestion changes the font/color in the text, but NOT in the footers, unless I want everything in the same font/color. I need footers/headers in RED BOLD. I can do this on IE, but there does not seem to be an option for Mozilla.

  • Toshiba 3TB DT01ACA300 hard drive. How can I disable head parking?

    I bought a Toshiba 3TB DT01ACA300 hard drive. It occasionally makes a click, not like a drive failing click but it sounds a lot like a head parking click. I've heard that type of sound before in laptops that I have and it's tolerable. Coming from my desktop though it's infuriating. Is there any way I can disable the head parking? Does anyone here work for Toshiba? Does anyone else have this drive? Do you notice an occasional click?
    I found another thread about this model and head parking but I think what that guy describes is different::
    Toshiba 3TB DT01ACA300 - head parking problem
    Also I tried Toshiba's support page. I entered serial number and model number and it doesn't recognize either, so if there is any new firmware or tool for this drive I can't find it. I did find a Toshiba technical support form which I will use if I can't resolve my issue here in the forum.
    Thanks

    bad drive, return it
    L305-S5955, T9300 Intel Core 2 Duo, 4GB RAM, 60GB SSD, Win 7 Ultimate 64-bit

  • How can I disable Notification Centre in IOS5 and go back to getting the big blue text message notifications?

    I have Iphone 4S on iOS 5
    I flicked the button in settings to set up Notification Centre, but now I want to disable Notification Centre as the text notification is nowhere near as good as the old 'big blue' text received box.
    1- where do I find button to DISABLE Notification Centre? (I can't find one)
    2- how do I revert back to the old big blue box text notification?
    Thanks

    I've tried literally every option available in "Notifications" to get back the big blue box, but it seems that every option I choose nothing really changes.
    The messages continue to come up with the small box, green Message icon, and the name and Text Message beneath.
    Is there no other way, or some sort of trick, to get the blue box back?
    Thanks!

  • How to select columns in a table by their column id and not the column name

    Hello,
    How do you select columns from a table based on their column_id.
    I have create a view
    but other than Select * , i cant now select one just one column from it
    the view as follow:
    create view count_student as
    select a.acode "acode",aname "Activity Name",count(ae.acode) "Number of student joined"
    from aenrol ae, activity a
    where a.acode= ae.acode
    group by a.acode,aname;

    The issue is that you have decided to use quoted column names. A pretty horrible idea (mostly for the reasons that you are now finding).
    Re-create the view and get rid of the silly double quotes.

  • How to link two header files so that it may be taken from the library ONLY

    Hi.
    I was able to compile and successfully execute a program earlier
    written in Oracle 7 (Solaris) Now in Oracle 10G (Linux). The only
    problem is that I have to include two header files
    sqlca.h and sqlda.h in the present working directory.How to enter them in the linking command so that I do not need to
    copy them everytime in the current working direcotry ?
    I have used the following commands :
    $ proc sample.pc
    $ cc -L$ORACLE_HOME/lib -L/usr/lib -lclntsh -o sample sample.c
    regds.
    J.S.S

    Use always -I option of the compiler to include all header file directories U wich to add. In this case no need to copy the files.

  • Siren sounds when Firefox is open. How do I disable it? How did I get it?

    When I open Firefox, I get some game music than a siren sound that won't quit.
    == This happened ==
    Every time Firefox opened
    == I opened Firefoxthis AM

    Some add on is working with google. If you check Google.com you can play PacMan, celebrating PacMan birthday.
    Regardless, the sound is annoying and everywhere i go.

  • How to disable Header and Footer in MS word with VB code

    Hi Tea,
    We need to disable Header & Footer in MS word (Restrict user to edit Header and Footer). So we are trying to write a VB code.
    What ever code we tried it is not working .
    Can you please provide any solution how to diable H & F in word using VB code.
    Thank you inadvance.

    A relatively simple way to do this without VBA:
    Select the body of the document (Ctrl+A).
    On the Review tab of the ribbon, click Restrict Editing.
    Tick the check box "Allow only this type of editing in the document".
    Leave the dropdown set to the default "No changes (read only)".
    Under Exceptions, tick the check box for Everyone.
    Click "Yes, Start Enforcing Protection".
    If you wish, enter a password (don't forget it - you'll need it if you ever want to unlock the document), then click OK.
    Save, close and reopen the document. The header and footer won't be editable.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • How do I add a header/footer to a document?

    I am using Adobe X Standard, version 10.1.2 and everything I am reading tells me to go to tools>pages>Header & Footer>Add Header & Footer, but once I click on tools to the left, the only options I have are export and create pdf files and send files. There is no tools option in the tool bar on the top. File, edit, view, window & help are my only options. How can I add a header/footer to a document?!

    I think you might be opening your Pdf document in Adobe Reader. If you try open your pdf document in Adobe Standard and check again as far as your option are concerned you should be able to do that.

Maybe you are looking for

  • Deleted PO line Item dissappearing from PO output

    Hi, *SRM 5.0 ECS.* *Below is the scenario waht happening* 1) PO created with 3 line item and ordered 2)First line item deleted and ordered and after approval if i see the PO output there is a text below first line item saying that this    line  item

  • Report output in HTML not as in PDF

    I have developed a report in Report builder 10g when i get its output in HTML in browser from application, it does not show its format as like in PDF for example heading background colors, fields background colors and frame lines not showing in HTML

  • Air application full screen error in Mac OSX 10.7 Lion

    Hi    We have an air application built using Flash Builder 4.5 with 4.5 SDK.    The air application no problem to run on Windows and Mac OSX 10.6 Snow Leapard. However it has full screen issue on Mac OSX 10.7 Lion. When change to full screen mode, th

  • Can the iphone be compatible with my existing hardware?

    I need to know if the iphone will work with my Powerbook G4 500. I don't believe it has a USB 2.0 port. Will the iphone work with my Powerbook USB port? At a slower speed? I do have a Firewire 400 port. Is there such a thing as Firewire 400 converted

  • Removing old sources from source list

    Between all the members of the family we've synched up quite a few machines with our Apple TV. But now many of them are gone, yet they are still listed as grayed-out "sources" in the AppleTV menu. Any ideas on how to remove them from the list?