Hi all,
In my D7 site I have a list of nodes of a specific content type. I use the XPath Feeds module to create these nodes from an XML document. I know I can create a view to display those nodes, but I need to update the nodes using AJAX and I'd love to allow the visitor to move nodes to the top so the nodes he/she is most interested in stay visible easily. The rest has to be displayed using the sort order defined in the view.
What is the best way to use AJAX to update the nodes content in a view? How can I give the visitor (unregistered user) the ability to move nodes to the top?
Thanks for any help.
Bert
Not sure what you meant by 'updating the nodes by AJAX'? Did you want to edit the nodes? Order the nodes?
For the order you can use javascript to order the nodes using a drag and drop implementation and store this as a cookie.
Here is an example
http://www.daviferreira.com/blog/exemplos/draganddrop/exemplo2.html
There is no AJAX involved in ordering as nothing goes back to the server in terms of storage.
Thanks Anoop
|-- | Zyxware Technologies | http://www.zyxware.com |-- | Be the change you wish to see in the world, M. K. Gandhi |--
On Wed, Oct 23, 2013 at 8:46 PM, Bert Van Kets bertvankets@gmail.comwrote:
Hi all,
In my D7 site I have a list of nodes of a specific content type. I use the XPath Feeds module to create these nodes from an XML document. I know I can create a view to display those nodes, but I need to update the nodes using AJAX and I'd love to allow the visitor to move nodes to the top so the nodes he/she is most interested in stay visible easily. The rest has to be displayed using the sort order defined in the view.
What is the best way to use AJAX to update the nodes content in a view? How can I give the visitor (unregistered user) the ability to move nodes to the top?
Thanks for any help.
Bert
[ Drupal support list | http://lists.drupal.org/ ]
Thanks for the pointer. I'll check it out.
By "updating by AJAX" I mean that the nodes get new data from the XML file which updates avery five minutes and the client get's the updated data through AJAX instead of refreshing the whole page.
Bert
On 10/23/2013 06:55 PM, Anoop John wrote:
Not sure what you meant by 'updating the nodes by AJAX'? Did you want to edit the nodes? Order the nodes?
For the order you can use javascript to order the nodes using a drag and drop implementation and store this as a cookie.
Here is an example
http://www.daviferreira.com/blog/exemplos/draganddrop/exemplo2.html
There is no AJAX involved in ordering as nothing goes back to the server in terms of storage.
Thanks Anoop
|-- | Zyxware Technologies | http://www.zyxware.com |-- | Be the change you wish to see in the world, M. K. Gandhi |--
On Wed, Oct 23, 2013 at 8:46 PM, Bert Van Kets <bertvankets@gmail.com mailto:bertvankets@gmail.com> wrote:
Hi all, In my D7 site I have a list of nodes of a specific content type. I use the XPath Feeds module to create these nodes from an XML document. I know I can create a view to display those nodes, but I need to update the nodes using AJAX and I'd love to allow the visitor to move nodes to the top so the nodes he/she is most interested in stay visible easily. The rest has to be displayed using the sort order defined in the view. What is the best way to use AJAX to update the nodes content in a view? How can I give the visitor (unregistered user) the ability to move nodes to the top? Thanks for any help. Bert -- [ Drupal support list | http://lists.drupal.org/ ]
The new data is coming in as new nodes or is it refreshing existing nodes?
Thanks Anoop
|-- | Zyxware Technologies | http://www.zyxware.com |-- | Be the change you wish to see in the world, M. K. Gandhi |--
On Wed, Oct 23, 2013 at 10:37 PM, Bert Van Kets bertvankets@gmail.comwrote:
Thanks for the pointer. I'll check it out.
By "updating by AJAX" I mean that the nodes get new data from the XML file which updates avery five minutes and the client get's the updated data through AJAX instead of refreshing the whole page.
Bert
On 10/23/2013 06:55 PM, Anoop John wrote:
Not sure what you meant by 'updating the nodes by AJAX'? Did you want to edit the nodes? Order the nodes?
For the order you can use javascript to order the nodes using a drag and drop implementation and store this as a cookie.
Here is an example
http://www.daviferreira.com/blog/exemplos/draganddrop/exemplo2.html
There is no AJAX involved in ordering as nothing goes back to the server in terms of storage.
Thanks Anoop
|-- | Zyxware Technologies | http://www.zyxware.com |-- | Be the change you wish to see in the world, M. K. Gandhi |--
On Wed, Oct 23, 2013 at 8:46 PM, Bert Van Kets bertvankets@gmail.comwrote:
Hi all,
In my D7 site I have a list of nodes of a specific content type. I use the XPath Feeds module to create these nodes from an XML document. I know I can create a view to display those nodes, but I need to update the nodes using AJAX and I'd love to allow the visitor to move nodes to the top so the nodes he/she is most interested in stay visible easily. The rest has to be displayed using the sort order defined in the view.
What is the best way to use AJAX to update the nodes content in a view? How can I give the visitor (unregistered user) the ability to move nodes to the top?
Thanks for any help.
Bert
[ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
The XML contains data on the status of people. The nodes, showing the person data, should update without the complete page refreshing.
So the XML Feeds just updates existing nodes. At the moment I still have a problem that the hashing doesn't uniquely identify the existing nodes and new ones are created on every import, but that needs to be sorted. I have a unique indentifier for every node. I just haven't found the way yet to use it to avoid new nodes to be created.
Bert
On 10/23/2013 07:19 PM, Anoop John wrote:
The new data is coming in as new nodes or is it refreshing existing nodes?
Thanks Anoop
|-- | Zyxware Technologies | http://www.zyxware.com |-- | Be the change you wish to see in the world, M. K. Gandhi |--
On Wed, Oct 23, 2013 at 10:37 PM, Bert Van Kets <bertvankets@gmail.com mailto:bertvankets@gmail.com> wrote:
Thanks for the pointer. I'll check it out. By "updating by AJAX" I mean that the nodes get new data from the XML file which updates avery five minutes and the client get's the updated data through AJAX instead of refreshing the whole page. Bert On 10/23/2013 06:55 PM, Anoop John wrote:Not sure what you meant by 'updating the nodes by AJAX'? Did you want to edit the nodes? Order the nodes? For the order you can use javascript to order the nodes using a drag and drop implementation and store this as a cookie. Here is an example http://www.daviferreira.com/blog/exemplos/draganddrop/exemplo2.html There is no AJAX involved in ordering as nothing goes back to the server in terms of storage. Thanks Anoop |-- | Zyxware Technologies | http://www.zyxware.com |-- | Be the change you wish to see in the world, M. K. Gandhi |-- On Wed, Oct 23, 2013 at 8:46 PM, Bert Van Kets <bertvankets@gmail.com <mailto:bertvankets@gmail.com>> wrote: Hi all, In my D7 site I have a list of nodes of a specific content type. I use the XPath Feeds module to create these nodes from an XML document. I know I can create a view to display those nodes, but I need to update the nodes using AJAX and I'd love to allow the visitor to move nodes to the top so the nodes he/she is most interested in stay visible easily. The rest has to be displayed using the sort order defined in the view. What is the best way to use AJAX to update the nodes content in a view? How can I give the visitor (unregistered user) the ability to move nodes to the top? Thanks for any help. Bert -- [ Drupal support list | http://lists.drupal.org/ ]-- [ Drupal support list | http://lists.drupal.org/ ]
Use a mapping table for your xml import id to your node nid then do a join on nid=xmlid.
Earnie
On Thu, Oct 24, 2013 at 4:12 AM, Bert Van Kets bertvankets@gmail.com wrote:
The XML contains data on the status of people. The nodes, showing the person data, should update without the complete page refreshing.
So the XML Feeds just updates existing nodes. At the moment I still have a problem that the hashing doesn't uniquely identify the existing nodes and new ones are created on every import, but that needs to be sorted. I have a unique indentifier for every node. I just haven't found the way yet to use it to avoid new nodes to be created.
Bert
On 10/23/2013 07:19 PM, Anoop John wrote:
The new data is coming in as new nodes or is it refreshing existing nodes?
Thanks Anoop
|-- | Zyxware Technologies | http://www.zyxware.com |-- | Be the change you wish to see in the world, M. K. Gandhi |--
On Wed, Oct 23, 2013 at 10:37 PM, Bert Van Kets bertvankets@gmail.com wrote:
Thanks for the pointer. I'll check it out.
By "updating by AJAX" I mean that the nodes get new data from the XML file which updates avery five minutes and the client get's the updated data through AJAX instead of refreshing the whole page.
Bert
On 10/23/2013 06:55 PM, Anoop John wrote:
Not sure what you meant by 'updating the nodes by AJAX'? Did you want to edit the nodes? Order the nodes?
For the order you can use javascript to order the nodes using a drag and drop implementation and store this as a cookie.
Here is an example
http://www.daviferreira.com/blog/exemplos/draganddrop/exemplo2.html
There is no AJAX involved in ordering as nothing goes back to the server in terms of storage.
Thanks Anoop
|-- | Zyxware Technologies | http://www.zyxware.com |-- | Be the change you wish to see in the world, M. K. Gandhi |--
On Wed, Oct 23, 2013 at 8:46 PM, Bert Van Kets bertvankets@gmail.com wrote:
Hi all,
In my D7 site I have a list of nodes of a specific content type. I use the XPath Feeds module to create these nodes from an XML document. I know I can create a view to display those nodes, but I need to update the nodes using AJAX and I'd love to allow the visitor to move nodes to the top so the nodes he/she is most interested in stay visible easily. The rest has to be displayed using the sort order defined in the view.
What is the best way to use AJAX to update the nodes content in a view? How can I give the visitor (unregistered user) the ability to move nodes to the top?
Thanks for any help.
Bert
[ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
Thanks for the feedback Earnie. I got the updating of the data of the nodes fixed by creating a unique string and setting it as a unique value. The nodes data is updating fine now. From what I read it is not advised to use the XMLnodeID as a Drupal Node ID, so I avoided that route.
I just need to get the updating of the nodes on the client over Ajax running. I have a page with static content (info on and statuses of people), so I'm not sure on how to do the update as there is no feedback from the user.
Bert
On 10/24/2013 02:29 PM, Earnie Boyd wrote:
Use a mapping table for your xml import id to your node nid then do a join on nid=xmlid.
Earnie
On Thu, Oct 24, 2013 at 4:12 AM, Bert Van Kets bertvankets@gmail.com wrote:
The XML contains data on the status of people. The nodes, showing the person data, should update without the complete page refreshing.
So the XML Feeds just updates existing nodes. At the moment I still have a problem that the hashing doesn't uniquely identify the existing nodes and new ones are created on every import, but that needs to be sorted. I have a unique indentifier for every node. I just haven't found the way yet to use it to avoid new nodes to be created.
Bert
On 10/23/2013 07:19 PM, Anoop John wrote:
The new data is coming in as new nodes or is it refreshing existing nodes?
Thanks Anoop
|-- | Zyxware Technologies | http://www.zyxware.com |-- | Be the change you wish to see in the world, M. K. Gandhi |--
On Wed, Oct 23, 2013 at 10:37 PM, Bert Van Kets bertvankets@gmail.com wrote:
Thanks for the pointer. I'll check it out.
By "updating by AJAX" I mean that the nodes get new data from the XML file which updates avery five minutes and the client get's the updated data through AJAX instead of refreshing the whole page.
Bert
On 10/23/2013 06:55 PM, Anoop John wrote:
Not sure what you meant by 'updating the nodes by AJAX'? Did you want to edit the nodes? Order the nodes?
For the order you can use javascript to order the nodes using a drag and drop implementation and store this as a cookie.
Here is an example
http://www.daviferreira.com/blog/exemplos/draganddrop/exemplo2.html
There is no AJAX involved in ordering as nothing goes back to the server in terms of storage.
Thanks Anoop
|-- | Zyxware Technologies | http://www.zyxware.com |-- | Be the change you wish to see in the world, M. K. Gandhi |--
On Wed, Oct 23, 2013 at 8:46 PM, Bert Van Kets bertvankets@gmail.com wrote:
Hi all,
In my D7 site I have a list of nodes of a specific content type. I use the XPath Feeds module to create these nodes from an XML document. I know I can create a view to display those nodes, but I need to update the nodes using AJAX and I'd love to allow the visitor to move nodes to the top so the nodes he/she is most interested in stay visible easily. The rest has to be displayed using the sort order defined in the view.
What is the best way to use AJAX to update the nodes content in a view? How can I give the visitor (unregistered user) the ability to move nodes to the top?
Thanks for any help.
Bert
[ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]
-- [ Drupal support list | http://lists.drupal.org/ ]