Re: [Radiant] Drag order extension with Radiant 0.9.1

2010-08-10 Thread Wes Gamble

 Sweet!  Will give it a whirl tomorrow.

Wes

On 8/9/10 11:27 PM, banane wrote:
OK this seems to work for me. Master branch, 
http://github.com/banane/radiant-drag-order/


On Mon, Aug 9, 2010 at 7:49 PM, Wes Gamble we...@att.net 
mailto:we...@att.net wrote:


FWIW,

I've definitely verified that the position column on the Page
model is being respected in the admin. page display.  When a
parent page's children are requested using Page#children, the
position value is also respected (it appears that if two pages
have the same position value, then the primary key order
prevails).  I can move pages around in the list at will by
manipulating the position value directly.

Sometimes, for whatever reason, the position columns of a set of
pages at the same level are not being updated correctly.  I
haven't been able to figure out if it has to do with the
direction in which the items are being moved or not.

I see drag/drop failing occasionally with an error of the type:

   SELECT * FROM pages WHERE (slug LIKE ''internal-political-issue'%%') AND 
(pages.parent_id = 1)

which is again some silly syntax issue where there are too many
quotes in the WHERE clause.

I suspect maybe two things are going on:

1) Whatever causes the SQL syntax error

2) When an error occurs, a proper rollback of the original order
may not be done (which is how you might end up with duplicated
position values)

Wes


On 8/9/10 9:21 PM, Marshal Linfoot wrote:

Anna, thank you. I'll be happy to test your changes.

On Mon, Aug 9, 2010 at 10:12 PM, banane ban...@gmail.com
mailto:ban...@gmail.com wrote:

I'll try to rework mine. I got a pull request a few weeks ago
from someone who'd merged branches.
anna

-- 
marshal





[Radiant] Re: [Radiant-Dev] Assets SnS / TinyMCE error

2010-08-10 Thread Steven Southard

I have the same thing now.  Did you ever get an answer?

Cheers,

Steven

On Jun 7, 2010, at 4:09 AM, Rich wrote:


Hi there,

I've just setup a new radiant 0.8.1 site and have a couple of
questions regarding the above extensions:

1) The assets management is great and functionality works within  
pages/

snippets/layouts but unfortunately this isn't the same for text assets
(css/js) created with the SnS extension, how would I go around
modifying this so I can use say background: url(r:assets:url
title=whatever / within a stylesheet asset.

2) Upon trying to browse for an image when clicking the insert image
button using the TinyMCE wysiwyg editor I get the following error:

--

Showing vendor/extensions/tiny_paper/app/views/admin/tiny_paper/
_images_sizes.html.haml where line #6 raised:

