Skip to content

XAware Community

Get the Flash Player to see this player.
Flash Image Rotator Module by Joomlashack.
XAware 5.6
Need Help
Webinars and Events
Advanced Tutorials
Webinars and Events

You are here: Home arrow Forums
XAware Community Forums
Welcome, Guest
Please Login or Register.    Lost Password?
MoveElements extension added (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: MoveElements extension added
#2216
prichards (Admin)
Admin
Posts: 319
User Offline Click here to see the profile of this user
MoveElements extension added 12 Years, 4 Months ago Karma: 18  
I added a MoveElements() extension to the project (this could also be re-written as an instruction!). MoveElements provides the capability to specify the element(s) to move from the current location, to become children of another element.

This is similar to xa:move, but is not required to be defined on the element to be moved, and can also move multiple elements matching the path expression. (In XAware 5, xa:move is limited to the scope of the current Bizfile, so MoveElements may need to be used after the results are returned to the calling Bizfile).

Documentation from the code/javadoc:

MoveElements(sourcePath,targetPath) is an XA-Script extension that moves all of the elements referenced by the source path, to the specified target path (first matching element, if multiple matches).

If either the source or target paths are not found, then no elements are moved. If a source path element is an ancestor of the target path, then that source element is not moved.

Usage:
<elem xmlns:xa-post="http://xaware.org/xas/ext/post" xa-post:org.xaware.extension.MoveElements="sourcePath,targetPath" />
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
      Topics Author Date
    thread link
MoveElements extension added
prichards 2008/07/24 18:49
    thread link
thread linkthread link Re:MoveElements extension added
axacan2 2008/09/25 14:04
    thread link
thread linkthread linkthread link Re:MoveElements extension added
prichards 2008/09/25 21:02
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Community Login

Get the Flash Player to see this player.
Flash Image Rotator Module by Joomlashack.
Commercial
Free Training
QuickStart Packages
Image 4 Title
Image 5 Title

Visit XAware.com