[Radiant] Re: image 404s

2010-12-02 Thread rosslaird
I started to wonder if this was related to the chronicle extension
after I grep'ed for various of the 404-causing files and found
references to these files:

./vendor/extensions/chronicle/app/views/admin/snippets/index.html.haml
./vendor/extensions/chronicle/public/javascripts/admin/chronicle.js
./vendor/extensions/chronicle/public/javascripts/admin/HelpBalloon.js
./vendor/extensions/chronicle/app/helpers/admin/timeline_helper.rb

Then I saw Will's response. So, although I do like the chronicle
extension, is the solution to remove it (at least for now, until it is
updated)? And, if so, I can't find documentation anywhere on how to do
that. (I have removed extensions from redmine by just deleting their
directories, but this is not best practice I'm sure.)


On Dec 2, 12:13 am, William Ross w...@spanner.org wrote:
 On 2 Dec 2010, at 00:25, rosslaird wrote:

  I have just started using Radiant (which is just great, by the way),
  so apologies in advance for what may be a very simple question: the
  server log shows various 404s to image files: button.png and new-
  snippet.png are two examples. My setup is on locahost, for testing, so
  the 404 refers to (for example) this 
  url:http://localhost/images/admin/button.png.

 Both of those are files used by older versions of the admin interface. The 
 most likely explanation is that one of your extensions is not up to date: 
 being contemporary with an older version of radiant it is assuming the 
 presence of files that don't exist any more.

 Radiant's helper methods mean that the author probably didn't need to spell 
 out the image path, but something like this (in your radiant instance 
 directory) should show you where it's coming from:

         grep -r 'new-snippet' .

 I don't get any matches from a normal radiant site except in old log files.

 best,

 will

  There are quite a few image files in /images/admin, but not
  button.png. On the other hand, there is a new-snippet.png in the
  images/admin directory, but I still get a 404 for that file as well.
  These image files are not ones that I have created, so I'm not sure
  what's going on. I do have some extensions installed (Chronicle, blog,
  mailer, paperclipped, settings) and I don't know if these are a
  factor. I have combed through all the css files I can find, and
  nothing seems to point to these missing files.

  Suggestions?

  Thanks in advance.

  Ross Laird




[Radiant] Re: image 404s

2010-12-02 Thread rosslaird
Oh wait, I found it:

https://github.com/radiant/radiant/wiki/Uninstalling-Extensions

A nice wiki page on how to uninstall extensions. Don't know how I
missed that.

On Dec 2, 6:08 am, rosslaird r...@rosslaird.com wrote:
 I started to wonder if this was related to the chronicle extension
 after I grep'ed for various of the 404-causing files and found
 references to these files:

 ./vendor/extensions/chronicle/app/views/admin/snippets/index.html.haml
 ./vendor/extensions/chronicle/public/javascripts/admin/chronicle.js
 ./vendor/extensions/chronicle/public/javascripts/admin/HelpBalloon.js
 ./vendor/extensions/chronicle/app/helpers/admin/timeline_helper.rb

 Then I saw Will's response. So, although I do like the chronicle
 extension, is the solution to remove it (at least for now, until it is
 updated)? And, if so, I can't find documentation anywhere on how to do
 that. (I have removed extensions from redmine by just deleting their
 directories, but this is not best practice I'm sure.)

 On Dec 2, 12:13 am, William Ross w...@spanner.org wrote:

  On 2 Dec 2010, at 00:25, rosslaird wrote:

   I have just started using Radiant (which is just great, by the way),
   so apologies in advance for what may be a very simple question: the
   server log shows various 404s to image files: button.png and new-
   snippet.png are two examples. My setup is on locahost, for testing, so
   the 404 refers to (for example) this 
   url:http://localhost/images/admin/button.png.

  Both of those are files used by older versions of the admin interface. The 
  most likely explanation is that one of your extensions is not up to date: 
  being contemporary with an older version of radiant it is assuming the 
  presence of files that don't exist any more.

  Radiant's helper methods mean that the author probably didn't need to spell 
  out the image path, but something like this (in your radiant instance 
  directory) should show you where it's coming from:

          grep -r 'new-snippet' .

  I don't get any matches from a normal radiant site except in old log files.

  best,

  will

   There are quite a few image files in /images/admin, but not
   button.png. On the other hand, there is a new-snippet.png in the
   images/admin directory, but I still get a 404 for that file as well.
   These image files are not ones that I have created, so I'm not sure
   what's going on. I do have some extensions installed (Chronicle, blog,
   mailer, paperclipped, settings) and I don't know if these are a
   factor. I have combed through all the css files I can find, and
   nothing seems to point to these missing files.

   Suggestions?

   Thanks in advance.

   Ross Laird




