[Radiant] Re: [Radiant-Dev] Need help in creating a tag

2008-12-17 Thread Anton J Aylward
rizwana banu said the following on 12/17/2008 05:52 AM:
 Hello,
Hope you all are doing well. 

OUCH!
Please don't begin like that.  It triggers too many spam filters.


In my application i need to create a tag for displaying the
 footnotes in an article. 

Please see the footnote mechanism in Textile.
Out of the box it doesn't have the 'return' mechanism you mention, but
that's easy enough to add by over-riding a couple of functions.
I'm not a programmer, but I can and have done similar minor hacks to
RedCloth to do 'tune-ups'.

See also http://www.jbrains.ca/category/rails
 http://wids.net/lab/bluestole.en.html

I don't know what the situation is with RedCloth-4.1.1 and since I have
the problems described in previous postings here I haven't been able to
try it.

If anyone knows how to install RedCloth-4.1.1 as a plug-in rather than
an extension that calls a GEM I'd be very appreciative.

--
History knows no resting places and no plateaus.
Henry Kissinger


-- 
People who make no mistakes do not usually make anything.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant for Bloging - Admin::PagesController is the root problem

2008-12-16 Thread Anton J Aylward
Joe Van Dyk said the following on 12/16/2008 05:40 PM:
 On Mon, Dec 15, 2008 at 9:38 AM, Sean Cribbs seancri...@gmail.com wrote:
 All of the extensions in the 'radiant' user on GitHub were updated to match
 the latest Radiant edge code.  If you want to use them on 0.6.9 or earlier,
 you'll need to check out an older revision.
 
 Would it be possible to use branches for either the master (edge) or
 for 0.6.9 versions for the extensions?

... and if so, to post instructions for git-klutzes like myself.

-- 
There is no legitimate religion apart from truth.
--John Calvin
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant for Bloging - page_edit_dates

2008-12-15 Thread Anton J Aylward
I've been converting my old Rail-Typo blog to a Radiant Blog.
I realise that software written specifically for blogging will have many
features built in that will have to rely on plugins with a general
purpose CMS.

But I really, really like Radiant.  Perhaps too much.

Some of the conversion went well and I relied on the 'page_edit_dates'
to apply a revisionist policy and make the old articles look like they
were old articles.

Well that used to work, but now it doesn't.

I have pages that I've edited the 'published at' date on successfully.
Since then I've played with other extensions adding and deleting.

Now when I add a page and try setting the 'published at', and saving, I
find its been reset to the original date.

I've tried cache-clearing but don't know what other avenues to try.

Yes, the it used to work but now it doesn't problems are the worst!

-- 
The improvement of our way of life is more important than
the spreading of it. If we make it satisfactory enough,
it will spread automatically. If we do not, no strength
of arms can permanently oppose it.
  - Charles A. Lindbergh
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant for Bloging - Admin::PagesController is the root problem

2008-12-15 Thread Anton J Aylward
Everythig seems to revolve around this:
   Admin::PagesController

$ rake ray:ext  name=reorder
(in /home/.jordana/antonaylward/radiantblog)
Initialized empty Git repository in
/home/antonaylward/radiantblog/vendor/extensions/reorder/.git/
remote: Counting objects: 112, done.
remote: Compressing objects: 100% (72/72),remote:  done.
remote: Total 112 (delta 24), reused 65 (delta 9)
Receiving objects: 100% (112/112), 19.21 KiB, done.
Resolving deltas: 100% (24/24), done.
(in /home/.jordana/antonaylward/radiantblog)
rake aborted!
uninitialized constant Admin::PagesController

(See full trace by running task with --trace)
(in /home/.jordana/antonaylward/radiantblog)
rake aborted!
uninitialized constant Admin::PagesController

(See full trace by running task with --trace)


-- 
A sense of humor is part of the art of leadership, of getting along with
people, of getting things done.
Dwight D. Eisenhower
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant for Bloging - Admin::PagesController is the root problem

2008-12-15 Thread Anton J Aylward
Sean Cribbs said the following on 12/15/2008 12:38 PM:
 All of the extensions in the 'radiant' user on GitHub were updated to 
 match the latest Radiant edge code.  If you want to use them on 0.6.9 or 
 earlier, you'll need to check out an older revision.

Ah.  Right.  That's an important change, yes.

