Stop Menu showing on log-in page - asp.net-mvc-3

I am currently developing an ASP.NET MVC 3 application and have referenced the [Authorise] method to show the log-in on entry. Although this stops the use of the top menu (at the moment it simply is standard "home "index") They are still visible and I wish to hide them from the log-on screen.
Any help would be greatly appreciated.
Thank you in advance.
Chri3

Try this
#if(User.Identity.IsAuthenticated)
{
<div>Code for your menu</div>
}

Related

Display of object class in page frame for visual foxpro 6

I've bundle of control save in .vcx file but I need to activate it to display it when i switch to different activepage in pageframe.
Could anyone guide me how to code and which kinds of event should i make on page frame switch, click or whatelse UIENABLEEVENT.
Thanks.
First, you might want to click on Help -> Tour for site etiquette and start voting / checking your answers so people know what worked or not that help you and others with similar issues.
Now, back to you question... If you have a form with a pageframe, make sure you have the "Properties" sheet open, it helps to ensure which object you are actually working with until you get more familiar with the IDE.
Once you click on the pageframe control, if you right-click and then select "Edit", that will bring you to the individual PAGE level of the pageframe. Once the PAGE is the basis of the focus you can put any control on it from either the toolbar, or if your project is open and you expand your .VCX class library, you can grab any control and put in on the page.
If you have multiple pages, once you click on the alternate pages, you will see that the first page (or whatever page) is no longer visible and the new page is available for you.
The actual handling of the pages on the pageframe for clicking / focus is automatically handled for you unless you want to do something extra.

Front end editing in custom joomla module

i want to write a module which shows a menu for a restaurant.
I don't want that my customer needs to do anything in the backend.
If the User is logged in, every Menu point should have an edit button.
If it's clicked, a little div pops up where the menu point can be edited.
I'm faily new to joomla extension dev. But i do know php/js/ajax stuff.
Can anyone point me into the right direction. Is this even possible with just a module?
Has anybody an example where this technique is used?
I'm using joomla 3.1.
Best regards. Maik

ECLIPSE RCP app: view disappears after opening another window

I have 3 views in a window. The first view has content from a tree viewer. The second view has content in FillLayout. Both views get the data from the DB.
Once I click on a link from the second view, I get the new window popping out. But this window looses both first and second views. I don't know what I am missing here.
Any insight is highly appreciated.
I think the window you are opening is showing just the views which are not opened in other windows, thats why you see just a single view. You should search for other ways of opening a new window (as far as I know there are many ways and openWorkbenchWindow is just one of them)
Have a look here for some help, looks quite similar to your problem.

Dialog windows in MVC

I'd like to ask a general question about MVC and dialog windows. Although I'm not very experienced in MVC pattern I can say understand its principles. What I don't know is how to manage dialog windows using MVC. Let's have a look at the particular situation: I have a main View (Window) and the controller. In the main View a user now clicks on button or menu "Options." The Options window should be raised, of course, and display several choices for the user. But who's actually responsible for creating and showing the Options window? View sends the information to the controller that user clicked on "Options" button. But now what? Controller should create new Window by itself? I don't think so, it usually doesn't create any objects of type View. The View? I also don't think so, it cannot manage Options information from the Options window. Someone else, probably, but who... Can somebody explain me how this should work, please? My preferred programming language is C# but this is more about principles. Thank you.

Remove "componentheading" from homepage - Joomla!

I'm working on a site in Joomla! and on the homepage, at the top of the article, it comes up with a h1 of the website name. The pagesource says (Note it's not the article title.)
Any idea how to get rid of it?
Thanks,
Steph
You can set this h1 tag not to display via the Parameters - System section of your Menu Item Manager screen in administrator ... this page has a nice depiction of the steps.
It's so simple
Just do the following :
Login to the Joomla Administrator Interface
Go to the Menu Manager
Select your Menu
Select your Menu Item (Home Menu)
On the right hand, Click Parameters (System)—> and in the *Show Page Title—->*Just Select No.
That's all.
This is not the desired solution, since many people, (including myself) actually need to be able to Set/Override the page title (That Appears in the Browser’s Title bar), and setting Page Title to no here will also remove the functionality to Configure the Browser title (which is important for SEO among other things).
Anyway, I have searched and not been able to find a fully correct solution via CMS or PHP Code. The closest solution which is not fully perfect, but unlikely to cause significant (if any) negative effect on your site is through Javascript (Example is JQuery).
jQuery(document).ready( function($) {
$(‘.componentheading’).empty();
});
This can also be done is JS with no JQuery. When I find a better method of doing this I’ll let you know.This should actually be done by removing output from a template file.I don’t know which one yet. When I do, I’ll post it…
When setting the page title not to show in the menu item as stated in other answers, this will not stop the text entered in the page title box being used as the browser title, it will just stop it being shown in the page.
Using javascript to remove it is not a good idea.
1. It will only work for browsers with javascript enabled
2. Search engine spiders will still see it. As the component heading for articles is 'articles' by default it will see all your pages with the same h1 tag.
Just turn it off in the menu item and enter your browser title in the text box above.

Resources