[Radiant] editing page ui's

2010-12-02 Thread bradley.t.her...@gmail.com
I followed a tutorial at 
http://blazingcloud.net/2009/11/22/radiant-cms-custom-user-permissions/
to help me figure out how to modify the admin UI through an extensions
like so:

admin.page.index.add :node,
'remove_column_subject_to_permissions', :after = add_child_column

Now I'd like to use this technique to alter a few other areas and
can't figure out how to do this.  First, I'd like to remove the option
to update the page status when creating/editing a page.  Secondly, I'd
like to add a new field to the taggable extension.  How would I go
about doing this?  I tried tags.new.add :node but I get errors every
time.

Any help would be GREATLY appreciated.  Thanks!


[Radiant] [ANN] PageFactory 2.0

2010-12-02 Thread Joshua Danger French
If anyone wants to jump on the bleeding edge, I think the next generation of 
PageFactory is ready for public use. It works pretty much like PageFactory 1, 
but drops the PageFactory::Base class. Instead, all part management is done 
directly on your Page subclasses:

class EmployeePage  Page
part first name
part last name
part department
end

PageFactory 2 also adds management of Page Fields.

Everything is on the 2.0 branch, so you'll have to install the extension and 
manually check out the new branch. It will probably remain as a vendored 
extension until we see another release of Radiant.

As always, comments, questions, and bug reports welcomed and appreciated.

j

Re: [Radiant] [ANN] PageFactory 2.0

2010-12-02 Thread Jim Gay
On Thu, Dec 2, 2010 at 12:08 PM, Joshua Danger French
j...@vitamin-j.com wrote:
 If anyone wants to jump on the bleeding edge, I think the next generation of 
 PageFactory is ready for public use. It works pretty much like PageFactory 1, 
 but drops the PageFactory::Base class. Instead, all part management is done 
 directly on your Page subclasses:

    class EmployeePage  Page
        part first name
        part last name
        part department
    end

 PageFactory 2 also adds management of Page Fields.

 Everything is on the 2.0 branch, so you'll have to install the extension and 
 manually check out the new branch. It will probably remain as a vendored 
 extension until we see another release of Radiant.

 As always, comments, questions, and bug reports welcomed and appreciated.

 j

This idea was too good not to include in the main project.

On edge, Radiant will call new_with_defaults when creating a new page:
https://github.com/radiant/radiant/blob/master/app/controllers/admin/pages_controller.rb#L21

That allows your Page subclasses to initialize their parts and fields.

The core doesn't, however, have things like descriptions for parts or
rake tasks to sync things up.

Does that simplify PageFactory in any way? (I haven't tried it in a while)


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


[Radiant] readme extension?

2010-12-02 Thread Joel Oliveira
Hey everyone -

Does anyone know if something similar to a readme extension exists out
there in the wild?  I'm thinking something along the lines of site-specific
documentation available through a top-level tab.

Would be a great little tool to help some clients along in how to use
Radiant, links, instructions, embedded screencasts, etc.

If it doesn't exist, then I guess I'll give it a go.

Thanks!

- Joel


Re: [Radiant] readme extension?

2010-12-02 Thread Jim Gay
http://ext.radiantcms.org/extensions/5-help

Needs some updates still and I've wanted to add the ability to read
from a site-specific HELP file

Patches are welcome, of course donations kick me into gear too :-)
http://pledgie.com/campaigns/3373

On Thu, Dec 2, 2010 at 3:51 PM, Joel Oliveira joel.olive...@gmail.com wrote:
 Hey everyone -
 Does anyone know if something similar to a readme extension exists out
 there in the wild?  I'm thinking something along the lines of site-specific
 documentation available through a top-level tab.
 Would be a great little tool to help some clients along in how to use
 Radiant, links, instructions, embedded screencasts, etc.
 If it doesn't exist, then I guess I'll give it a go.
 Thanks!
 - Joel



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


[Radiant] tagging extension w/ autocomplete

2010-12-02 Thread bradley.t.her...@gmail.com
Working on updating spanners taggable extension with auto-complete.
It's got basic functionality now but needs updated to accept and auto-
complete multiple tags.  If anyone wants to use it or help out it's
here https://github.com/bradherman/taggable