| Previous · Next | |
| User | Message |
|
iadawn
|
Date: 4/20/2007 5:41 am · Subject: How is page asset order determined? · Rating: -6
Hi, Sorry if this is a second post, 'something weird' (tm) happened to my first post on this topic... if it is not the second post then ignore my ramblings! I have a workflow activity which is used to create an historical record of some system graphs. The activity retrieves the image of the graph from a specified url and adds it as an article to a specified container. The following code is used to shift the new article to the top of the container: my $object = $container->addChild({ As far as I can determine from the docs, the 'promote' while loop will push the create article to the top rank within the container. The main aim is to have a descending date view of the graphs by pushing any new graph to the top of the page. I had seen this code work when I was testing but it does not seem to work now and on playing about with rank I am not sure what the relationship between asset rank and page display order is. My question (finally) is, what determines the order of asset display on a page? And, how can I manipulate this programmatically. Thanks for any assistance, Kevin |
| Back to Top |
Rate [ | ]
|
|
iadawn
|
Date: 4/20/2007 6:38 am · Subject: Re: How is page asset order determined? · Rating: 8
Hi Again, Well after a bit of playing around with bits and bobs I found out how this was done. Seems page asset order is determined by a comma separated list of asset ids in the container. The property is 'contentPositions' and the additional code required to put my new graph at the top of the page is: # Update the content position on the page Thanks me :) Kevin |
| Back to Top |
Rate [ | ]
|
|
JT
|
Date: 4/20/2007 10:18 am · Subject: Re: How is page asset order determined? · Rating: -4
Incidentally, the rank is used to control assets in nav. The reason that it's not used in page layouts is that you need to be able to control the position of assets across multiple content areas. |
| Back to Top |
Rate [ | ]
|