All Discussions - LocomotiveCMS http://locomotive.cl0.vanillaforums.com/discussions/feed.rss Thu, 17 May 12 01:17:21 -0400 All Discussions - LocomotiveCMS en-CA Using In-Line Editor? http://locomotive.cl0.vanillaforums.com/discussion/243/using-in-line-editor Fri, 27 Apr 2012 05:24:51 -0400 victorhooi 243@/discussions
It mentions under Features (http://locomotivecms.com/features) that there is in-line editing in Locomotive using Aloha Editor.

However, how exactly do you enable this?

I tried adding the tag "{% inline_editor %}" to the end of my page template, and it doesn't seem to change anything?

Are there more detailed steps required for this? I'm assuming I omitted a step somewhere...lol.

Cheers,
Victor]]>
Windows installation http://locomotive.cl0.vanillaforums.com/discussion/3/windows-installation Tue, 11 Jan 2011 18:51:39 -0500 ballmatic 3@/discussions can't delete a secondary account http://locomotive.cl0.vanillaforums.com/discussion/242/cant-delete-a-secondary-account Wed, 25 Apr 2012 09:06:38 -0400 zoso 242@/discussions Model and Templatised page clarifications http://locomotive.cl0.vanillaforums.com/discussion/238/model-and-templatised-page-clarifications Sun, 08 Apr 2012 13:20:07 -0400 karloakes 238@/discussions
1. Can I use the editable tags to edit the model data, if not, can I only use the page content type?
2. Can I display a templatised page using the nav tag ?
3. In the templatised page, when I add a for loop into my template to iterate the model and add editable content tags, it then displays them as inputs in the back office templatised page, which are not related to the model or has_many models I have created.

I must be getting confused with the 'templatised' option and therefore would appreciate some advice.]]>
Can't purchase editor http://locomotive.cl0.vanillaforums.com/discussion/241/cant-purchase-editor Mon, 16 Apr 2012 06:30:10 -0400 eliweir 241@/discussions
Eli Weir
eli@eliweir.com
+64 (21) 945-859]]>
Saved a Model and Corrupted Mongo Data http://locomotive.cl0.vanillaforums.com/discussion/240/saved-a-model-and-corrupted-mongo-data Tue, 10 Apr 2012 05:41:12 -0400 dcunited001 240@/discussions
And then I added a blog and now I can't access anything related to the blogs. The truncate is pointing to a date and I had added a 'write_date' field to my Blogs model. And this is what I was ordering on originally, even though there are the created_at and updated_at fields.

Should I just nuke all my blogs and start over? or will I be worse off then I was. I'm just getting everything set up, but I really don't want to have to start over. I didn't really expect this, so I didn't take a backup of clean data.

I saw that other models had the order_by_text set to "By updating date" and "name", so I tried manually changing this one field on my Blog models, but to no avail.

Is there anything I can do?