My knowledge of git is very limited.
Rahter than screw up a few times, perhaps you could advise me about
this.  If I choose to update Radiant to edge would that be simpler than
trying to figure out _which_ older revision and mumbling my way through
the git learning curve to get at them?

-- 
I don't mind a parasite, I object to a cut-rate one
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Forcing Rails prioritize local gems on Dreamhost?

2008-12-12 Thread Anton J Aylward
Simon Rönnqvist said the following on 12/12/2008 04:29 AM:
Hi!
 
 It seems like we have different problems. Passenger *does* recognize  
 my gems. I've tried Radiant from a gem and that works. And the error  
 message is different if I haven't included the reference to my own gem  
 directory in envirenment.rb, now it just complains that version 3.0.4  
 got loaded first. I use Dreamhost PS, so that might affect the  
 situation.

Yes, that would!  Completely different.  You have a dedicated VM.
-- 
Education is a better safeguard of liberty than a standing army.
--Edward Everett
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Re: [Radiant-Dev] Re: Radiant 0.7.0 release candidate 1 available

2008-12-10 Thread Anton J Aylward
Sean Cribbs said the following on 12/10/2008 01:22 PM:
 Anton,
 
 Radiant 0.7.x will be ActiveResource compatible, i.e. having a simple 
 XML/JSON REST API.  Any other APIs will need to be supported by 
 extensions.  While the roadmap says 0.7 is the blogging release, we are 
 incrementing the version number without necessarily moving forward the 
 feature set toward those goals.  We feel the internal refactoring 
 represents enough of a significant departure from previous versions to 
 warrant the new number.  This is what I mean when I say we've been 
 slavish to the roadmap in the past - that we need the version numbers to 
 more adequately reflect the amount of progress, not some 
 externally-determined feature set.

That's OK, just asking.

I'm glad that the internals are getting a work-over.  Things can only
grow so much on a certain size of 'skeleton'.  In many ways software is
more like a crustacean than a mammal in having an exoskeleton that can
limit its growth.

The reason I asked was some users are unhappy with the idea of logging
in and editing.   I can't imagine what they expect - telepathy?

-- 
He who stops being better stops being good.
 - Oliver Cromwell
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant for Bloging - related content

2008-12-09 Thread Anton J Aylward
Next up: related content function for blog postings

I get this error


ActionView::TemplateError (undefined local variable or method
`auto_complete_stylesheet' for #ActionView::Base:0x429727b8) on line
 #60 of admin/page/_related_content.rhtml:
57:   '#related_content': RelatedContentSelector
58:   });
59: % end %
60: %= auto_complete_stylesheet %
61: %= sortable_element 'related_content_container' ,
62:   :url = { :action = sort, :id = @page.id },
63:   :handle = 'reorder' ,

I have stylesheet 'related_content.css' under sns.
ZIP

Its also installed by the installer under
public/stylesheets/admin/related_content.css

but not under
public/stylesheets/

Is this poor design - hard-coding the location of the stylesheet so sns
can't use it, or something else?

Anyway, I tried moving it into that location, which elimiates the error,
but still not working.  I also moved the javascript to the file system
location and put refernces to both in the head of the template.

ZIP.

What else am I mising that isn't mesntioned in the README?

-- 
Information is the currency of democracy.
--Thomas Jefferson
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant for Bloging - related content

2008-12-09 Thread Anton J Aylward
Next up: related content function for blog postings

I get this error


ActionView::TemplateError (undefined local variable or method
`auto_complete_stylesheet' for #ActionView::Base:0x429727b8) on line
 #60 of admin/page/_related_content.rhtml:
57:   '#related_content': RelatedContentSelector
58:   });
59: % end %
60: %= auto_complete_stylesheet %
61: %= sortable_element 'related_content_container' ,
62:   :url = { :action = sort, :id = @page.id },
63:   :handle = 'reorder' ,

I have stylesheet 'related_content.css' under sns.
ZIP

Its also installed by the installer under
public/stylesheets/admin/related_content.css

but not under
public/stylesheets/

Is this poor design - hard-coding the location of the stylesheet so sns
can't use it, or something else?

Anyway, I tried moving it into that location, which elimiates the error,
but still not working.  I also moved the javascript to the file system
location and put references to both in the head of the template.

ZIP.