undefined method `each' for #Proc:0x1032757f0
Extracted source (around line #6):

3: %p= asset.title
4: %div
5:   %table#sizes
6: - @thumbnails.each do |k, v|
7:   %tr
8: %th= link_to k, asset.asset.url(k)
9: %td= asset.width(k).to_s + 'px x ' + asset.height(k).to_s +
'px'

--

Has anyone else encountered this problem or have any idea/clue as how
to fix it. Any help is appreciated.

Kind Regards
Rich

--
Radiant CMS Dev Mailing List
Post:radiantcms-...@googlegroups.com
Unsubscribe: radiantcms-dev-unsubscr...@googlegroups.com
Group Site:  http://groups.google.com/group/radiantcms-dev/




Re: [Radiant] Drag order extension with Radiant 0.9.1

2010-08-10 Thread banane
No problem- needed to upgrade anyways!

On Tue, Aug 10, 2010 at 8:21 AM, Wes Gamble we...@att.net wrote:

  This works great!!!

 Looks like everything works, including copying and placing items at the
 same level or making them children of other items.

 Thanks so much.

 Wes

 On 8/9/10 11:27 PM, banane wrote:

 OK this seems to work for me. Master branch,
 http://github.com/banane/radiant-drag-order/

 On Mon, Aug 9, 2010 at 7:49 PM, Wes Gamble we...@att.net wrote:

  FWIW,

 I've definitely verified that the position column on the Page model is
 being respected in the admin. page display.  When a parent page's children
 are requested using Page#children, the position value is also respected (it
 appears that if two pages have the same position value, then the primary key
 order prevails).  I can move pages around in the list at will by
 manipulating the position value directly.

 Sometimes, for whatever reason, the position columns of a set of pages
 at the same level are not being updated correctly.  I haven't been able to
 figure out if it has to do with the direction in which the items are being
 moved or not.

 I see drag/drop failing occasionally with an error of the type:

   SELECT * FROM pages WHERE (slug LIKE ''internal-political-issue'%%') AND 
 (pages.parent_id = 1)

 which is again some silly syntax issue where there are too many quotes in
 the WHERE clause.

 I suspect maybe two things are going on:

 1) Whatever causes the SQL syntax error

 2) When an error occurs, a proper rollback of the original order may not
 be done (which is how you might end up with duplicated position values)

 Wes


 On 8/9/10 9:21 PM, Marshal Linfoot wrote:

 Anna, thank you. I'll be happy to test your changes.

 On Mon, Aug 9, 2010 at 10:12 PM, banane ban...@gmail.com wrote:

 I'll try to rework mine. I got a pull request a few weeks ago from
 someone who'd merged branches.
 anna

  --
 marshal





Fwd: [Radiant] forms extensions installed, but no Forms tab appears

2010-08-10 Thread Lindsay Morris
bounced, trying again

-- Forwarded message --
From: Lindsay Morris lmorris...@gmail.com
Date: Mon, Aug 9, 2010 at 10:15 AM
Subject: Re: [Radiant] forms extensions installed, but no Forms tab appears
To: radiantcms@googlegroups.com


Thanks, Jim.
It's here:

ls -l /usr/lib/ruby/gems/1.8/gems/radiant-forms-extension-2.0.1/
total 52
-rw-r--r-- 1 root root 3507 Aug  3 16:52 README.md
-rw-r--r-- 1 root root 4896 Aug  3 16:52 Rakefile
-rw-r--r-- 1 root root6 Aug  3 16:52 VERSION
drwxr-xr-x 5 root root 4096 Aug  3 16:03 app
drwxr-xr-x 3 root root 4096 Aug  3 16:52 config
-rw-r--r-- 1 root root   67 Aug  3 16:52 cucumber.yml
drwxr-xr-x 3 root root 4096 Aug  3 16:03 db
-rw-r--r-- 1 root root  814 Aug  3 16:52 forms_extension.rb
drwxr-xr-x 4 root root 4096 Aug  3 16:03 lib
drwxr-xr-x 3 root root 4096 Aug  3 16:03 public
-rw-r--r-- 1 root root 2933 Aug  3 16:52 radiant-forms-extension.gemspec
drwxr-xr-x 6 root root 4096 Aug  3 16:52 spec

I'm using a hostgator virtual machine.  Their cpanel thing has a gem
installer, which I used; it said it installed OK, along with the docs, but
it never said Done. so I'm not sure it worked right.  Not sure where its
logs are either.

The cpanel thing said I'd need to add my directory to GEM_PATH.
I tried adding
   ENV['GEM_PATH'] = '/home/lindsay/ruby/gems:/usr/lib/ruby/gems/1.8'
to config/environment.rb,
but that didn't work, and it was unclear which directory the gems were
coming from, so I took that line out.  Now at least I know its using the one
in /usr/lib/ruby.

So what do you think I should do?


On Thu, Aug 5, 2010 at 11:59 AM, Jim Gay j...@saturnflyer.com wrote:

 On Wed, Aug 4, 2010 at 3:32 PM, lmorris99 lmorris...@gmail.com wrote:

 I've been struggling with this for 2 days now.

 I reinstalled radiant (which works fine) and radiant-forms-extensions.
 Then I ran
 rake db:migrate
 rake db:migrate:extensions
 rake radiant:extensions:forms:migrate
  (which complained  Don't know how to build task
 'radiant:extensions:forms:migrate')
 rake radiant:extensions:forms:update
  (which complained Don't know how to build task
 'radiant:extensions:forms:update')

 Stopped and started radiant; still no Forms tab appears.

 I've just tried so many things, googled lots of error log messages,
 geez.  Meta-problem: why the heck doesn't it JUST WORK?
 (Sorry, just have to vent a little.)

 So last resort before giving up.  Any advice please?


 Next time, don't wait 2 days to ask for help.

 Are there any errors in the server log?
 Can you verify that the extension is in vendor/extensions/forms and not
 vendor/extensions/radiant-forms-extension
 And can you verify that it is not an empty directory?



 --
 Jim Gay
 Saturn Flyer LLC
 http://www.saturnflyer.com
 571-403-0338




-- 
Lindsay Morris




-- 
Lindsay Morris