ActionView::Template::Error (undefined method `truncate' for Tue, 10 Apr 2012:Date):
36: %ul
37: - content_type.entries.latest_updated.each do |entry|
38: %li
39: = link_to truncate(entry._label(content_type), :length => 20), edit_content_entry_url(content_type.slug, entry)
40: %span= time_ago_in_words(entry.updated_at)
actionpack (3.2.3) lib/action_view/helpers/text_helper.rb:87:in `truncate'
locomotive_cms (2.0.0.rc4) app/views/locomotive/shared/menu/_contents.html.haml:39:in `block (3 levels) in __home_webapp__rvm_gems_ruby_______p____gems_locomotive_cms_______rc__app_views_locomotive_shared_menu__contents_html_haml__1991805978535545982_198907180'
mongoid (2.4.7) lib/mongoid/contexts/mongo.rb:261:in `block in iterate'
mongoid (2.4.7) lib/mongoid/cursor.rb:50:in `block in each'
mongoid (2.4.7) lib/mongoid/collections/retry.rb:29:in `retry_on_connection_failure'
mongoid (2.4.7) lib/mongoid/cursor.rb:48:in `each'
mongoid (2.4.7) lib/mongoid/contexts/mongo.rb:261:in `iterate'
mongoid (2.4.7) lib/mongoid/criteria.rb:145:in `block in each'
mongoid (2.4.7) lib/mongoid/criteria.rb:145:in `tap'
mongoid (2.4.7) lib/mongoid/criteria.rb:145:in `each'
locomotive_cms (2.0.0.rc4) app/views/locomotive/shared/menu/_contents.html.haml:37:in `block (2 levels) in __home_webapp__rvm_gems_ruby_______p____gems_locomotive_cms_______rc__app_views_locomotive_shared_menu__contents_html_haml__1991805978535545982_198907180'
haml (3.1.4) lib/haml/helpers/action_view_mods.rb:93:in `block in capture_with_haml'
haml (3.1.4) lib/haml/helpers.rb:345:in `call'
haml (3.1.4) lib/haml/helpers.rb:345:in `block in capture_haml'
haml (3.1.4) lib/haml/helpers.rb:569:in `with_haml_buffer'
haml (3.1.4) lib/haml/helpers.rb:341:in `capture_haml'
haml (3.1.4) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss'
haml (3.1.4) lib/haml/helpers/action_view_mods.rb:93:in `capture_with_haml'
locomotive_cms (2.0.0.rc4) app/helpers/locomotive/base_helper.rb:25:in `submenu_entry'
locomotive_cms (2.0.0.rc4) app/views/locomotive/shared/menu/_contents.html.haml:28:in `block in __home_webapp__rvm_gems_ruby_______p____gems_locomotive_cms_______rc__app_views_locomotive_shared_menu__contents_html_haml__1991805978535545982_198907180'
locomotive_cms (2.0.0.rc4) app/helpers/locomotive/content_types_helper.rb:33:in `block in each_content_type'
locomotive_cms (2.0.0.rc4) app/helpers/locomotive/content_types_helper.rb:33:in `map'
locomotive_cms (2.0.0.rc4) app/helpers/locomotive/content_types_helper.rb:33:in `each_content_type'
locomotive_cms (2.0.0.rc4) app/views/locomotive/shared/menu/_contents.html.haml:15:in `__home_webapp__rvm_gems_ruby_______p____gems_locomotive_cms_______rc__app_views_locomotive_shared_menu__contents_html_haml__1991805978535545982_198907180'
actionpack (3.2.3) lib/action_view/template.rb:143:in `block in render'
activesupport (3.2.3) lib/active_support/notifications.rb:125:in `instrument'
actionpack (3.2.3) lib/action_view/template.rb:141:in `render'
actionpack (3.2.3) lib/action_view/renderer/partial_renderer.rb:265:in `render_partial'
actionpack (3.2.3) lib/action_view/renderer/partial_renderer.rb:238:in `block in render'
actionpack (3.2.3) lib/action_view/renderer/abstract_renderer.rb:38:in `block in instrument'
activesupport (3.2.3) lib/active_support/notifications.rb:123:in `block in instrument'
activesupport (3.2.3) lib/active_support/notifications/instrumenter.rb:20:in `instrument'
activesupport (3.2.3) lib/active_support/notifications.rb:123:in `instrument'
actionpack (3.2.3) lib/action_view/renderer/abstract_renderer.rb:38:in `instrument'
actionpack (3.2.3) lib/action_view/renderer/partial_renderer.rb:237:in `render'
actionpack (3.2.3) lib/action_view/renderer/renderer.rb:41:in `render_partial'
actionpack (3.2.3) lib/action_view/helpers/rendering_helper.rb:27:in `render'
haml (3.1.4) lib/haml/helpers/action_view_mods.rb:11:in `block in render_with_haml'
haml (3.1.4) lib/haml/helpers.rb:90:in `non_haml'
haml (3.1.4) lib/haml/helpers/action_view_mods.rb:11:in `render_with_haml'
locomotive_cms (2.0.0.rc4) app/views/locomotive/content_entries/index.html.haml:28:in `block in __home_webapp__rvm_gems_ruby_______p____gems_locomotive_cms_______rc__app_views_locomotive_content_entries_index_html_haml__2602829802630083675_198995960'
haml (3.1.4) lib/haml/helpers/action_view_mods.rb:93:in `block in capture_with_haml'
haml (3.1.4) lib/haml/helpers.rb:345:in `call'
haml (3.1.4) lib/haml/helpers.rb:345:in `block in capture_haml'
haml (3.1.4) lib/haml/helpers.rb:569:in `with_haml_buffer'
haml (3.1.4) lib/haml/helpers.rb:341:in `capture_haml'
haml (3.1.4) lib/haml/helpers/xss_mods.rb:61:in `capture_haml_with_haml_xss'
haml (3.1.4) lib/haml/helpers/action_view_mods.rb:93:in `capture_with_haml'
actionpack (3.2.3) lib/action_view/helpers/capture_helper.rb:138:in `content_for'
locomotive_cms (2.0.0.rc4) app/views/locomotive/content_entries/index.html.haml:27:in `__home_webapp__rvm_gems_ruby_______p____gems_locomotive_cms_______rc__app_views_locomotive_content_entries_index_html_haml__2602829802630083675_198995960']]>
Cannot Help to Worship Replica Watch http://locomotive.cl0.vanillaforums.com/discussion/235/cannot-help-to-worship-replica-watch Fri, 06 Apr 2012 02:26:58 -0400 huangfeihong 235@/discussions Rolex watches replica with outstanding functions and various classic styles can meet diverse individual needs.
Bell& Ross watches replica crafted from 18k rose gold flaunt off distinguishing sense of beauty and luxury. The appearance of
Breitling watches replica is ingenious and with plenty of three dimension touch. For over a century,
Bvlgari watches replica have been in forefront of Italian watch design. The styles of
Cartier watches replica combine unique bold designs are very popular among fashionable men and women.]]>
S3 Problems: Fog 1.1.2, Excon: unable to verify certificate http://locomotive.cl0.vanillaforums.com/discussion/239/s3-problems-fog-1.1.2-excon-unable-to-verify-certificate Mon, 09 Apr 2012 03:12:08 -0400 dcunited001 239@/discussions
Unfortunately, I'm getting an error when trying to upload files. The excon gem is throwing an error deep in the stack. Unless I'm have something wrong in my stack, this is a bug addressed with an upgrade of Fog. It's addressed in the following Github issue.