What else am I missing that isn't mentioned in the README?

-- 
How come wrong numbers are never busy?
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant for Bloging - related content

2008-12-09 Thread Anton J Aylward
Sean Cribbs said the following on 12/09/2008 06:25 PM:
 That is a hold-over from Rails 1.x days.  The autocomplete stylesheet is 
 really simple (see: http://pastie.org/335402).  Removing that dependency 
 would be nice (PDI).

OK, so what should I do?
  Remove the line %= auto_complete_stylesheet %
  Include the stylesheet as per your example.

??


-- 
The older you get, the better you realize you were.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant for Bloging - Tag Cloud

2008-12-08 Thread Anton J Aylward
Has anyone used the tag-extension to produce a read tag 'cloud' ?
The kind typically seen on blogs ... the mass of words, some bigger than
others.

The 'r:tag_cloud /' and r:tag_cloud_list / both seem to produce
lists.  The former with text saying so-many pages tagged with {tag}
and the latter a simple bullet list of the words followed by the number
of pages with that tag.

There seem to be other r:tag's but the HELP page is brief on them.

-- 
Rather than focus on _things_ and _time-, focus on preserving and
enhancing _relationships_ and accomplishing _results_ - Steven Covey.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant for Bloging - categories

2008-12-08 Thread Anton J Aylward
Is there a way, other than tags, to have Categories in a radiant based
blog?

I've seen the pastie for Sean's blog that uses 'aggregate'.

As far as I can tell, correct me if I'm wrong, it relies on a hierarchy:

  /weblog/
+--- /tech/
+--- /music/
+--- /philosophy/

That would seem to imply that a post can be in one and only one category
at a time.

I'm also not clear how that allows for a general data based archive,
as the example in the pastie only shows as child of each category.
The sidebar example shown is for the 'philosophy' branch.

-- 
Virtually every major technological advance in the history of the human
species-- back to the invention of stone tools and the domestication of
fire-- has been ethically ambiguous.
--Carl Sagan (The Demon-Haunted World)
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant for Bloging - count of monthly archives

2008-12-08 Thread Anton J Aylward
Well, I'm trying to get something that looks like:

# December 2007 (4)
# November 2007 (3)
# October 2007 (8)

But


h3Archives By Month/h3
ul
r:find url=/articles/
r:children:each order=desc
r:header
   lia href=r:date format=/articles/%Y/%m/ /
r:date format=%B %Y //a (r:children:count /)
   /li
/r:header
/r:children:each
/r:find
/ul

doesn't do it. That returns (0)

And  (r:parentr:children:count //r:parent)
returns the total number of children of /articles/
which, considering its inside the r:header, surprises me

What else is there to count children?  (In that context)

-- 
Two key perspectives from Jim Collin's book Good to Great.
1) Being great is a decision and
2) Being good is an enemy of being great
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant for Bloging - link_roll question(s)

2008-12-07 Thread Anton J Aylward
I've installed the link_roll extension and have a couple of questions.

I see in the code that the model expands the tag r:links:each:link / to
  %{a href=#{link.url} title=#{link.description}#{link.title}/a}

In most blogs that would be something like a bullet list in the sidebar.

But when I create a link_roll link in the admin I notice that while the
'title' is a single line, the 'url' and the 'description' are text areas.

If this was a page I can imagine long pieces of text about the link
(which is often a good idea), but not in a sidebar.

And why a text area for the URL?  Why not a scrolling single line field?

Am I missing something here?

So I went back to experiment.  What if I put multiple lines in the 'url'
text area?

Well, what I got was a 500.


Processing LinksController#edit (for 99.225.104.173 at 2008-12-07
04:23:01) [GET]
  Session ID: Ah7CBoMe535266e8ce
  Parameters: {action=edit, id=1, controller=admin/links}
Rendering template within layouts/application

