Is it possible to navigate to a dynamic page in Exrin - exrin

Is it possible in Exrin to push to the navigation a contentpage I create in run time and afterwards remove it from the navigation stack?

Unfortunately it isn't possible at the moment, as you have to define the type, to create the navigation mapping.
If you wanted to look into a PR to do this, would be happy to accept this PR. It would involve creating a new method to navigate to an IView. Would also have to think about how it interacts with Stacks.

Related

Android Studio most relevant architecture (Activity/Fragment, ViewModel)

I am beginner and coding an app where there are menus, accessible through an Activity "Dashboard". These menus are related : for example there are database that we complete in menu A and which we use in menus B and C. I have some questions, because I haven't read things useful for me... :
Do I have to use Activity or Fragment for my menus ? Knowing that when we enter a menu, there will be different sub-menus proposed, and that menus are related
About ViewModel : how will they be useful in my case (for example, will my databases be lost if I rotate the screen without ViewModel) ? If my menus are Activities, do I have to associate them ViewModel, or are those only for Fragments ? I'm a bit lost ... Thank you !
Read your full post, tried to understand and as per as I understood, trying to answer as follows.
From your use case, you should use Activity to contain the main dashboard and use fragments for other menus.
About viewmodel, when you are not using viewmodel with your data, if before rotation you didn't save those data somewhere (i.e database), then those data will be lost. But, if you saved your data in database then you can retrieve those data after rotation and re-use in your views. But, preferred way is to use viewmodel here, as your viewmodel can be the primary store for your data. Viewmodels are not only meant for fragments it can be used for activities too.

Create page of blocks only / Create a node of blocks

Sometimes I use a basic page as a place holder for the purpose of creating a node to hold blocks.
So I create a basic page and link it to a menu, then I use the blocks interface to configure certain blocks to display on that page only.
The problem with this approach is twofold. Firstly I don't need the page, but secondly when a user tries to edit the page they're understandably surprised to find nothing.
Is there a better way of creating a node of blocks? Ideally, the more lightweight the better..
Thanks,
Hmm, this solution requires installing another module, but also provides other great functionality such as revisions.
http://drupal.org/project/nodeblock
You would also have to convert all of your old blocks into these new "Node Blocks"
Another option would be
http://drupal.org/project/empty_page

Display a specific existing widget in a WordPress theme, bypassing sidebars

Is it possible to display an existing widget (configured via the widgets control panel) in a WordPress theme bypassing the whole "sidebar" thing? It may not be good practice, but I sort of expect this to be possible - and can't find a way to do it.
I've read about "the_widget", but looks like this function call creates a new one (complete with new title, text etc) instead of reusing a widget that I have configured in the control panel.
If this is not possible - I'll have to use the sidebars, but hoped to avoid doing it in several specific places, seems overkill.
Thanks for any help.
Yes, you can. Just look on the specific widget's code, you'll find the function that the sidebar calls, call that function right on the theme passing the parameters you need in an array.

Flex navigate to another Mxml page?

I am having difficulty navigating to different MXML pages in my Flex application. I checked some other questions on SO about it but they seemed to be to do with tab navigation.
I am trying to navigate from one MXML page to another via Actionscript code. How is this possible?
Cheers
Edit:
I am a real beginner in Flex and I worked out that I actually needed to use States, and have now discovered how to use them. Thanks for your help.
You don't navigate between MXML pages. MXMLs are not pages to begin with. Instead they are components, that are displayed in the application. So if you want to change the current display, then you need to remove the already added components, and add others that should be displayed now.
There are different approaches to do this. The very raw way of manually removing elements is rarely used, instead there are two main methods: ViewStacks and display states. Display states should be used when there are not many different changes in a view, for example when you click a checkbox that adds new options to an existing formular. If you want to change the whole displayed content (this does not have to be the whole application content though, think in components instead), you can use ViewStacks.
ViewStacks are like a stack of paper, where each paper reflects a single view. So if you want to display something else, you move the new view to the top, hiding all others below. Many components, including TabNavigators, are just ViewStacks with an additional menu to select the view that should be displayed. But you can also just use a ViewStack and manually change to what you want to show.
Flex is not sidebased like html.
You have to instantiate or remove classes, components or all this stuff.
i would use the states.
You can register handler to buttons and swap the state.
Then you are able to instatiate or remove components via the tsates.
Which flex version dou you use? The management of the states are changing between flex3 and flex4
Assume, you have one app with two content areas, home and gallery. First you have to create these two areas with project->new->component and named there related.
After that, you instanciate both components in your app.
Define two states, home and gallery and swap these with a button or two.
set the propert excludefrom or include with the name of the states. finally, you have an app with two content areas, but you never swap pages, you instanciate or remove components in runtime.
br
Frank
BR
Frank

Drupal views: Allowing users to choose sort criteria on node display

I have some nodes I am displaying in a view. They are displayed as nodes, unformatted. I would like the user to be able to choose from some predefined sort criteria ( via drop down list or similar).
So they could pick recently active, most commented, newest, etc., and re-query for new results.
Its easy with tables because you can make the labels clickable, but I do not know how to have similar functionality with a raw node preview display.
Just a thought, from me to me, and for anyone else who may be trying to do this.
An easy, sleezy option would be to just add another page view for each of the required sorts, and provide a link to these other views in the header of each of the pages.
This could also allow for (easier) linking to the individual sorts, so say if you have a sidebar block displaying recently commented nodes, you could adjust the .tpl.php of the block to have the title link to the view displaying the full set of recently commented nodes.
also im pretty sure there should be a way to do this with arguments, but i dont know how
Views 3 supports exposing sort order (just like you can expose filters)
Select the sort order (e.g. add sort by node creation date, then click on the settings for that), you should be able to expose the sort order to the end user. This is just like clicking on the settings for a filter and then choosing to expose it.
Standard views isn't going to support this, so IMO you're best off implementing a custom solution using just a plain old view and this jQuery plugin. You can either do this at the theme layer (the same way as any other JS in a theme) or a custom module (via drupal_add_js() to add the plugin and your bit of custom code). Either way will work, although the custom module has the obvious benefit of being theme independent (and thus more portable).
If you go the custom module route, please consider releasing it as a contrib module on http://drupal.org.

Resources