https://github.com/fog/fog/issues/789

The locomotive bundle has Fog locked at 1.1.2, so I'm having a hard time upgrading to Fog 1.2 or 1.3. I'm moving to local storage for now.

Any advice?

Thanks,
David

]]>
Male Elites Prefer Outstanding Watches http://locomotive.cl0.vanillaforums.com/discussion/237/male-elites-prefer-outstanding-watches Fri, 06 Apr 2012 02:30:23 -0400 huangfeihong 237@/discussions Breitling replica watches are carefully designed and put together so that everybody will be totally pleased with them.
Bvlgari replica watches are all about the audacity of the human spirit. Through
Cartier replica watches, it has proven that traditional artworks can be combined with innovative functions and designs.
Chopard replica watches will absolutely make it a great selection for the art addicts.
Hublot replica watches featuring 18k gold and 42mm case enhance the superb simplicity of the design and glittering metal luster.]]>
The Variety of Handbag Styles Allow You to Switch Dresses http://locomotive.cl0.vanillaforums.com/discussion/236/the-variety-of-handbag-styles-allow-you-to-switch-dresses Fri, 06 Apr 2012 02:29:03 -0400 huangfeihong 236@/discussions Designer Replica Handbags spring 2012 collection and pick your new season favorites. Classic elements are still kept though design for the
Louis Vuitton Replica handbags for new seasons. Gucci Replica handbags are given a boost of luxury and seductiveness through the all kinds of styles like Bamboo, Boston and so on.
Hermes replica handbags made with snakeskin and crocodile leather emphasize elegance while still maintaining luxe casualness. From pure color satchels to colorful clutches, the new Burberry replica handbags bring plenty of fun to any wardrobe.
Balenciaga replica handbags
reveal classic beauty and striking shapes are very popular among journey lovers.]]>
Unicorn_Rails failed to start http://locomotive.cl0.vanillaforums.com/discussion/226/unicorn_rails-failed-to-start Wed, 07 Mar 2012 11:12:48 -0500 yzack 226@/discussions
Great work with sasha !
We have some trouble when starting "bundle exec unicorn_rails" on a Mac (lion)