ActionController::MissingTemplate (Missing template
admin/links/edit.html.erb in view path

but when I check ...

$ ls -l vendor/extensions/link_roll/app/views/admin/link*/*
-rw-rw-r--  1 antonaylward pg917164 983 2008-12-05 11:58
vendor/extensions/link_roll/app/views/admin/link/edit.html.erb
-rw-rw-r--  1 antonaylward pg917164 871 2008-12-05 11:58
vendor/extensions/link_roll/app/views/admin/links/index.html.erb
-rw-rw-r--  1 antonaylward pg917164 567 2008-12-05 11:58
vendor/extensions/link_roll/app/views/admin/links/remove.html.erb


Why is there a /link/ and a /links/ ?


-- 
Lead and inspire people. Don't try to manage and manipulate people.
Inventories can be managed but people must be led. ~ Ross Perot
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant for Blogin - Shorthand?

2008-12-06 Thread Anton J Aylward
Another Blog related question.

I'm using KDE/Linux.  The browser, Konqueror, has 'shorthand' or
'abbreviations', such as 'cpan', 'jeeves', 'google', 'ggmovie', 'wp'
(for wikipedia).

It occurs to me that I'm making a lot of references to Amazon in my
blog.  It would be nice to be able to write amazon:9620102 and have
a reference to that isbn or product id.  Even better if it also has my
Associates ID in there as well :-)

There's something like  this on Rory Hansen's site
http://www.roryhansen.ca/category/ruby-on-rails/

:-( Shame I'm not a programmer :-(

The Amazon example is clearly useful.  I can think of a couple of others
that are marginal like YouTube and Twitter and Flickr.   Perhaps  a
'configurable' url-abbreviation-expander is the right idea, like in
Konqueror.
-- 
Atheism is a non-prophet organization.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant for Blogin - Shorthand?

2008-12-06 Thread Anton J Aylward
Not universally available, you need to be an associate, but Amazon
offers this, which is done by javascript:

https://widgets.amazon.com/Amazon-QuickLinker-Widget

Add Quick Linker Widget

After you install this widget to your blog or Web Page, you can quickly
and easily link to relevant Amazon.com products as you write your blog
posts or update your page content by including custom HTML tags as you
type. Your Quick Links will have your Associates ID automatically
included. Learn more

* a type=amzn Harry Potter/a
  o Links to Amazon.com search results page for Harry Potter.
* a type=amzn search=Harry PotterMy favorite hero/a
  o The link reads My favorite hero and points to a search
results page for the phraseHarry Potter.
* a type=amzn search=Harry Potter category=booksMy favorite
hero/a
  o Links to a search results page for the phrase Harry
Potter, but only in the Books category.
  o View a list of valid Amazon.com category attributes
* a type=amzn asin=B12345I love this item/a
  o The link reads I love this item and links directly to the
specific Amazon product with Amazon id (ASIN) B12345



For some reason the code I used with my associate account at amazon.com
doesn't work, but the code with the account at amazon.ca does.  Sadly
many items aren't available in Canada and many people need to use the
USA site.

Adam van den Hoven said the following on 12/06/2008 05:20 PM:
 If you wrote a simple parameterized snippet (you'd need that extension  
 too), you could easily set things up so that you have:
 
 r:snippet name=amazon id=123456789 Some Cool book /r:snippet
 
 its not exactly what you want but it would be  80% of the way there!
 
 
 
 
 On 6-Dec-08, at 12:53 PM, Anton J Aylward wrote:
 
 Another Blog related question.

 I'm using KDE/Linux.  The browser, Konqueror, has 'shorthand' or
 'abbreviations', such as 'cpan', 'jeeves', 'google', 'ggmovie', 'wp'
 (for wikipedia).

 It occurs to me that I'm making a lot of references to Amazon in my
 blog.  It would be nice to be able to write amazon:9620102 and  
 have
 a reference to that isbn or product id.  Even better if it also has my
 Associates ID in there as well :-)

 There's something like  this on Rory Hansen's site
 http://www.roryhansen.ca/category/ruby-on-rails/

 :-( Shame I'm not a programmer :-(

 The Amazon example is clearly useful.  I can think of a couple of  
 others
 that are marginal like YouTube and Twitter and Flickr.   Perhaps  a
 'configurable' url-abbreviation-expander is the right idea, like in
 Konqueror.

-- 
Security should be as intuitive as possible.  -- Bruce Schneier
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Freezing Gems?

2008-12-03 Thread Anton J Aylward
Erik Ostrom said the following on 12/03/2008 02:35 AM:
 Hm.  Since there isn't a clear standard for freezing gems, sometimes
 they need some coaxing.  I'd try running it either (a) on a machine you
 have more control over or (b) on Mongrel, to try to get some more
 diagnostic logging.
 
 ... Okay, I've just tried freezing RedCloth 4.1.1 into my Radiant app at
 home.  I got a Phusion error about a missing RubyGem echoe, installed
 and froze that, and now my app works.  So if you didn't get echoe
 already, you could try that.  Otherwise I don't know.

Dreamhost is a hosted site, so the machine you have more control over
isn't a fair test.  I can't cotnrol the Passenger configuration and I'm
stuck using the local GEM_HOME in ~/.gems

I can't install gems in /usr/lib/ruby since this is a hosted service and
 when I point out that all I'm working with uses gems from the standard
Ruby Gems repository Dreamhost support tell me its custom software and
unsupported and when I point out that many of their gems are out of
date they tell me they can't update until all the new ones have been tested.

Apart from this incident Dreamhost have always been very supportive but
 this 'denial' and 'blame the user' is getting me very frustrated.

-- 
It is impossible for a man to begin to learn what he thinks he knows.
   -- Epictetus
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] DB Indexes

2008-12-03 Thread Anton J Aylward
Sean Cribbs said the following on 12/03/2008 09:46 AM:
 I've applied Yevgeny's indexes (without the uniqueness constraints - 
 YAGNI) and here's some circumstantial (i.e. not rigorous) results from 
 running the spec suite:


  BEFORE 
...
 ---
 real 137.84
 user 58.80
 sys 9.15
 
  AFTER  [speedup]

...

 ---
 real 87.59
 user 60.00
 sys 8.78
 
 [...] -- note that the user and
 sys didn't change much.  Thanks, Yevgeny!

I've applied the indexes to a number of hosted sites and the user
response is that they feel a lot more snappier.

I suspect some of the extensions would benefit from indexes on the
fields they add, but that's another and more specialized matter.

I also suspect that matters such as the database type used (Sqlite,
MySQL, ...), the type of table (MyISAM, InnoDB ... see
http://www.unixcities.com/mysql/manual_table_types.html) will also
affect the efficacy of indexes.

As with so many things in the modern world, there are going to be a lot
of ifs and but and and as I keep saying ...

Context is Everything

But yes, these are, in retrospect, so obvious.
Can we merge them into the core?

-- 
Sometimes I lie awake at night, and I ask, Where have I gone wrong?
Then a voice says to me, This is going to take more than one night.
Charles M. Schulz, Charlie Brown in Peanuts
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Re: Creating new pages

2008-12-02 Thread Anton J Aylward
Gap said the following on 12/02/2008 07:52 AM:
 
 My experience is that I've never gotten this error.  The slug and
 breadcrumb is autoautomatically create from the title.

Indeed, but its when creating _NEW_ pages.

I keep running into a slightly different problem.
I'm using the page_event extension (minor problems with it but that's
another matter) and many of the events are presentations that occur
monthly.  All that changes is the date, speaker and subject.

So I 'clone' (aka 'copy') the previous month's page, change the title
and little bit of the content.  The r:events:date / in there takes
care of the date :-)

But on the copy the slug only gets a -2  added and the breadcrumb
doesn't change.  They don't change when the title is changed.

I'd like to have them change.   Really.

I'm sure a case could be made for changing them when the title is changed.
-- 
There is no legitimate religion apart from truth.
--John Calvin
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Freezing Gems?

2008-12-02 Thread Anton J Aylward
I'm having a lot of problems with Passenger at Dreamhost.
This is shared hosting.

It seems that passenger ignores GEM_PATH in the environment and despite
Dreahost's suggestion at http://wiki.dreamhost.com/Passenger of putting
the path to the local repository in config/environment.rb the GEM_PATH
is still not honoured.

As a result, my gems there such as RedCloth4 cant be accessed.

I see that other things that presumably were gems at one time are in
place under /vendor/ -- bluecloth, redcloth, rubypants ..

Is it possible to 'freeze' gems like RedCloth4 there too?

-- 
You may delegate authority, but not responsibility.
Frank's Management Rule #1.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] DB Indexes

2008-12-01 Thread Anton J Aylward
Yevgeny Smirnov said the following on 12/01/2008 04:25 PM:
 I think, it's good to create the following DB indexes:
 
 add_index pages, [class_name]
 add_index pages, [parent_id]
 add_index pages, [slug, parent_id], :unique = true
 add_index pages, [virtual, status_id]
 
 add_index page_parts, [page_id, name], :unique = true

Yes, that DOES make a difference in performance!

My designs tend to make a lot of use of page-parts (and inheritance)
(_parts_) of the sidebar, sections of a page with go to top or
indexes.  So the page_part and parent_id bits are very effective.
(I never did figure out the 'virtual' stuff).


I suppose another set of indexes would be to the order by' for the
r:children:each

Thanks!

-- 
You will do me the justice to remember that I have always supported the
right of every man to his opinion, however different that opinion might
be to mine. He who denies to another this right makes a slave of himself
to present opinion because he precludes himself the right of changing
it. The most formidable weapon against errors of every kind is reason. I
have never used any other, and I trust I never shall.
--Thomas Paine (The Age of Reason)
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Dreamhost says Passenger ignores ENV

2008-11-26 Thread Anton J Aylward
I've been trying to get Jason Garber's RedClot4 extension to work on my
Dreamhost account.

Dreamhost support tell me that Passenger ignores environment variables.

IS THIS REALLY SO ?

OK, so having GEM_PATH set in my .bash_profile would be ignored, then
and so all the stuff about local gems would be pointless.

So what I did instead was put the ENV settings in config/environment.rb
This makes them inside and not imported from the environment.

That didn't work either.  Dreamhost support told me

That still doesn't work, unfortunately, ANY environment
variables do not work within passenger. It's not possible
to get custom environment settings within passenger working.

This does not make sense to me.  This isn't within Passenger, this
should be the ruby code itself.

I'm now at a complete loss.  Dreamhost suggest using fcgi instead of
Passenger.


Can anyone confirm this shortcoming of Passenger?
Can anyone account for why ?

I find it hard to beleive that Passenger ignores all of ENV.

This
http://craigjolicoeur.com/blog/2008/11/set-rails_env-for-phusion-passenger-on-dreamhost/
seems to imply that settings in config/environment.rb work.

I also note that Dreamhost's own documentation at
http://wiki.dreamhost.com/Passenger
seems to contradict what support tells me:

  A couple of technical notes

...

* You can use your local gem repository if you set

ENV['GEM_PATH'] = 'path-to-your-gem-repository'

in the config/environment.rb file. The same path should be set
in shell's environment variables GEM_HOME and GEM_PATH so you
can use the gem program to install/upgrade your own gems. You   
can reload the config file by typing touch tmp/restart.txt in
your base directory.


Refs:?
http://groups.google.com/group/phusion-passenger/browse_thread/thread/79474d37028f2a03
http://groups.google.com/group/phusion-passenger/browse_thread/thread/8fe8222e5f9eeef1


-- 
shin (n): A device for finding furniture in the dark.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] [ANN] Styles 'n Scripts v0.7

2008-11-24 Thread Anton J Aylward
Chris Parrish said the following on 11/24/2008 12:47 AM:
 Time for a new release.  This is mostly bugfixes and a minor addition or 
 two to work with other extension:

Hint, please, as to the ways we might update depending on the way we
installed.


-- 
The Air Force is reacting to the EPA ban on CFC's by replacing them in
the cooling systems of the ICBMs.  If they are ever fired, it will be an
environmentally friendly nuclear holocaust, not threatening the Ozone
layer.  -- _Access to Energy_, July 1993
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] [ANN] Styles 'n Scripts v0.7

2008-11-24 Thread Anton J Aylward
Chris Parrish said the following on 11/24/2008 12:29 PM:
 Updating
 
 updating SnS is the same as every other extension, run:
 
 rake [your_env] radiant:extensions:sns:install


OH WOW!  All the git/svn stuff encoded in a rake file!
Why has no-one ever done that before?
Please can we have this done recursively from the root!
Please!

-- 
A lot of managers talk about 'thinking out of the box,' but they don't
understand the communication process by which that happens.  You do not
think out of the box by commanding the box! You think out of the box
precisely by bringing ideas together that don't allow dominant ideas to
continue to dominate.
   - Stan Deetz
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Can Radiant be really easy to use for non-technical content editors?

2008-11-20 Thread Anton J Aylward
Jason Garber said the following on 11/20/2008 08:50 AM:
 [...]
 
 [ANN] radiant-textile_editor-extension makes Radiant really easy to  
 use for non-technical content editors!
 
 [...]
 
 If you're using Textile, make sure you're using version = 4.0.  A  
 lot of the hate on RedCloth was rooted in how buggy it was for a few  
 years.  You'll need the redcloth4 extension to make it work in  
 Radiant 0.9.6.
 
 Jason

I'll ignore your comments about people my age since I'm battling trying
to get openSUSE to recognise  work with Passenger (thought this isn't
reason to give up and go back to Mandriva) and simply ask you to supply
details on all of the above, references to github (etc)

Some of the younger people at associations  clubs whose sites I have
put up on hosting services seem daunted by the idea of editing in a CMS,
whereas the old timers just see it as another web interface, no
different from gmail or whatever.  YMMV.  The older people also seem
better at coming up with relevant (aka non-gossipy) content and their
grammar is better :-)

But lowering the threshold of access is always a good thing!



-- 
Results! Why, man, I have gotten a lot of results. I know several
thousand things that won't work.
Thomas A. Edison
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Can Radiant be really easy to use for non-technical content editors?

2008-11-20 Thread Anton J Aylward
Jason Garber said the following on 11/20/2008 10:38 AM:
 Anton,
 I wasn't sure what you meant about people your age, so I looked back at
 what I sent.  I added 50-ish to quantify a lot, not to describe the
 age of the technically-challenged users.  Sorry for the
 misunderstanding! 

Life's like that! :-)

-- 
My definition of a free society is a society where it is safe to be
unpopular.
Adlai E. Stevenson Jr., Speech in Detroit, 7 Oct. 1952
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Can Radiant be really easy to use for non-technical content editors?

2008-11-20 Thread Anton J Aylward
Simon Rönnqvist said the following on 11/20/2008 02:48 PM:
 OK, sounds like you did a pretty thorough comparison of the two.  
 Personally I just picked Markdown cause it seemed easier to teach my  
 clients doing ## than h2. And also a few other things seemed more  
 simple to learn, and all of the tags that I needed to get done were  
 doable using Markdown, even definition lists using Markdown Extra 
 http://michelf.com/projects/php-markdown/extra/ 
   ...however that was using Drupal (which has Markdown Extra).

I came to all this from the world of Wikis - TWiki MoinMoin and others.
Completely different markup and facilities.  And lots of entrenchment
and 'mark-up wars'.

I'm comfortable with either but seem to use Textile for composition and
Markdown for posting in from e-mail.  If you think about it, non-html
type email ends up suing things like underlining for 'titles' ad starts
or hashes lists and simple * and _.  Or, and  for quotes.
So posting email in is a natural.

That's when I'm not doing pretty involved stuff in raw html!
-- 
Ignorance is never out of style. It was in fashion yesterday, it is the
rage today, and it will set the pace tomorrow.
   -- Franklin K.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Passenger on openSUSE

2008-11-19 Thread Anton J Aylward
I've recently given up on Mandriva and moved to opehSUSE and on the
whole don't regret it.  However I now have some problems wit virtual
hosts and passenger.

I used to have a demo of Radiant on my laptop.  Entry in the hosts file
for 'radiantdemo.tld' == 127.0.0.1, and a few other virtual hosts like
that.
Moving my old virtual hosts files to the openSUSE apache2 config
directory has proven unsuccessful and confusing.

Attempting to install passenger is further confusing, I get an error
from apache2 on start-up saying it can't find the 'ruby' module.

I anyone on this forum using openSUSE + passenger ?
Any pointers?

-- 
Over the last few centuries, mathematicians have demonstrated
a remarkable tendency to underestimate the cryptanalytic powers
of blunt and heavy objects.
  -- Jamie Reid, CISSP
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Can Radiant be really easy to use for non-technical content editors?

2008-11-18 Thread Anton J Aylward
Steven Southard said the following on 11/18/2008 01:33 PM:
 I think maybe you just need to take another approach with her.  Seems  
 sometimes web development is more psychology then programming.  Does  
 she just put her hand over her ears when you say Markdown or Textile?   
 I've had a client like that!  She just wants to make headers,  
 paragraphs, and upload pictures right?  Keep working with her, tell  
 here to take a few breaths, and keeping reminding her that the filters  
 are there to keep the technical stuff out of her way.
 
 My clients don't seem to mess with the snippets, tags, or css classes  
 that much.  They just use the filters and maybe one tag and some  
 classes that they copy and past from where ever else it was used on  
 the site.  It takes a bit for them to get the hang of it but if they  
 can see the simple patterns they'll be able to add their content.

Perhaps if 'snippets' were called something more familiar like 'macros'

Yes, I *know* they aren't, but I'm talking about a psychological comfort
zone.
-- 
Engineers like to solve problems. If there are no problems handily
available, they will create their own problems. Normal people don't
understand this concept; they believe that if it ain't broke, don't fix
it.  Engineers believe that if ain't broke, it doesn't have enough
features yet. - S.  Adams
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Can Radiant be really easy to use for non-technical content editors?

2008-11-18 Thread Anton J Aylward
Adam van den Hoven said the following on 11/18/2008 01:42 PM:
 You just hit on an interesting idea for an extension.
 
 Frequently, people are going to reuse the same bits over and over.  
 Instead of making them go find it, what if we put a scratchpad on  
 the right hand side of the parts (which will consume some space from  
 the parts but that should be OK the visibility is important). 

That's interesting.
One piece of software I use ha a number of vertical panels that can be
tuned on and off.  If you use Linux+KDE think of Konqueror+F9.
Now imagine things can be dragged from those panels...

We already have the things that go in the panel, which is primarily the
snippets and the tags.  Oh, and images.  Paperclipped has some kind of
'bucket', doesn't it, that appears anyway.

-- 
Everybody comes to Rick's
  - Casablanca
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Problemwith javascript in Textile

2008-11-17 Thread Anton J Aylward
I have a problem using the 'enkode' extension in a page that uses textile.

Actually its in a table in a page that uses textile, so I can't use
a space at the beginning of the line or the 'notextile.' directive.

I'm happy that enkode works, I've tried it in the raw, no filters, and
it does what its supposed to.

|  r:enkode_mailto email=[EMAIL PROTECTED] link_text=Information
title_text=Ask a question email subject=I have a question  /  |
Other questions  |

I've tried this with pre and precode around it.

I can get the whole table messed up or I can get the javascript
displayed.  What I can't get is the javascript executing.

I'd be happy to consider alternative ways of hiding the addresses and
mail-to.

-- 
What we have learned from others becomes our own by reflection.
   -- Ralph Waldo Emerson
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Radiant Template Contest Extended

2008-11-14 Thread Anton J Aylward
Jay Levitt said the following on 11/14/2008 06:19 PM:
 Sean Cribbs wrote:
 I have decided to extend the Template Contest deadline to January 1, 
 2009.  Sadly, we received no entries by the October 31 deadline.  
 
 [...]
 
 So I could contribute that. BUT: It won't be a full template, in the sense 
 that there's no art, and not much graphic design; it's really an 
 infrastructure thing, not a ready-to-use template.  It should make it easier 
 for someone to create a nicely-done theme, though.  (In fact, I was thinking 
 that if I released it, it should have some godawful hideous colors to force 
 users to change them...)

Are we actually artists?  I'm not.

I've taken one of Andreas Viklund's 'free' designs, isolated areas,
factored out snippets, dug out a logo from years ago, stuff and stuff an
stuff...

The trouble is that a lot of the snippets are being made obsolete as new
stuff gets written (like 'siblings' and other ways of doing navigation).
Assets or paperclips?

But the result isn't something I think could be submitted as its too
geared towards the one site, too may things like the logo and navigation
not 'generalized'.

But it does raise another question.  There are some good basic templates
out there.   Andreas Viklund also has some excellent models of two and
three panel layouts with various arrangements.  Perhaps we should look
to packaging those - with permission and acknowledgement of course.

-- 
My definition of a free society is a society where it is safe to be
unpopular.
Adlai E. Stevenson Jr., Speech in Detroit, 7 Oct. 1952
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] So how did things go this weekend?

2008-10-28 Thread Anton J Aylward
Sean Cribbs said the following on 10/28/2008 12:53 AM:
 [...].  Many bugs were squashed and edge cases discovered
 thanks to them, including an esoteric bug involving an extension that 
 only gets loaded in test mode.  We'll be reducing the number of 
 controller unit/functional specs and relying more on integration specs 
 going forward.

And can I just wave a magic GIT commadn and update my installation?

-- 
This isn't life in the fast lane, it's life in the oncoming traffic.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant