Drupal defining node grid data - drupal

I need to define a 10*10 grid of nodes. Each cell in the grid has to contain exactly one node.
A newly created node gets inserted into the next available cell and a new node can not be step to occupy an occupied cell.
That's the scenario I am trying to accomplish but I need suggestions how I do it.

How are your nodes currently being displayed? What version of Drupal are you using?
If you are using Views 7.x-3.x, there's a style plugin called "Grid" bundled with the module. When editing your view, click on Format and select Grid. Click "Apply", and on the following page set the number of columns to 10.
Finally, you probably want to disable the Views pager, but limit the results to 100.

Related

Changing the function of dynamic links in info parts

I am trying to let an info part's dynamic link work so that it only opens the queried values in a list on the new form.
Basically now, if i click Installation No. on the form part below.
Then this form opens up with all the Installations, not only the related Installations.
What i want to happen is when the Installation No is clicked then the list should look like when the "more" button is clicked or like the image below.
It seems like this is the standard function but i want to know if there is a way to change it.
Does anyone know a solution to this or know if there is any?
Dynamic links should work on info part forms provided prerequisites are met:
A data relationship exists between two tables, usually as one-to-many (one parent row relates to many child rows).
Each table has a field of the same extended data type.
In the parent table, the extended data type field values uniquely identify each row.
The extended data type has a relation defined on it for the field in the parent table.
Each table is a data source for one of the two forms.
The parent form contains a button that launches the child form.

Kendo UI grid subrow

I need to develop a Kendo grid as the one in the mockup that follow:
This is simple, but when a special value is selected in one of the select fields, a sort of sub-row must be displayed:
So, this set of 3 (or 6) fields is what I need to have on every grid row. That means I need to add other rows like this, being able to liveedit them or delete.
I'm wondering what is the best way to reach this (if possibile).
Can I simply define the whole set of fields (with sub-row) as a single grid row then split someway it using CSS or Kendo grid already support this kind of layout?
The Kendo UI grid is a widget which allows you to visualize and edit data via its table representation, KendoGrid is not best approach in my opinion.
You just need to create on kendo template, with you 3 static dropsdown's and when you click on your "special" value you will have to append your template again with other data if is needed.
Check on KendoTemplate docs.
EDIT: So you will have to use kendogrid detail (hardcoded), and use tempate to show you 3 fields I think.
Hope this help

Adding a panel to a theme region

Below is my theme layout :
What I would like to do is to use the panels module to add
a 4 column block at the region labeled 'content'. I have
already tried adding a node to the content region and creating
a variant using the panels module for the particular node.
But this didn't work. I tried switching the selection rules
from "Node:Type" to "Front-page" but still no luck with this.
Suggestions appreciated!!
I think you are misunderstanding the use of the panels module. Panels makes panel pages, in which you place panes in whatever arrangement you want. The panel needs a url to control, and that url can have variables in it like Node ID.
So, here is a walk through of how to use the panels in the way I think you want from the selection rules you mention:
The panel should have a path assigned, like "welcome" or "welcome/%nid"
If you have used the %nid path, set up the context to use that argument for the node id.
You only need a selection rule if you have more than one variant, as that is how the panel selects which one to use. Example, selection rule on variantA says use it when %nid validates to a node of node:typeA. Selection rule on variantB ... etc.
In the content section of you panel control, upper left point, is a button or link that says "show layout designer", click that. http://expressmagazine.net/sites/default/files/imagesArticle/panels_drupal_8.png
That will let you change how many rows and columns and regions you have on the panel. If I recall correctly a row can hold columns or regions, a column can hold rows, and content in the same region gets stacked vertically.
Since panels layouts are inside the "content" of a page, the 3-segment header and 4-segment footer of your theme will stay. You will probably want two rows, one of which with the 4 regions to make the columns in your question, and one of which with a single region to hold the full-width content. If you have the %nid setup, you can use pieces of the node (specific fields) in the regions.
Then in your site information page set "welcome" as your homepage.

Custom Controls and States

I've got an <mx:Button> in my application, I have 10 items in an XML Node. What I'd like to do is when the button is clicked show the next 5 XML Nodes.
How do I achieve this?
My code is as follows at the mo :
<mx:Button x="1380.65" y="582.65" styleName="rightButton"/>
The style is just setting the up / over and down states of the button. But I want it to function and show the XML nodes in groups of 5.
How are you displaying the first five items?
If you're displaying things in a list or DataGrid, I believe you can set the verticalScrollPosition to scroll the list via a button click.
If you are displaying items using TextInputs, custom component, or other non-renderer-based classes, you just need to manually write some code to update the display elements based on the currently displayed index and what is next.
Can you offer a running sample? That may us direct you!

Advanced DataGrid Flex 3 - ItemRenderer and Tree display

I am using Advanced DataGrid of Flex 3 with hierarchical data. The itemRenderer is a TextInput which accepts numbers. When I enter data into the given field and click the corresponding expand tree icon for the row, I want the amount entered in tree node should get cascaded to its child rows. But I found the nature of advanced DataGrid erroneous.
When I enter data and click on tree icon, the data is not populated in child windows unless i wont take the focus out from the editing control.
I tried using itemEditEnd, itemFocusOut etc but of no use. I have to explicitly click on any of the other columns and then expand tree.
Am I making any mistake anywhere?
I found solution to my problem, its bit ugly but it works. I had to register two events for textinput as follows
addEventListener(FocusEvent.MOUSE_FOCUS_CHANGE, allocateAmount);
addEventListener(FocusEvent.KEY_FOCUS_CHANGE, allocateAmount);
and then by using IViewCursor I could able to update data.

Resources