Cross area calls - asp.net-mvc-2

I have an asp.net mvc 2 application with multiple areas . Each area contains its own nested master page.
Some times we need one area to use the partial functionality from the other area.
Ex: "Account area" contains a feature for managing all user's contacts. "Job area" wants to borrow contacts feature, but just for work contacts.
We cannot simply redirect from one area to other, as this will change the visual context for the user. We want the features of the second area to appear as if they belong to the first area.
Is there any clean way of achieving this?

your Partial functionality implemenetd using partial pages? then You can cosnider to add these partial pages in shared folder.

Related

Is there a way to permanently add a box displaying points of students in the navbar

So I am working on a project that awards points to students for submitting assignments or participating in forums, these points are then exposed as an Http resource using Flask.
The points are calculated by looking at the events triggered for each student.
One of the requirements right now is to add a box next to the student's name that shows the total amount of points they have. I have two ways of accessing the points, either by an http request from moodle or by storing and retrieving the points from moodle's database.
My question is what is the best approach of creating this "box", I have tried using moodle blocks and hacking the code but nothing seems to be working. Is creating a plugin for this the only solution or is there a simpler way to do it (if it is even possible)?
To answer your question properly you should have provided at least the theme and the Moodle version you work with. Should this box be displayed everywhere? Is the score calculated for every course individually?
Two proposals that came into my mind:
You could create a custom plugin of type block. There you can display the score of the user of the session and the top ten for example (If the score is calculated for each course individually). A disadvantage is that every teacher of a course could remove that block easily, if he or she wants to.
If the score counts system-wide you could put that box at the start page of your Moodle website, where only people with higher rights will be able to remove it.
If you use boost you could display the score in the navbar right next to the users name. For that you will have to create a new child theme of boost and overwrite navbar.mustache of theme_boost which get's it's information from columns2.php because it's included into columns2.mustache. In this PHP file you can include your logic and display it with the HTML which you put into navbar.mustache.
Of course these are not really simple ways to do that. But at the moment I doubt that an easy solution exists for this problem.

Similar to C# datacontext do we have anything in javafx?

I have a question and tried everywhere in world wide web. So this is my final destination.
I am developing an application (ETRM related) using javafx8 which is actually an application which is already developed using c# with wpf in my company. But the performance is not so good. so i'm trying to do it using javafx so that i can learn few things at the same time i will get some real application development experience.
Problem: (screen shots attached)
I open my application and i enter a trade number in a text field and say open. it should open the trade from db.
Here Trade is my domain entity which has many properties. for eg: a trade entity have a quantity, buyer and seller etc where buyer and seller are also domain entities.
So i open a new trade (first screen shot) and select the properties using the comboboxes and save the trade. this is the flow.
The first block what u see are all properties of the Trade entity**("Trader", "Type", "Contr. Status", Counterparty, etc).** It all loaded with default data. Now when i change any value, for ex. the "Trader" to "ABS" (2nd screen shot) it calls the "trader" property in the "Trade.cs" file (3rd screen shot) and sets the value. it is because the whole block or more precisely the whole tab what u see "Trade#: New1" is bound to the Trade entity at the window creation time itself, so that whenever u change any property on the screen it exactly call the respective getters and setters.
It is done by setting the datacontext of the tab to the trade entity in C#.
I want to achieve the same in javafx. I designed the UI exactly and populated all the data from DB to show in the comboboxes but dont know how to set the datacontext to the UI.
In C# i can bind my domain entity (trade) to a window and whenever i set values on the UI that gets set on the trade entity. datacontext may be the C# term but i want something similar in javafx.
Will it be possible to achieve in javafx?
Thanks in advance. Please let me know if u need further details.
enter image description here
enter image description here

Best Product Listing Option for Concrete5

I'm going to be creating a Concrete5 website that will feature product listings. The listing system must offer all your typical ecommerce features, minus the ability to purchase items. It's strictly for browsing purposes only.
For example:
- Browse by category
- Search products
- Listings/results page with thumbnails and brief information (title, description, price in US/CAD, manufacturer, maker, etc.)
- Products single page (with detailed information, attributes and gallery/images)
All the things you'd expect to find in a listing system.
My issue is I can't find a specific add-on for something like product listings. This leaves me thinking that it may be best to use the e-commerce add on and do my best to hide anything related to the cart/payment process. That way it could just be used for everything else it offers.
What are your thoughts on this? Is there a better option?
Thanks for the advice!
Use the page list block. It has everything you need except for searching. But, in essence, that's what your requirements call for -- listing of pages.
Create a page type for your "product". The "brief information" can be in the Content block, or you can set as attributes. You'll probably want to make some minor changes to the block's view (by creating a new template) that displays the image as you want, the proper attributes, etc. Something similar to http://www.concrete5.org/documentation/how-tos/designers/styling-the-page-list-block/
There are several adanced page list blocks in the marketplace. You might want to start with those.
Right creat Page type.
After creat Page attributes.
Add a block page_list create a template for it and filter by attributes.
You can even use ajax to filter.
http://www.weblicating.com/doku/doku.php?id=cheatsheet/#.UbR7P0BmiSp
U can find here about page_list or read documentation Concrete5.

How to allow Joomla users to create / update own list and have menu link to that list?

I have a Joomla site I am developing that centers around designer handbags of a particular label
(not my site, it's a client's). It is not an ecommerce site, more of a social site.
What I am looking to do is present the user with a list of handbag styles and patterns so that
they can mark which items they have and which items they need.
Then two sections of content would be generated - one listing what they have and one listing what
they need.
I would also need to be able to include a direct menu link to that page.
Any ideas would be appreciated!
Probably the best way to do that would be to extend either community builder or JomSocial. Both have the ability to have custom user profiles which would go a long way to creating what you are looking for. You may even be able to do everything you want within the basic structure of one of those extensions.

Programmatically creating menu hierarchy in Joomla

Let's say that I have a vast quantity of restaurant reviews in a database -- not Joomla articles, just database tables. I want to display these restaurant reviews as part of a Joomla 1.5 web site.
I can write a component to display each review. That part is fine. But rather than listing the reviews as a list on a page, I want to use the nice cascading menu that is part of the Joomla template that the site uses. But I don't want to have to add menu items one by one for each review; I want menu items to be generated automatically from the database contents. The menu of reviews should 'plug in' the existing menu structure for the web site (i.e., I want to supply the code that generates the menu items with an existing menu item so that it generates itself under that item).
How can I create code to programmatically create that menu? Component, plug-in, module, ...? Would the menu be generated at page display time, or "manually" in the admin panel (I'm ok either way). Any examples of this already?
I think the simplest way would be to create a custom menu module. The absolute basic one would just output the list of reviews in a <ul> and then use some css to style the list.
I ended up creating a component that creates the whole menu structure at once, upon admin request. It just creates rows in the jos_menu table, as if the menus were created manually. Updating the hierachy is a pain (and I haven't completed that part), but creating the structure from scratch is pretty simple and works well.