DEVISE] Please note that Mongoid versions prior to 2.1 handle dirty model object attributes in such a way that the Devise `validatable` module will not apply its usual uniqueness and format validations for the email field. It is recommended that you upgrade to Mongoid 2.1+ for this and other fixes, but if for some reason you are unable to do so, you should add these validations manually.
#
E, [2012-03-07T16:59:05.950017 #2218] ERROR -- : reaped # worker=0
I, [2012-03-07T16:59:05.950886 #2218] INFO -- : worker=0 spawning...
I, [2012-03-07T16:59:05.954710 #2225] INFO -- : worker=0 spawned pid=2225
I, [2012-03-07T16:59:05.955264 #2225] INFO -- : Refreshing Gem list
^CI, [2012-03-07T16:59:07.131819 #2218] INFO -- : reaped # worker=0
I, [2012-03-07T16:59:07.132578 #2218] INFO -- : master complete

MongoDb seems to be ok,
all gems updated,
bundle install,
ruby 1.8.7

Is there a way to use mongrel instead ?]]>
Export Site http://locomotive.cl0.vanillaforums.com/discussion/234/export-site Mon, 26 Mar 2012 18:32:48 -0400 sturner 234@/discussions

]]>
Production App On Heroku http://locomotive.cl0.vanillaforums.com/discussion/230/production-app-on-heroku Thu, 15 Mar 2012 23:17:15 -0400 sturner 230@/discussions Extending Locomotive http://locomotive.cl0.vanillaforums.com/discussion/233/extending-locomotive Thu, 22 Mar 2012 13:09:11 -0400 w0lver 233@/discussions
1) How can you use RnR syntax on pages? I've tried just <% ... %> and it treats them as literals. I also tried a Raw block and the page will not save. Is the Liquid Raw tag not supported?

2) What's the best way to create additional feature functions? Is it to keep the views within the existing framework or to use the app directory and typical MVC development. And if I do the latter, how to I access things like Locomotive models, Liquid, etc.

Thanks!
Ross]]>
Support for Multiple Languages? http://locomotive.cl0.vanillaforums.com/discussion/232/support-for-multiple-languages Mon, 19 Mar 2012 01:45:31 -0400 victorhooi 232@/discussions
I'm looking at setting up a CMS soon, and one of our requirements was for multiple language support.

Is there any support for multiple languages within Locomotive?

I did a search on the forums and all I could find was this:

http://locomotive.cl0.vanillaforums.com/discussion/comment/175

However, there doesn't seem to be an updates on the issue since then?

Cheers,
Victor]]>
Render mobile CSS http://locomotive.cl0.vanillaforums.com/discussion/139/render-mobile-css Tue, 20 Sep 2011 14:54:18 -0400 cornflex 139@/discussions I want to show the exact same website to mobile clients with just a different stylesheet applied. Any ideas?
I added some lines to the application controller, defining that it should check the UA agent and depending on that redirect to either the normal view (application.html.erb) or a mobile view. The views only include different stylesheets and <%= yield %> in the body. This doesn't work, as locomotive renders the liquid templates which include the head etc. themselves. Any advice on this and how I could make it work?

Thanks in advance!]]>
Unknown Error 500 Cause of ActionView::Template::Error http://locomotive.cl0.vanillaforums.com/discussion/231/unknown-error-500-cause-of-actionviewtemplateerror Sat, 17 Mar 2012 11:01:57 -0400 cornflex 231@/discussions I'm not sure if you can help me.
My plan was to add a gallery feature and I added some stylsheets and scripts to one of my pages (child of home page). I remembered I shouldn't add stylesheets and scripts in the middle of the page and therefore wanted to create blocks for additional styles and additional scripts in the home page's template.
I added {% block additonal_styles %}{% endblock %} and the same for scripts to the home page template. (I think I didn't change anything else.)
Afterwards I could no longer edit any pages which were children of the home page (which were all of them except for the 404 and the home page itself). Instead of loading the edit page it now shows an error. Checking the production log I find the message at the end of this post.

I hope I'm not asking this question too hastily, but I can't seem to find the cause of this error. I was hoping one of you could point me in the right direction to look for errors. Anybody ideas as to which file is causing this?

What I've tried so far:
I've checked the home page for syntax errors and remove the two lines I had added before, but it still doesn't solve it.
I removed the JS and CSS files for the gallery (I can't remove the references to them in the body of the child page because I can't edit it anymore).

I can attach more info on your request.

Thanks in advance!
Desperately,
cornflex

-- Error message from production log --

Started GET "/admin/pages/4e53e74cd7b2074c12000099/edit" for 79.247.131.20 at 2012-03-17 12:59:57 +0100
Processing by Admin::PagesController#edit as HTML
Parameters: {"id"=>"4e53e74cd7b2074c12000099"}
[LocomotiveCMS] [fetch site] host = bla.myhost.net / bla.myhost.net
Rendered /usr/local/rvm/gems/ruby-1.9.2-p290@myproject/bundler/gems/engine-7aadd9d129e0/app/views/admin/shared/menu/_contents.html.haml (44.4ms)
Rendered /usr/local/rvm/gems/ruby-1.9.2-p290@myproject/bundler/gems/engine-7aadd9d129e0/app/views/admin/shared/actions/_contents.html.haml (0.7ms)
Rendered /usr/local/rvm/gems/ruby-1.9.2-p290@myproject/bundler/gems/engine-7aadd9d129e0/app/views/admin/pages/_form.html.haml (142.4ms)
Rendered /usr/local/rvm/gems/ruby-1.9.2-p290@myproject/bundler/gems/engine-7aadd9d129e0/app/views/admin/pages/edit.html.haml within /admin/layouts/application (194.0ms)
Completed 500 Internal Server Error in 225ms

ActionView::Template::Error (too much data for sort() with no index):
9: = f.input :title, :wrapper_html => { :class => 'highlighted' }
10:
11: - if not @page.index? and not @page.not_found?
12: = f.input :parent_id, :as => :select, :collection => parent_pages_options, :include_blank => false
13:
14: = f.input :slug, :required => false, :hint => @page.slug.blank? ? ' ' : page_url(@page), :input_html => { :'data-url' => get_path_admin_pages_url, :disabled => @page.index? || @page.not_found? }, :wrapper_html => { :style => "#{'display: none' if @page.templatized?};" }
15:
]]>
Multi sites on localhost http://locomotive.cl0.vanillaforums.com/discussion/205/multi-sites-on-localhost Sun, 29 Jan 2012 19:20:57 -0500 cameroooon 205@/discussions
I'm trying to set up multi sites on localhost, but can't seem to get anything other than 'No Site!'.

My locomotive.rb file has:

config.multi_sites do |multi_sites|
multi_sites.domain = 'localhost:8080'
multi_sites.reserved_subdomains = %w(site1 site2)
end


and I've adjusted my hosts file to include:

127.0.0.1 localhost
127.0.0.1 site1.localhost
127.0.0.1 site2.localhost


I then restarted locomotive. But now if I go to any of:
  • localhost:8080/
  • site1.localhost:8080/
  • site2.localhost:8080/

...I just see "No Site!"

Is there something I'm missing?
(I'm a noob developing on a Mac running OSX 10.6.8, Rails 3.0.10 & Ruby 1.9.2p290)
-- Cam
]]>
Upgrade Existing Site http://locomotive.cl0.vanillaforums.com/discussion/228/upgrade-existing-site Mon, 12 Mar 2012 18:37:14 -0400 sturner 228@/discussions [noob]URL for nested model http://locomotive.cl0.vanillaforums.com/discussion/225/nooburl-for-nested-model Tue, 06 Mar 2012 14:42:03 -0500 kilik 225@/discussions
But I have one little problem :
I'm doing a blog system, so having 2 models : "post" and "comment", of course post has_many comments. In my pages, I have one 'blog', which is parent for 'post', and 'post' is parent for 'comment'. So I can access my post like 'blog/my_post', that's okay.
Then, when I try to access comment, I'm trying 'blog/my_post/my_comment', but it doesn't work. Any idea ?
Did someone already use Locomotive for a blog btw ?]]>
Liquid Syntax Help http://locomotive.cl0.vanillaforums.com/discussion/229/liquid-syntax-help Mon, 12 Mar 2012 18:42:02 -0400 sturner 229@/discussions
img src="{{ work.thumbnail.url }}" alt="Inspect Element large preview"


but i changed thumbnail custom field to a has one relationship with photo model. How do i access and display the liquid format for has one relationships.]]>
2 questions from the beginner http://locomotive.cl0.vanillaforums.com/discussion/209/2-questions-from-the-beginner Sun, 05 Feb 2012 12:54:42 -0500 deem0n 209@/discussions
I am about to choose locomotive over 5 other Ruby CMS I checked. Even Radiant have not impressed me as much as locomotive !

But before I can dive into this nice CMS I need some help

1. If I have model PortfolioItem with 2 fields: LongText and ShortText. It will be possible to make an itemsList on any site page (let's say Home page) with
{% for item in contents.PortfolioItems %}
{{ item.ShortText}}

{% endfor %}

Is it possible to put {% editable_long_text %} somehow, so enduser may edit ShortText for the correct model, even if user will do it on Home page ?

2. I managed to install upcoming version 2.0.0 with some troubles. It looks almost the same, but I see multilingual capabilities was added. That's nice.
But I sow that Theme import was not working (tried both themes from here: http://www.locomotivecms.com/support/themes)

If I will use stable version and populate it with data and custom design, how I will migrate my site to upcoming 2.0.0 ?
Any compatibility issues ? Should I use 2.0.0 right now to avoid future migration problems ? If yes, how to install Theme files ?

Thank you, I was really impressed with Locomotive CMS]]>
Still OK for version 2 http://locomotive.cl0.vanillaforums.com/discussion/222/still-ok-for-version-2 Sat, 03 Mar 2012 14:21:31 -0500 karloakes 222@/discussions Good tutorial found http://locomotive.cl0.vanillaforums.com/discussion/227/good-tutorial-found Wed, 07 Mar 2012 17:33:00 -0500 karloakes 227@/discussions Anyone struggling with the architecture I found this excellent tutorial..

http://www.tommyblue.it/2011/02/28/how-to-build-a-website-with-locomotive-cms-from-scratch

Hope it helps some newbies like me...]]>
Locomotive and Ruby 1.9.3-p125 http://locomotive.cl0.vanillaforums.com/discussion/220/locomotive-and-ruby-1.9.3-p125 Wed, 29 Feb 2012 09:20:29 -0500 betacar 220@/discussions
Regards.]]>
Image resize http://locomotive.cl0.vanillaforums.com/discussion/218/image-resize Tue, 28 Feb 2012 14:45:19 -0500 sturner 218@/discussions
{{ picture.data.url | image_tag }}


I tried this to resize the images to 100x100
img src="{{ picture.data.url | resize: '100x100#' }}"

but it gives me an error
img src="Liquid error: the scheme http does not accept registry part: see_sightuary.s3.amazonaws.com (or bad hostname?)"

the docs? says use img src="{{ asset | resize: '100x100#' }}" where i assumed asset would be any file content type.


]]>
Template / theme architecture - noob help needed http://locomotive.cl0.vanillaforums.com/discussion/224/template-theme-architecture-noob-help-needed Mon, 05 Mar 2012 17:44:12 -0500 karloakes 224@/discussions I have purchased the loco editor, which has some handy shortcuts... Just trying to understand the architecture, i.e.

In the downloaded example themes the index.liquid file seems to be like an application.html.erb in std Rails project. Is this regarded as the 'parent', can this be any file ? If so, where is this set in the yml file ?

I can also see some template.liquid files, which seem to more like parent / theme files, but they have the {% extends 'parent' %} , which parent ?

Or is the parent created outside the theme ?

I'm confused, please help, as I really want to stay with this project, but the lack of documentation is driving me away and I may have to go back to Wordpress, ahhh!!!

Many thanks

]]>
keywords http://locomotive.cl0.vanillaforums.com/discussion/223/keywords Mon, 05 Mar 2012 11:52:01 -0500 jsilver 223@/discussions Version 2.0 http://locomotive.cl0.vanillaforums.com/discussion/221/version-2.0 Sat, 03 Mar 2012 06:41:14 -0500 karloakes 221@/discussions https://github.com/locomotivecms/engine.git
Also which branch do I clone ? master or 2.0.0.rc?
Will the site repo at https://github.com/locomotivecms/site.git be updated eventually or is this frozen for old version ?
Many thanks... ]]>
How do I sort model items? http://locomotive.cl0.vanillaforums.com/discussion/219/how-do-i-sort-model-items Tue, 28 Feb 2012 20:20:07 -0500 cameroooon 219@/discussions
I'm just wondering whether or not it's possible to sort model items?

For example, I have a 'book' model set up and I have created 4 book items. From what I can gather, when I request books from the database they are returned last-in/first-out. So: Book 4 --> Book 3 --> Book 2 --> Book 1.

If I wanted Book 2 to now appear at the top of the returned list (ie. where Book 4 currently is), how would I go about this?

Many thanks!
-- Cam]]>