Re: [Radiant] radiant edge on dreamhost

2010-04-27 Thread Anton Aylward
Si Forster said the following on 04/27/2010 11:06 AM:
 Okay so a bit further along now.
 
 Currently I need to specifiy RAILS_ENV=production in the command line
 after and db based changes such as rake radiant:extensions:xxx:update or
 db:migrate.
 
 Any idea why this might be the case? 

You're using Passenger, right?
Passenger seems ignore the ENV and RAILS_ENV and always run as
production.   I believe this is documented and I recall it being
mentioned here when I encountered that last year :-)

Of course access though Passenger is only for web-based access.
For command line you have to specify it explicitly, as you point out.

 I've got ENV['RAILS_ENV'] =
 'production' specificed in my environments file but this doesn't seem to
 make a difference.

I observed this too and I don't know why it is.
Maybe its in the libraries they use ...

Try compiling your own version of RAKE.

 Hopefully my findings will help others using dreamhost.

BTDT.

-- 
The maxim that people should not have a right till they are ready to
exercise it properly, is worthy of the fool in the old story who
resolved not to go into the water till he had learned to swim.
--Macaulay
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Radiant Mailer Extension with TLS and gmail

2010-04-15 Thread Anton Aylward
Gabe Koss said the following on 04/15/2010 09:50 AM:
 hmm, still having no success. Its very confusing because I had it 
 working both from heroku and localhost without tls (ie without gmail) 
 but I need gmail for the client. Anyway in my logs it doesn't say mail 
 sent at all and its clearly not interfacing with gmail on any level. It 
 also isn't correctly redirecting.

As I posted some weeks ago, the 'traditional' set up is too awkward,
difficult to follow and as you are showing, very fragile.

If the host supporting your web site has mail capability at all, try
this instead of the awkward set-up you have been using and playing with.
It avoids all that TLS stuff.

In config/environment.rb put:

  ActionMailer::Base.delivery_method = :sendmail

Since you are inside the host, sendmail shouln't have to worry about
more than half of the set-up.  Yes, you'll still need your domain, you
might still need password, but you're making the local mail sub-system
do the work that you ere previously having to be very specific about.

I battled with the mailer extension for a week and was very frustrated,
but the moment I put that line in and restarted everything worked great!



-- 
inoculatte (v): To take coffee intravenously when you are running late.
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Radiant Mailer Extension with TLS and gmail

2010-04-15 Thread Anton Aylward
Gabe Koss said the following on 04/15/2010 10:28 AM:
 Thanks for the help I tried this addition without any success. I am 
 using heroku to host. Now when I view the contact page on localhost it 
 looks fine but still doesn't work and if I push to heroku and load the 
 same page it says *undefined tag `mailer'

I'm sure many of us faced the 'gap' between things working lcoally (mine
was my laptop) and out hosting site.  The ':sendmail' change is what
made it work for me at the hosting site :-)

However if you are getting that error then you either have a typo
somewhere or the extension (or a gem) isn't loaded (or loading
properly).  This moves the problem to one of 'pouring though the logs'.




-- 
The same applies for other kinds of long-lasting low-level pain. [...]
The body's response to being jabbed, pierced, and cut is to produce
endorphins. [...]  So here's my programme for breaking that cycle of
dependency on Windows: get left arm tattooed with dragon motif, buy a
crate of Jamaican Hot! Pepper Sauce, get nipples pierced.  With any
luck that will produce enough endorphins to make Windows completely
redundant, and I can then upgrade to Linux and get on with things.
-- Pieter Hintjens
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Radiant Mailer Extension with TLS and gmail

2010-04-15 Thread Anton Aylward
Gabe Koss said the following on 04/15/2010 11:07 AM:
 Thanks for all the help and patience!
 
 I am almost there. Now it seems to be sending the emails except they 
 aren't going anywhere. I am succesfully connnecting to the gmail smtp 
 but get a message stating: 504 5.7.4 Unrecognized Authentication Type. 

That, VERY SPECIFICALLY is why I use the :sendmail option !

I floundered with the authorization problem for nearly a week, inclduing
setting up new mail accounts at my hosting service!

 My auth type is set to :plain  in environmen.rb. At the end of the 
 action it claims to have sent my mail but I am still not receiving the 
 sent mail nor am I being redirected...
 
 The text of my mailer part reads:
 
 subject: Sent from your mailer form
 from_field: email
 redirect_to: /about/contact/thanks
 recipients:
   - gabe.k...@gmail.com
   - t...@gabekoss.com

That's nice but its not your problem.
Your problem is injecting your message into the host mail system.
That you are getting a 504 means you are using :smtp

So, why is :sendmail a problem for you?

Are you really addressing your local machine with this?
If the applciaiton and config/environment.rb are on MACHINE-A and the
reference you have in the mailer setup in
ActionMailer::Base.smtp_settings is MACHINE-B then this could cause
the problem.

You might *THINK* you are addressing the same machine but does the
machines resolver think so?

That is why using :sendmail is so much easier.

Check that sendmail is at /usr/sbin/sendmail and try sending by cat'ing
a file with appropriate headers though it.

ActionMailer::Base.delivery_method = :sendmail
ActionMailer::Base.perform_deliveries = true


If its not at /usr/sbin/sendmail you need to override the base settings,
which are

ActionMailer::Base.sendmail_settings = {
  :location   = '/usr/sbin/sendmail',
  :arguments  = '-i -t'
}

Try the command
which sendmail
to find it.
It may also be somewhere like /usr/lib/sendmail:-)



-- 
Better be despised for too anxious apprehensions, than ruined by too
confident security. --  Edmund Burke
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Radiant Mailer Extension with TLS and gmail

2010-04-15 Thread Anton Aylward
Gabe Koss said the following on 04/15/2010 11:58 AM:
 Perhaps it is because I am using Ubuntu and not a mac? I don't have 
 sendmail in /usr/sbin/ or /usr/lib/ and I don't think that it would work 
 from heroku...

Are you talking about your own machine or the machine where this
application is hosted?

The default mailer for many Linux packages is Postfix, but it has
/usr/sbin/sendmail as a link.

If you are talking about your own machine running Ubuntu then install
the postfix package and/or check the man page.

If you are talking about the hosting machine then why not ask them?
Its possible they didn't set yup that link or set it up elsewhere.

The issue isn't heroku: the issue is can ruby address services on the
host machine.  Or more specifically, can the code in ActionMailer
address services on the host machine.


OBTW: what did your logs say when you tried using :sendmail?


There is a simple test you can try.
From the command line enter

   echo Hello | mail -s Test gabe.k...@gmail.com

If that doens't work then all we're talking about is beside the point.



-- 
I don't know the key to success, but the key to failure is trying to
please everybody
  -- Bill Cosby
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Radiant Mailer Extesion Error

2010-03-29 Thread Anton Aylward
banane said the following on 03/28/2010 10:45 PM:

 Anton
 
 When you say it's sending successfully, how do you know that? 

I didn't say that, did I?
If it was sending successfully I'd be getting the resulting mail and I
don't.

What it is doing is taking time processing and the production log has an
entry (sanitized)

Processing MailController#create (for 099.27.68.19 at 2010-03-28
16:31:39) [POST]
  Parameters: {page_id=112, action=create,
mailer={message=x\r\n1\r\n2\r\n3\r\n4\r\n5,
company=SSS, name=aaa, website=xyzzy=2,
required={name=true, message=true, email=true},
email=anton.aylw...@rogers.com}, controller=mail}
Sent mail to  anton.aylw...@rogers.com
Completed in 1407ms (View: 1, DB: 118) | 200 OK
[http://www.X.com/pages/112/mail]



 In the post I wrote re: my process of setting up Mailer,
 (databasemailer, btw) I have this bit from my log:
 
 - AUTH PLAIN AGJhbmFuZQBraXdpa2l3aQ==\r\n
 - “235 2.7.0 Accepted\r\n”
 - MAIL FROM:\r\n”
 - “250 2.1.0 OK 7sm1568664yxg.68\r\n”
 - RCPT TO:\r\n”
 - “250 2.1.5 OK 7sm1568664yxg.68\r\n”
 - DATA\r\n
 - “354 Go ahead 7sm1568664yxg.68\r\n”
 writing message from String
 wrote 599 bytes
 That is the official it has sent success.

Where did that get logged?

At Dreamhost I don't have (or don't see how) I can 'tap'
such exchanges.





 Another issue- you say it's refreshing the form and not going to the
 contact/thanks page. So that's not processing correctly. Can you
 manually type in the thanks page and view it?

Yes.

As I said, I set this up local on the image I have on my laptop of the
public site at Dreamhost BEFORE export/import of the pages to the site
at Dreamhost.  So the only difference is in the way the mailer is set up
in environment.rb --- oh, and any differences in the revision of the
gems at Dreamhost.  They are not good at keeping those up to date :-(
That has bitten me before.



From what you've said so far- looks like the environment.rb is still
 misconfigured. 

Yea, right.
I've googled for the perl script to encode the id/password I'm using in
environment.rb and then manually 'telnet mail 25'
and given the resulting string as a auth plain and got a postive ACK
back, so I know the id/password is right.



 Check the logs/environment.rb for:
 - actionmailer framework is installed

What do you mean by that?
Do you mean the gem is in the library?

(dreamhost) $ gem list | grep actionmailer
actionmailer (2.3.5, 2.2.2, 2.1.1, 2.1.0)


 - form is being processed- what does the log say re: that process
 - smpt port, etc. is correct

I've given the ONLY log entry that seems to be involved above.



 - auth info works. Check w/ dreamhost re: the auth info. telnet access
 is diff. than mail auth access. 

Eh?  Why do you say that?

 If you ahve another client (apple
 mail, etc.) setup that sends successfully with a configuration,

Yes I have a TWiki application that does it.
That's written in perl and has a config file that sends via 'sendmail'.
So its not the same mechanism.


I would have thought that using sendmail would have made more
sense for a mailer interface than trying to inject into port 25.


 or if
 dreamhost has a help page that tells you how to set it up, use that.


I do wonder.
The smtpd responds to the EHLO with AUTH PLAIN
So does using

  :authentication = :login
or  
  :authentication = :plain

matter?





 
 On Sun, Mar 28, 2010 at 3:40 PM, Anton Aylward anton.aylw...@rogers.com 
 wrote:
 I'm following up to this old mail because I have the same problem and
 that old thread doesn't have a resolution that seems to apply to me.

 I set up the mailer extension on my laptop using my LAN's mail hub and
 it worked fine.  Good, so I went ahead and installed it and then copied
 the page (body, email, mailer) to my public site on Dreamhost, created
 the contact/thanks page there and adjusted the entries in
 config/environment.rb to suit  ..

 and it doesn't work.


 Like this report, after clicking it reloads at /pages/112/mail#form

 And no, it takes it time, so there is some processing going on.

 The log shows no error; it says that the mail as sent to the address(es)
 as expected.

 Only there is no evidence it was; it doesn't get through.
 There's nothing in the logs.

 I've ssh'd to Dreamhost, to the working directory, and from there
 telnet' to to mailserver I have in the configuration, for port 25, an
 yes that's where it is, and being local its not asking for a login.

 I am NOT using gmail.

 I have experimented with the authentication, just in case, and no, that
 makes no difference.

 I've checked the Radiant logs and the site web logs and there's no
 indication of what's going on


 HELP!


 Mauricio Dulce said the following on 12/04/2009 09:45 AM:
 Hello, i have work whit radiant and Mailer extension but this not send
 emails and redirect to page of thank-you, After giving click in email,
 this reloads the same page pages/3/mail#mailer and I have this in the
 log shows

Re: [Radiant] Radiant Mailer Extesion Error

2010-03-29 Thread Anton Aylward
Anton Aylward said the following on 03/29/2010 08:28 AM:

 
 If you ahve another client (apple
 mail, etc.) setup that sends successfully with a configuration,
 
 Yes I have a TWiki application that does it.
 That's written in perl and has a config file that sends via 'sendmail'.
 So its not the same mechanism.
 
 
 I would have thought that using sendmail would have made more
 sense for a mailer interface than trying to inject into port 25.
 

Such as

ActionMailer::Base.delivery_method = :sendmail

Perhaps?
I'll try that:-)

___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Radiant Mailer Extesion Error

2010-03-29 Thread Anton Aylward
Anton Aylward said the following on 03/29/2010 09:00 AM:


 
 I would have thought that using sendmail would have made more
 sense for a mailer interface than trying to inject into port 25.
 
 
 Such as
 
 ActionMailer::Base.delivery_method = :sendmail
 
 Perhaps?
 I'll try that:-)

Well it works, works first time, with no problems, and since all that it
does is pipe though to sendmail, its pretty fast.

I'd recommend this as a much simpler solution that futzing with ports
and passwords!
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


[Radiant] Qesution about formatting with mailer extension?

2010-03-28 Thread Anton Aylward
I see the example of an mailer input form at
http://wiki.github.com/radiant/radiant/mailer-extension

I'm trying to reconcile that with
http://htmlhelp.com/reference/html40/forms/fieldset.html


The example puts the labels on the right, I'm trying to put them on the
left and have the fields align.

The table with actual form fields separates out label and field.
In the mailer extension they are both under the same 

Any ideas?

-- 
I like to believe that people in the long run are going to do more to
promote peace than our governments. Indeed, I think that people want
peace so much that one of these days governments had better get out of
the way and let them have it.
Dwight D. Eisenhower
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Radiant Mailer Extesion Error

2010-03-28 Thread Anton Aylward
I'm following up to this old mail because I have the same problem and
that old thread doesn't have a resolution that seems to apply to me.

I set up the mailer extension on my laptop using my LAN's mail hub and
it worked fine.  Good, so I went ahead and installed it and then copied
the page (body, email, mailer) to my public site on Dreamhost, created
the contact/thanks page there and adjusted the entries in
config/environment.rb to suit  ..

and it doesn't work.


Like this report, after clicking it reloads at /pages/112/mail#form

And no, it takes it time, so there is some processing going on.

The log shows no error; it says that the mail as sent to the address(es)
as expected.

Only there is no evidence it was; it doesn't get through.
There's nothing in the logs.

I've ssh'd to Dreamhost, to the working directory, and from there
telnet' to to mailserver I have in the configuration, for port 25, an
yes that's where it is, and being local its not asking for a login.

I am NOT using gmail.

I have experimented with the authentication, just in case, and no, that
makes no difference.

I've checked the Radiant logs and the site web logs and there's no
indication of what's going on


HELP!


Mauricio Dulce said the following on 12/04/2009 09:45 AM:
 Hello, i have work whit radiant and Mailer extension but this not send  
 emails and redirect to page of thank-you, After giving click in email,  
 this reloads the same page pages/3/mail#mailer and I have this in the  
 log shows no error, this on production servers that have hired.
 
 www.domain.com/contctenos hosted in site5
 
 Processing MailController#create (for ip at 2009-12-03 14:01:19) [POST]
   Parameters: {action=create, page_id=3,  
 mailer={company=xx, required={name=true,  
 subject=true, message=true, email=true},  
 name=, country=, City=Bogotá,  
 subject=test, phone=00, Address=Address,  
 message=test text , email=t...@domain.com},  
 controller=mail}
 Sent mail to t...@gmail.com
 Completed in 268ms (View: 0, DB: 49) | 200 OK [http://domain.com/pages/3/mail 
 ]
 
 
 -
 
 in another company where I have hired a normal plan and not a  
 dedicated server, I will work correctly and they are CENTO, Support  
 tells me to be somewhat lost and not to do, here I put the log of  
 another company where we see that the extension works, I'm using  
 google for sending emails.
 
 
 
 Processing MailController#create (for IP at 2009-12-03 21:02:04) [POST]
   Parameters: {action=create, page_id=3,  
 mailer={company=xx, required={name=true,  
 subject=true, message=true, email=true},  
 name=, country=, City=Bogotá,  
 subject=test, phone=00, Address=Address,  
 message=test text , email=t...@domain.com},  
 controller=mail}
 Sent mail to t...@gmail.com
 Redirected to http://domain2.test.com/contact/thank-you
 Completed in 2580ms (DB: 17) | 302 Found 
 [http://domain2.test.com/pages/3/mail 
 ]
 
 
 Processing SiteController#show_page (for IP at 2009-12-03 21:02:07)  
 [GET]
   Parameters: {url=[contact, thank-you], action=show_page,  
 controller=site}
 Completed in 920ms (DB: 427) | 404 [http://domain2.test.com/contact/thank-you 
 ]
 
 I lost in this problem, you have any suggestion to fix this problem
 
 config of the both server
 
 CENTOS 5.4 x86_64 standard
 Rails 2.3.4
 ruby 1.8.7 (2008-06-20 patchlevel 22) [x86_64-linux]
 Site 5
 X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.4, Enterprise  
 Edition
 Other Server
 X-Powered-By: Phusion Passenger (mod_rails/mod_rack) 2.2.5
 
 
 ___
 Radiant mailing list
 Post:   Radiant@radiantcms.org
 Search: http://radiantcms.org/mailing-list/search/
 Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


-- 
intaxification (n): Euphoria at getting a tax refund, which lasts until
you realize it was your money to start with.
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


[Radiant] How to use the 'description' field

2010-03-24 Thread Anton Aylward
Well this doesn't work:

ul
r:children:each
li r:link/  - r:meta:description /  /li
/r:children:each
/ul

Can you see what I'm trying to do?
Can you tell me what I should be doing instead

-- 
Call 226682779489712859637199678587902423107 for a good prime!

___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Beginner Radiant Questions

2010-03-16 Thread Anton Aylward
Gabe Koss said the following on 03/16/2010 02:17 PM:
 
  
 I need to host multiple domains. [...snip ...]
 
 Sorry for the beginner questions.


I have a complementary question.

I already ave a hosting site with a number of instances or Radiant.
How can I - EASILY - convert them to one 'multiple domain'
implementation and still keep all the separation of snippets, layouts etc.

-- 
recursion (n): See recursion.
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Knowledge Base Extension

2010-03-09 Thread Anton Aylward
Jeff Randall said the following on 03/09/2010 05:28 PM:
 I was hoping that someone knew an extension that I could use to create a
 Knowledge Base for my website.  Something that operates in a list like
 manner, assigned to Categories, and possibly attach files (paperclipped
 maybe).  I looked into Simple Product Manager on github but it looked
 like overkill.  Any suggestions or do I need to build from scratch?

Do you mean something like
http://en.wikipedia.org/wiki/NEPOMUK_%28framework%29

-- 
Vizzini: INCONCEIVABLE!
Inigo: You keep using that word. I do not think it means what you think
it means.
  - The Princess Bride
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Console question on Radiant

2010-02-09 Thread Anton Aylward
banane said the following on 02/09/2010 12:34 PM:

 In pure SQL it would be:
 
 [snip]

BTDT.   Deperately want to avoid going back!

 I'm not well versed enough in Rails to know how to do this, ha! Isn't
 there a sql option in ActiveRecord where you can just push in db-sql
 and not worry about Rails doing the joins?

The whole point was to use the rails _console_ and use the
object-relational mapping.  If I wanted a SQL solution I wouldn't have
asked in a Ruby/Rails/Radiant forum :-)

I like the idea of constructs such as

   Page.find(:all. :conditions .).name
as an extrapolation of
   Page.name

This is Object stuff, which is a lot more natural to an natural
language user than the half-RPN nature of SQL.

SQL is really the assembly code of database programming.
The Rails object relational mapping is the HLL.

If you love programming in assembly code I'm not going to stop you.
But most of the programmers I know use at least C or C++, if not Perl or
PHP or Python, and Ruby is one of the more H of the HLLs.
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Designing the Radiant Way?

2010-02-04 Thread Anton Aylward
Daniel O'Connell said the following on 02/04/2010 02:04 PM:
 Anton,

 Thank you very much for your help! I think it would be a great help
 to others, if you could add your method to the  Radiant docs wiki.

In a mail message there's context and we can add with dialogue to
clarify.  To do a piece for a wiki I'll need to be specific, include
screen shots and a lot ore detail.

I started on that and found it was so much work and had a  crash from a
power failure and ... and ... and I need to get my taxes done ... and
... I need the 'span of time and attention.

Maybe.

 I'm still going through the steps you gave, but so far so good.
 This nuts and bolts understanding of how to work in Radiant has
 really been eluding me. Thanks for the link.

I suppose by now I work with about 10 tabs open on snippets, templates,
pages, page parts, page views, google searches, e-books, style sheets,
web tools ... that it would be impossible to describe my approach to the
'nuts and bolts' of 'keyboarding'.  I don't know how people ever lived
without multi-taking editors ...


 Andrea's website is really a great resource
 for ideas. So is fullahead.org. 

Indeed.  So are many other free template sites :-)

 Right now I'm working from the Lazy Days template
 http://fullahead.org/index.php/work/project/lazydays/
 for a semi-fluid layout that scales well and can be 1 or more
 columns.  The template is very well documented throughout.
 Very clean nicely laid out code too.

Documentation, somewhere, is Very, Very useful.
Keep notes on what and why you do what you do.

I just found that my template a snippet that was just a logo.
Moving it from the snippet to the template and then from the asset to
the file system really helped performance!  Note to self: remember this
when writing up the process.



 Well, OK,  0-sidebar, 1-sidebar and 2-sidebar types of themes.
 Uh-oh!  Someone isn't going to like that!

 Perhaps you need to use Joomla after all ...
 

 Joomla...Oh that almost gave me nightmares. Radiant is so much
 better than any of the CMSes I' am aware of, Rails or
 otherwise and i've researched/tested dozens of them. 

Indeed!  But 'better' is a context sensitive term.
If you were running a major portal or a publishing mini-empire and had
dozens of editors and hundreds of authors then you might think differently.

-- 
The way that can be followed is not the Way
The truth that can be told is not the Truth
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Designing the Radiant Way?

2010-02-04 Thread Anton Aylward
No, that's a theme.
I meant all the stuff or a blog - the code, extentions, configurations ...

Daniel O'Connell said the following on 02/04/2010 02:42 PM:
 
 Apparently:
 
 http://github.com/indexzero/radiant-scribbish-theme
 

 
 On Feb 4, 2010, at 12:21 PM, Anton Aylward wrote:
 
 [.]

 Hey, is there a package with all the stuff necessary for a blog in the
 GIThub?

___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Designing the Radiant Way?

2010-02-04 Thread Anton Aylward
Anton Aylward said the following on 02/04/2010 03:03 PM:
 Daniel O'Connell said the following on 02/04/2010 02:04 PM:
 Anton,
 
 Thank you very much for your help! I think it would be a great help
 to others, if you could add your method to the  Radiant docs wiki.

I've pasted my method of creating a theme from an existing web site or
page into
http://wiki.github.com/radiant/radiant/make-a-template-from-an-existing-site

I'm sure the various existing export and import tools can be used to
package up themes.

-- 
The saddest life is that of a political aspirant under democracy. His
failure is ignominious and his success is disgraceful.
-- H.L. Mencken
___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


[Radiant] Redirecting /

2010-02-02 Thread Anton Aylward
For various reasons I'd like to have the Home on my site menu go to
/home   (and the About go to /about and so on.)

Creating /home and the sections that go into it which get managed as
child pages - for editing/organization reasons - isn't the problem.

The problem is that people visit

http://MyDomain.com
which is really
MyDomain.com/

or in radiant terms /
and not
http://MyDomain.com/home

Now I know if this was my own site I could play around with Apache and
redirect, if I knew enough about Apache's redirect and had access to it,
which I don't, and its all messed up by use of Dreamhost's funny
implementation of Passenger anyway.

I know there's 'routes.rb' but will that survive upgrades?
I suspect not.

Any other suggestions?  Is there something in Rails or Radiant that does
this that I'm unaware of?

-- 
Growth for the sake of growth is the ideology of the cancer cell.
 - Edward Abbey

___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] Designing the Radiant Way?

2010-02-02 Thread Anton Aylward
Daniel O'Connell said the following on 02/02/2010 08:18 PM:
 Hello to all,
 
 I'm still trying to get my head around designing a website with
 Radiant in mind. The biggest problem for me seems to be figuring out
 how to write the layout html so that Radiant knows where the
 content will go. For instance, with a multi-column layout how do you
 determine where the body or other page part will go in the layout so
 that it makes sense in Radiant.
 
 Could any of you seasoned veterans explain the process you use to
 design a website with Radiant in mind. How do you create a theme?
 Create 1, 2 or more column layout?

I started to write this up but I rapidly found that explaining it was
about 20-30 times as much work as doing it.

Lets see it I can get it done quick.

1. Go to Andreas Viklund's site http://andreasviklund.com/ and
   download a FREE template.  Get a zip file and unpack it.

2. Put ..
The HTML a named template
The CSS in public/stylesheet
The images in /public/images

3. Go to the template.
   Go the head section
   Edit the reference to the stylesheet to match where you put
   the stylesheet.
   Go through the bodyto find references to images and edit them to
   match where you put the images.

4. Create the / page.
   Set its template to be named template you created in #1

5. Test by pointing your browser at the base of the site.
   It *should* look like Andreas' example.
   If it doesn't, then you've made a mistake in #2 and #3

6. Create some dummy content of you own in /

7. Go to the template and find out where in body the example
   content is.  Leave all the menu stuff alone for now.
   Replace Andreas' wordage with
r:content /

8. Test.
   You should now see your won content.

9. Gradually replace more of the basics in the template with your own
   material.

I strongly suggest doing this:

a) take the main menu stuff from the template and put it in a snippet
   called mainmenu and replace it in the template with
r:snippet name=mainmenu /

b) test

You can do that with other chunks of stuff.

With a bit of practice you can do that in less time than it took me to
write this.




Now, based on hard earned experience,
I suggest your template has bits like this in it ...

div id=sidebar
r:content part=sidebar-hi inherit=true /
r:content part=sidebar inherit=true /
r:content part=sidebar-page /
r:content part=sidebar-low inherit=true /
/div !-- end sidebar --
div class=clearnbsp;/div

You'll soon figure out what to do with the hi low and page-specific
parts :-)

You might also want to use this as your template's core

   div id=content
r:unless_url matches=^/$
h1 class=headerstyler:title //h1
/r:unless_url
r:content /  !--  page main content --
p class=insidelink[ a href=#topBack to top/a ]/p
r:if_content part=extended
   div id=extended
r:content part=extended /
   /div !-- end extended --
   p class=insidelink[ a href=#topBack to top/a ]/p
/r:if_content
r:if_content part=extended2
   div id=extended2
r:content part=extended2 /
   /div !-- end extended2 --
   p class=insidelink[ a href=#topBack to top/a ]/p
 /r:if_content
 /div !-- end div.content --

If you don't see it at first, trust me, you'll soon find out why :-)

I've also found it useful to have this like in the head

r:if_content part=head
   r:content part=head /
/r:if_content




 I know that Radiant is only at 0.8.1 (stable) But there really needs
 to be better theming ability, and more documentation for those who
 struggle as I do with the programming end of things. 

I'm not happy with the idea of introducing theming the way WordPress
or Joomla does into Radiant.  Its too restrictive.  If you just try
converting the nine free examples that Andreas gives you'll find that
they have awkward fits.

I'm working on a site based on his '03' example.
http://andreasviklund.com/templates/andreas03/
The top part has two extra bit, the logo where it says speed and
accessibility and the caption where it says Presentation ...
You need page-parts for those.  You may -or may not- want them inherited.

So Obviously the theme has to dictate what page parts you can or
cannot have.   If you develop with andreas01
http://andreasviklund.com/files/demo/andreas01/
and then move to Andreas03, you're in a mess - you've moved from two
sidebars to one and you've got slots for two page parts that didn't
exist before.

What's the solution?

Well, OK,  0-sidebar, 1-sidebar and 2-sidebar types of themes.
Uh-oh!  Someone isn't going to like that!

Perhaps you need to use Joomla after all ...



 I would also
 love to see a Radiant CMS for dummies or other instruction geared
 for beginners offered for sale.

I think the real problem with Radiant is that 

[Radiant] Problem with 8.8.1 on Dreamhost

2010-02-01 Thread Anton Aylward
I've done the development on my laptop and now moved to Dreamhost, where
Passenger blows up on (as far as I can tell from the error listing)


  config.gem 'imagesize', :lib = 'image_size'

It says

Error message:
private method `gem' called for #Radiant::Configuration:0xa9e0974c
Exception class:
NoMethodError


I've tried a freeze of the gems before uploading to Dreamhost.

Any other ideas?



-- 
Knowledge will forever govern ignorance: And a people who mean to be
their own governours, must arm themselves with the power which knowledge
gives.
--James Madison, quoted on the Library of Congress

___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


[Radiant] A live backup another named database

2010-01-24 Thread Anton Aylward
I have the file_system extension installed and took a 'snapshot'


So I did a took a backup copy of development

cp development.sqlite3.db development-2010-01-24.sqlite3.db

and then

rake development file_system:to_files

However the Db grew a bit when I restored that!

rake development file_system:to_db

ls -l db/

-rw-r--r-- 1 anton users 309248 2010-01-24 18:03
development-2010-01-24.sqlite3.db
-rw-r--r-- 1 anton users 314368 2010-01-24 18:09 development.sqlite3.db

Should I be concerned?  Why has it grown?


The second part of the question is this:

I now want to restore that to a working database while I also work on
the 'development' Database.

So in config/database.yml I have

=
development:
  adapter: sqlite3
  database: db/development.sqlite3.db

snapshot:
  adapter: sqlite3
  database: db/snapshot.sqlite3.db

# Warning: The database defined as 'test' will be erased and
# re-generated from your development database when you run 'rake'.
# Do not set this db to the same as development or production.
test:
  adapter: sqlite3
  database: db/test.sqlite3.db
===

production is off in the future  :-)

I do a  
rake snapshot file_system:to_db
and I get
rake aborted!
Don't know how to build task 'snapshot'

Which sort-of makes sense.  But then again doesn't.
How can I specify a database other than
[ development, test, production ]




-- 
Opportunity is missed by most people because it is dressed in overalls
and looks like work.
Thomas A. Edison

___
Radiant mailing list
Post: Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
List Site: http://lists.radiantcms.org/mailman/listinfo/radiant
Radiant: http://radiantcms.org
Extensions: http://ext.radiantcms.org


Re: [Radiant] How can i extract part from page for auto teaser making?

2010-01-15 Thread Anton Aylward
Dmitry Belitsky said the following on 01/15/2010 06:56 AM:
 Hello there,
 how can i use custom number of words/letters for generating teasers  
 for articles?
 Is there are extension for it?
 I only found Summarize extension, but this is not what i want for my  
 clients.
 I want simplest solution, which will cut first paragraph or first n  
 letters.
 Thanks.

In many types of blog software there is a mechanism whereby you can has
the long list of postings, or at least the 'first paragraph', each with
a read more... tab at the end.  In some, you do this by inserting a
marker at that point.

In my Radiant based blog I achieve the same thing by use of page-parts.
What you call the teaser I have as the main page part.  If you just
visit the base you get the list of these 'first paragraphs'.  If you
click though you get the whole article, which is in additional page-parts.

Of course you could equally well have a page part called 'teaser'.
I can imagine a RSS service that ignores the real body but serves up the
'teaser'.  Of course in that case you'd have to redundantly fill in the
'teaser' page part, which is why I refer my approach.  DRY.

Of course this depends whether or not you want to 'extract'.  I think my
approach offers more control and less redundancy, but then I'm bigoted
about it since its my idea :-)

To be honest, the Layouts I use make extensive use of page parts and
inheritance, as I mentioned in an earlier posting about constructing a
sidebar.

-- 
The government who robs Peter to pay Paul can always depend on the
support of Paul.
-- George Bernard Shaw
___
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

2010-01-15 Thread Anton Aylward
Ozan Ay said the following on 01/15/2010 09:09 AM:
 I have made my xhtml css web template before the radiant cms 
 installation. Now how can I implant my web template to radiant cms. Are 
 there any tutorial or example.
 Thanks

I'm working on one ...

-- 
Leadership is understanding people and involving them to help you do a
job. That takes all of the good characteristics, like integrity,
dedication of purpose, selflessness, knowledge, skill, implacability, as
well as determination not to accept failure. ~ Admiral Arleigh A. Burke
___
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

2010-01-15 Thread Anton Aylward
Sean Cribbs said the following on 01/15/2010 09:37 AM:
 Hi Ozan,
 
 There's a decent tutorial in the middle of my presentation slides here: 
 http://seancribbs.com/page_attachments//0054/barcampkc-pres.pdf

Slide #37 also illustrates the use of page-parts on a blog to supply the
'teaser' as I was describing in another thread here earlier today.

Thanks Sean, good stuff!


-- 
Security is old, older than computers And old-guard security thinks of
countermeasures as a way to manage risk.  Avoiding threat is black 
white, either you avoid it or you don't.
Managing risk is continuous.
 - B Schneier, Secrets and Lies pp 385
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Thoughts on layout design approach

2010-01-13 Thread Anton Aylward
Peter Degen-Portnoy said the following on 01/13/2010 11:38 AM:

 
 So, the question is, what clever solutions have you used to expand the Admin
 functionality for your users?  Is there another approach that we¹re missing
 that would be more elegant?  I¹d appreciate your warnings and
 encouragements.  :-)


I think you're making it too complicated.

First, I've NEVER needed the nested-layout.  I always use new Layouts.
I usually have three or four (or more)(separate) Layouts for a site, one
for the front page, one for normal pages and a couple for special pages.
 Sometimes I have what amounts to three column, aka 'two sidebars'.
Sometimes its one column.

I'd be hard pressed to imagine why I'd need a 'nested' Layout.

The Layouts are all VERY heavy on snippets.
The overall 'look and feel' is made consistent by the use of CSS and
snippets.  Any Layout is heavy on those snippets, defining the header,
banner, logos, key elements like menus, footers and copyright notice.

I always install Conditional Tags so that I have
r:if and r:unless (and r:puts) tags to add to the Snippets, and
Layouts.   Some pages might need markers: there's another extension that
allows for the variables.

That being said, I can usually get a lot of the conditions done with
things like
r:if_ancestor_or_self /
for different parts of the hierarchy.

The other thing I rely on heavily is constructs like

  r:if_content part=extended2
   div id=extended2
 r:content part=extended2 /
   /div !-- end extended2 --
  /r:if_content

Why the div?  So I can have a stylesheet reference for it!
How else do you get the consistent 'look and feel'?

I also rely heavily on inheritance.

div id=sidebar
r:snippet name =site-menu /
r:content part=sidebar-hi inherit=true /
r:content part=sidebar inherit=true /
r:content part=sidebar-page /
r:content part=innerlinks inherit=true /
r:content part=sidebar-low inherit=true /
/div !-- end sidebar --

Again, the div for the CSS.

The inherit means that each section can have its own 'basic' sidebar.
The line without the 'inherit' is the page-specific part of the sidebar.

Of course this is a snippet, and the different Layouts can put it at the
left or the right as they choose :-)

I'm sure you can see how this principle can be generalized.

Now add some conditionals to that 

You've really not stated your problem in terms of what you're trying to
ACHIEVE.
Instead you've told us about what you are trying to DO, the mechanics.
I'm fairly confident that if I knew what you were trying to ACHIEVE I
could manage it with the techniques I use regularly, without making it
so rococo.

If you want to examine this further, please feel free to contact me.
I need some distraction from doing my taxes :-)

-- 
A generation which ignores history has no past and no future.
Robert Heinlein (1907 - 1988), The Notebooks of Lazurus Long
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Thoughts on layout design approach

2010-01-13 Thread Anton Aylward
Peter Degen-Portnoy said the following on 01/13/2010 05:49 PM:
 Hi Folks,
 
 Thanks so very much to everyone who responded; this has been fantastically
 helpful!
 
 It sure looks like we have a number of options including creating two more
 layouts (although we would like to not have essentially the same layout 3
 times; there is probably a,  way to DRY up the layouts).  

Yes.
As I mentioned. put things like 'sidebar' into the snippets than you
have a pair of layouts:  sidebar-left and sidebar-right.

Its not so much DRY as 'factoring out common elements' and making them
into building blocks.

Its easier on your users to have many Layouts to choose from, even
though they are 'much the same', than to put them though the other
contortions you discussed.  If you name the Layouts 'logically', and by
that I mean the name reflects the function on the site, things like:
'front-page', event-page .

Heck: I started that and I ended up using the templates plugin within
just TWO layouts for one site, a 'front page' with no sidebar and a
normal page with sidebar, and everything else done with Templates.
Great plugin.  It directs' the users as to what to fill in where almost
like creating pages with a form!

 We could also use
 the r:if_url and r:unless_url to control the display of elements.  It would
 more tightly bind the layout to the site structure, but the layout *is* the
 site, so we're good on that.  :-)
 
 The r:if_content tags would allow us to use a simpler naming convention,
 like right_gutter and all the elements that need to appear in the
 right_gutter are placed there.

Ah, I don't know about other people, but I've always taken the 'gutter'
to mean the dead space between two elements, such as the main content
and the sidebar.  Be careful inventing terminology.

As I pointed out, I have the Layouts with 'left-sidebar' and
'right-sidebar'.  Why?  Because the CSS is very specific about what goes
where.
A 'left-sidebar' page has a different offset of the main content from a
layout that has a right sidebar or no sidebar.

And unless you want it bouncing around all over the place, you DO need
the CSS.

#Mainpage   #SidebarPage
body  body
div id=containerdiv id=container
div id=content  div id=left-sidebar
div   /div
div id=content
/div
/div  /div
/body /body

Do it with CSS
Let me make that quite clear.
You can't just throw DIV-level elements around, you have to take care
and consideration of the order they will rendered and the CSS.

If its getting complicated, difficult or unclear you doing it wrong.
I know that sounds a bit arrogant and fascist, but its true.  One day
someone will come along to read this, perhaps maintain it.  It may be
you years on, smarter perhaps or just perhaps a bit hurried.  Keep it
simple and clear.  Your users and your colleagues will thank you.


-- 
A PICTURE IS WORTH A THOUSAND WORDS--But it uses up a thousand times
the memory.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Thoughts on layout design approach

2010-01-13 Thread Anton Aylward
Peter Degen-Portnoy said the following on 01/13/2010 05:49 PM:

 
 The r:if_content tags would allow us to use a simpler naming convention,
 like right_gutter and all the elements that need to appear in the
 right_gutter are placed there.

Do you really mean 'gutter'?
According to
http://desktoppub.about.com/cs/pagelayout/g/gutter.htm
its an alias for 'inside margins'..

Nice illustration on that page.

If you are going to make a reply that involves printing, then I
suggest you do what Wikipedia does.  Have a separate CSS for the print
that sets the content to full width and drops the sidebar and other
decoration.

http://en.wikipedia.org/w/index.php?title=MediaWiki:Print.cssusemsgcache=yesctype=text%2Fcsssmaxage=2678400action=rawmaxage=2678400


You might also want to check out the Blueprint  layout CSS package and
in particular Gutterless Blueprint

http://www.blueprintcss.org/
Blueprint is a CSS framework, which aims to cut down on
 your development time. It gives you a solid foundation
 to build your project on top of, with an easy-to-use grid,
 sensible typography, useful plugins, and even a stylesheet
 for printing.

http://github.com/baldwindavid/gutterless_blueprint_css
Which I heartily recommend!

There are visual layout editors based on Blueprint so as to make your
CSS life easy.
http://toki-woki.net/blog/p547-boks-a-visual-grid-editor
http://toki-woki.net/p/Boks/
http://constructyourcss.com/

-- 
An NSA-employed acquaintance, when asked whether the government can
crack DES traffic, quipped that real systems are so insecure that they
never need to bother. Unfortunately, there are no easy recipes for
making a system secure, no substitute for careful design and critical,
ongoing scrutiny.
  -- Matt Blaze in AC2
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] link on front-end to edit this_page if logged in

2010-01-07 Thread Anton Aylward
Steven Southard said the following on 01/07/2010 01:31 PM:
 I've heard wordpress has this handy edit link on any page if logged in  
 as admin.  Sounds like an efficient way to encourage editing of  
 pages.  As I understand, on the front-end if admin I need a link to  
 open /admin/pages/this_page/edit.  Are the basic tools in place for me  
 to do that?  Is there an extension that would be helpful?

That sounds like one step along the road to making Radiant into a Wiki


-- 
What goes around comes around.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Endnotes and 404

2009-12-01 Thread Anton Aylward
John Long said the following on 12/01/2009 01:05 PM:
 This is not a bug. A 404 page is not intended to have children. I'd
 recommend that you include some javascript that automatically
 redirects to your home page.

DUH!

I'm not sure I agree.
Marking an existing page as 404 'cos  its been taken out of service,
perhaps for legal reasons, seems reasonable, and its also reasonable
that its children need not be taken out of service.

This is no different, logically, from a parent page that is taken out of
service with a redirect to a replacement, and whose children are not
affected.  The only difference is whether or not there *is* a replacement.

So I see this as a parsing problem.
The parser hits a 404 page and stops.



Anyway ...
I tried puting a javascript redirect in the header -- IT'S SLOW!
It also gives out the wrong information

In the head for /extra I put

script type=text/javascript
window.location.href='/page-not-found';
/script

and in /page-not-found I have

The page you were looking for - r:attempted_url / - could not be found


However after accessing /extra and getting redirected the message I see is

The page you were looking for - /page-not-found - could not be found

Which is not right.
At least when /extra was a 404 page the message was right.

I'm not a programmer.  I found that javascript snippet via google.
It seems to make sense.


-- 
The only secure computer is one that's unplugged, locked in a safe,
and buried 20 feet under the ground in a secret location... and i'm
not even too sure about that one - Dennis Huges, FBI.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Endnotes and 404

2009-11-30 Thread Anton Aylward
Endnotes are an alternative to footnotes.
Long footnotes can intrude into the page, using endnotes moves them 'out
of band'.

I've created an otherwise blank page /endnotes/ and the endnotes live
under there.  Hyperlinks from the text lead there.  simple enough, eh?

But I don't want people to hack the address bar and look at the page
/endnotes/ itself.  So I marked it as Page type: file not found and
it should come as a 404.

It does.  The only problem is that so do its children.
And I have explicitly marked them as normal

Is this a bug?  Is it inherent in the logic of the way things work or it
is something I've done wrong?



-- 
Human history becomes more and more a race between education and
catastrophe.
--H. G. Wells

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Caching issue

2009-11-30 Thread Anton Aylward
Myron Marston said the following on 11/30/2009 12:24 PM:

 
 So, it appears to me that the cache is being properly cleared on the server,
 but Firefox is continuing to display a version of the page that is has
 cached on the browser.  My best guess is that there is some issue with the
 HTTP cache headers that causes Firefox to continue to display it's cached
 page.  I haven't dealt with HTTP cache headers before, so I'm not really
 sure how to go about troubleshooting this.
 
 Any suggestions?

Perhaps this ties in with my Last-Modified header question.
Though in this case, I should think you have a simple case of changing
the header that has nothing to do with the time the page or its children
was edited.  However I'd be interested in hearing how you change it when
the page itself isn't edited.


-- 
Insanity is hereditary. You get it from your kids.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] (resend) Re: Last modified header

2009-11-30 Thread Anton Aylward
Anton Aylward said the following on 11/26/2009 05:46 PM:
 Is there a way to add the Last-Modified header to a template and have
 it served correctly.
 
 Correctly ... ?
 
 Well, would that be from the date the page was last modified?
 
   r:date  [for=updated_at /
 
 OK, so I have a page whose body is
 
 r:if_children
 r:children:each
 r:content /
 /r:children:each
 /r:if_children
 
 and one of those was modified later than the parent page ... which is
 quite reasonable if you set up structure before content.
 
 And what if there are further nesting?
 

Oh, and what about a page that isn't itself modified but uses a snippet,
and the snippet is modified, modified enough to make the page look very
different.



-- 
Five exclamation marks, the sure sign of an insane mind.
-- Terry Pratchett _Reaper Man_
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Caching issue

2009-11-30 Thread Anton Aylward
Myron Marston said the following on 11/30/2009 06:26 PM:
 Perhaps this ties in with my Last-Modified header question.

 
 Anton--I looked through the archives and couldn't find this question.  I'd
 be curious to read that thread if you can point me in the right direction.

Resent.

I looked at the W3 pages that described such things and their use,
and there are an awful lot of headers to play with ;-)  Do all
browsers implement all of them?  I'm sure one or other of them could
get the 'renew' effect you want, if and only if the browser pays
attention to it!!

 There are several extensions for Firefox that will let you view cache
 headers.  Web Developer and Firebug both come to mind.  For Firebug, clear
 your cache, enable Firebug, click the Net tab in the Firebug panel and
 load the offending page in Firefox.  You should see an entry in the Net
 panel with a Headers tab.
 
 
 Thanks for the suggestion.  I should have a been a bit more specific
 though...I know how to view the cache headers in safari and firefox, but I'm
 still trying to wrap my head around how these headers work (I just read up
 on them today for the first time), and I'm not sure what to try next.

You and me,'Bro, you and me!  That W3 stuff and all those headers is
heady stuff :-)


-- 
helicopter (n): 30,000 parts in tight orbit around a hydraulic fluid
leak, waiting for metal fatigue to set in.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Last modified header

2009-11-28 Thread Anton Aylward
Anton Aylward said the following on 11/26/2009 05:46 PM:
 Is there a way to add the Last-Modified header to a template and have
 it served correctly.
 
 Correctly ... ?
 
 Well, would that be from the date the page was last modified?
 
   r:date  [for=updated_at /
 
 OK, so I have a page whose body is
 
 r:if_children
 r:children:each
 r:content /
 /r:children:each
 /r:if_children
 
 and one of those was modified later than the parent page ... which is
 quite reasonable if you set up structure before content.
 
 And what if there are further nesting?
 

Oh, and what about a page that isn't itself modified but uses a snippet,
and the snippet is modified, modified enough to make the page look very
different.



-- 
The ability to learn faster than your competitors may be the only
sustainable competitive advatage.
  - Arie De Geus, Planning Coordinator
Royal Dutch Shell
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Last modified header

2009-11-26 Thread Anton Aylward
Is there a way to add the Last-Modified header to a template and have
it served correctly.

Correctly ... ?

Well, would that be from the date the page was last modified?

  r:date  [for=updated_at /

OK, so I have a page whose body is

r:if_children
r:children:each
r:content /
/r:children:each
/r:if_children

and one of those was modified later than the parent page ... which is
quite reasonable if you set up structure before content.

And what if there are further nesting?

-- 
Not even the most heavily-armed police state can exert brute force on
all of its citizens all of the time. Meme management is so much subtler.

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Page Event Extension

2009-11-24 Thread Anton Aylward
subsor...@gmail.com said the following on 11/24/2009 10:03 AM:
 Hello,
 
 I was just taking a look at the Page Event Extension and wondered if
 anyone knew what the day, month, season and year pages were and how
 they worked?

Try installing it  and you'll see that these are fields added to pages

The 'calendar' is a dedicated page.

 Looks like a really interesting extension, would love to hear from
 people about how it works.

it works real well.  Just follow the instructions.


-- 
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Knuth
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Page Event Extension

2009-11-24 Thread Anton Aylward
subsor...@gmail.com said the following on 11/24/2009 11:53 AM:
 Hmm,
 
 How do you list the shows via the archives?
 
 I can see r:events:in_range:each but that requires
 start=/mm/dd manually specified in the tag.
 
 r:events:upcoming:each limit=10 just seems to list all upcoming
 events but is not scoped to the date in the archive...
 
 Is creating a simple list of events scoped by month/day possible?

We're talking at cross purposes, then.

The Page Event archive is quite separate from the Archive.
Its for events that appear in the calendar.  Presentations, meetings,
trade shows, things like that.

Think C*A*L*E*N*D*A*R

You have fields on those pages that say when the EVENT is to occur, and
that has nothing to do with when the page was written, published or updated.

I presume you don't mean shows in your sentence in that sense.
Its about shows as a noun, trade SHOWS, theatrical SHOWS, not as the verb.

The Archive ties in with when the page was published, as in a Blog.
Its quite separate and nothing to do with this plugin.


I'm using Page Event for a site that has no blogging.  The upcoming
Events section take the next 3 from the /events.  Which is what its
supposed to do.

I think you have the wrong idea of what this is for.

Think in terms of a CALENDAR of events.
Now, instead of the matrix of the calendar, 28. 29, 30 or 31 days per
page, think in terms of a linear list that may be over more than one
page of the calendar, as might be the case with a once-a-month event.

Think C*A*L*E*N*D*A*R


-- 
It's not a good idea to believe anything about security when read
in the mass media.  by the time it gets there it is usually
sensationalized to the point where it's more about hype and
marketing than anything else.
   - Ryan Permeh [ta...@millcomm.com] on Vuln-Dev
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Page Event Extension

2009-11-24 Thread Anton Aylward
subsor...@gmail.com said the following on 11/24/2009 03:04 PM:

 
 I'm confused at to what these additional page types actually do...?

You've got me confused now.
Which extensions are you talking about?

you're refering to

r:archive 
and
r:events ...

Those are two separate extensions.  The first comes with the basic
Radiant - check the gem if you haven't frozen it into your working tree.

The second is a separate plugin that you download and install manually.

The Radiant core archive code  extracts the Archive pages from their
original place in the Radiant distribution.

Pages of page-type=archive are intended to provide behaviour similar to
a blog archive or a news archive. Child page URLs are altered to be in
%Y/%m/%d format (2004/05/06).

Looking at the code of the archive extension I see that its based on
date published, as you would expect or a blog.

The Page Event code adds extra fields and its operation is based on
those extra fields.

The Archive is based on each page having one specific date.

The Page Event is oriented around the idea of a calendar, so that means
an event may have a start data and an end date, as would be the case for
a conference, a trade show or a Broadway show.

They are two completely different things with different objectives.

Trying to use them together is going to tie you into knots.

-- 
The art of progress is to preserve order amid change and to preserve
change amid order.
--Alfred North Whitehead
___
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 capabilities

2009-11-23 Thread Anton Aylward
Asfand Yar Qazi said the following on 11/23/2009 07:17 AM:
 2009/11/22 Anton Aylward anton.aylw...@rogers.com:
 Asfand Yar Qazi said the following on 11/22/2009 10:10 AM:
 2009/11/21 Anton Aylward anton.aylw...@rogers.com:
 
 I'm a strong believer in simplification, and one of the axioms is Each
 Thing Does One Thing and Only One Thing.  Overloading a single engine
 to do all you want sounds like a recipe for disaster.
 
 Well, I'm not really overloading a single engine.  The radiant engine
 will only manage blogs and articles.  That is kind of what it is
 designed for, I'd assume - dealing with articles and presenting them
 in some format accessible by a menu hierarchy.  The separate forum
 software (whatever it is) will manage the forums.  If the client wants
 something else added in the future, like a video presenting
 application, obviously that would be its own app.

First:  I don't mean 'overload' in the sense of 'give it so much work it
collapses'.  Ruby, as it is now, may not be the most efficient of
interpreters, but any reasonable server will be available to handle a
few hundred transactions a minute :-)  The Pickaxe book talks about
scaling in very basic ways and Radiant has some excellent caching
capability.

No, I meant 'overloading' in the management sense.  Do one thing...
If anything kills a project its complexity.

And I don't know where you get off slagging the excellent work by the
various contributors to Radiant by implying its not as capable of being
a forum engine as a blogging engine.  And yes, there are plugins to
handle video too.

-- 
A man thinks that by mouthing hard words he understands hard things.
 - Herman Melville
___
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 capabilities

2009-11-22 Thread Anton Aylward
Asfand Yar Qazi said the following on 11/22/2009 10:10 AM:


 2009/11/21 Anton Aylward anton.aylw...@rogers.com:
 Asfand Yar Qazi said the following on 11/21/2009 12:05 PM:
 I'd like to know if Radiant or one of its extensions offers some
 capabilities I'm looking for for a site I need to write for a client.
 Site.  That's an important term.
 It means domain?  Right?
 
 I mean 'site'.  I know of several 'sites' where the all the features
 are rolled up into a single coherent interface (at least from the
 visitor's point of view), for example, http://www.anandtech.com/
 (technology magazine) and http://www.therevival.co.uk (Muslim youth
 magazine).


Just for the record ...

There is a multi-site plugin for Radiant, that lets more than one site
run from the same engine.  Each site has its own layout, snippets and
css within the overall database.

I see no reason the opposite can't be done as well.

More than one Radiant 'engine' but with the same basic layout, banner,
footer, main menu.  Perhaps someone could comment on the 'efficiency' of
this?  For example, they need not be both implemented on the same machine.

Yes, I note your point about SEO, Asfand, but then again, there are
plugins and tools that can 'merge' subdomains so they appear as one.
Can http://github.com/saturnflyer/radiant-seo_help-extension/ be used to
help?  I don't know.  To be honest I've long given up on optimizing
search engine submissions.  When I submit things like my own name or
that of the companies I've done sites for they always seem to come up on
the first or second page of a google search WITHOUT any SEO work.  I
sometimes wonder the people selling SEO services, books, software,
aren't just another scam and time waster.

Or maybe I put the right stuff in the META the first time.
Who knows.  But I don't see SEO as a hurdle.
___
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 capabilities

2009-11-22 Thread Anton Aylward
Asfand Yar Qazi said the following on 11/22/2009 10:10 AM:
 2009/11/21 Anton Aylward anton.aylw...@rogers.com:

 I'm not going to skimp on forum features just because it has to be in
 Ruby on Rails - phpBB it is, because the rich feature set is worth it
 (and it's free compared to vBulletin).  The main page has to have
 snippets of the latest blog entries, the latest forum posts, and a
 single username/password must be able to access all of these.  Using
 separate apps makes this more difficult, but not impossible - I just
 have to delve into the database of each one and extract the text
 myself.

It doesn't have to be like that!

 SSO is a very fuzzy concept.  ...
 
 That's why I want to use a single engine for everything - RBAC becomes
 easier.  If I have to use other software, I'll basically be creating
 accounts and logging people into them on the other software when they
 log onto my app.  But phpBB, for example, has its own RBAC scheme, so
 that's ok.  It means doubling work of administrators when assigning
 roles (first on the app, then on the forum software), but from the
 visitor's point of view, it seems consistent, because they only have
 to create an account once.

I think you're labouring under a misapprehension.

Certainly if you use a PHP engine for the forum and Radiant Engine for
the other stuff you'll have this matter of hand copying.  But there are
simpler ways to do this.

I once did up an application with a simple portal page and simple and
SEPARATE account manager application/database.  The account manager did
more that 'just' access control, it also determined which of a number of
databases the user could connect to.[1]

Think about that for a moment.  Its neither a new nor revolutionary concept.

Single sign On in a large windows environment is done with something
like an LDAP database.  I don't particularly like LDAP, but its there
and there's a lot of it.  A plugin that overrides Radiant's existing
authentication isn't going to be difficult.  Does one already exist?

Once a user has been authenticated to the domain a cookie can contain
(signed and encrypted so it can't be hacked!) all the information that
does the SSO.

How do you think SSO in web based applications work anyway?  The HTTP
protocol is connectionless, so ANY login system has to use cookies to
simulate a connection.

I'm sure if I looked I could find a few media companies - ZDNet
perhaps?? - that simulate SSO across multiple engines and subdomains
using domain-level cookies.I know for sure my Amazon Affiliate login
 also authenticates me to the store.

I'm a strong believer in simplification, and one of the axioms is Each
Thing Does One Thing and Only One Thing.  Overloading a single engine
to do all you want sounds like a recipe for disaster.



[1] See Rick Smiths' book Authentication
http://www.amazon.com/gp/product/0201615991?ie=UTF8tag=emergentprope-20linkCode=as2camp=1789creative=390957creativeASIN=0201615991
P122: Indirect Authentication dresses the scalability problem
posed by sites with a single user population but multiple points of
service. Even a site with just two servers will want to avoid the
headache of maintaining consistency between two separate
authentication databases.

-- 
A human being should be able to change a diaper, plan an invasion,
butcher a hog, conn a ship, design a building, write a sonnet, balance
accounts, build a wall, set a bone, comfort the dying, take orders, give
orders, cooperate, act alone, solve equations, analyze a new problem,
pitch manure, program a computer, cook a tasty meal, fight efficiently,
die gallantly. Specialization is for insects.
-- Robert A. Heinlein, Time Enough for Love
___
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 capabilities

2009-11-21 Thread Anton Aylward
Asfand Yar Qazi said the following on 11/21/2009 12:05 PM:
 Hi,
 
 I'd like to know if Radiant or one of its extensions offers some
 capabilities I'm looking for for a site I need to write for a client.

Site.  That's an important term.
It means domain?  Right?

I wouldn't do this all with just one engine, even if I used Radiant
for all the parts.

Suppose you have a 'portal' at QizisCompany.com.
I've done this with static HTML and embeded IFRAMES for news feeds, but
there's no reason that this shouldn't be the front page of the magazine,
and yes I believe it can be done with Radiant.

But that front page can have a menu item for Blogs that actually takes
you to Blogs.QizisCompany.com.  Perhaps that'd done with Radiant,
perhaps not.  Another menu item goes to forums.qizisCompany.com .  And
so on.   If you don't like the forum plugin for Radiant, try another RoR
forum engine: Eldorado - http://eldorado.heroku.com/



 They want a 'magazine' type structure, with forum and blogs, using a
 single sign on.

SSO is a very fuzzy concept.  Many of the authentication mechanisms give
a cookie token back after login and have  remember me so  that when
the user come back after a period (seconds, hours, days...) so long as
they haven't deleted the cookie they are authenticated.  If you make
this happen at the DOMAIN level - see above - then you can make one form
 of SSO happen.  There's a few IFs though.  Authentication is not the
the same as Authorization.  Someone may log in to update their blog but
that may not mean they are authorized to read private parts of the forum
or submit articles to the journal.  I suggest you look at using Role
Based Access Control.  I believe there is a plugin for it, but I don't
know if it addresses this kind of thing.

Check out the plugins by 'spanner'
http://github.com/spanner/radiant-reader-extension
http://github.com/spanner/radiant-forum-extension

 So someone can open an account, and be given permission to write
 articles.  These are then approved by designated editors and
 published both to the front page, and to 'category' pages depending on
 what category the articles belong to.

Yes, that's most definitely RBAC.
See http://github.com/saturnflyer/radiant-page_review_process-extension/


 This sounds like standard CMS stuff, doesn't it?  The only sticking
 point  seems to be the overall account scheme, where a single user
 account can do multiple things depending on what permissions it has.
 Will Radiant easily support these features, or is some hard
 development work required?

Users and user groups seem covered in Will Spanner's plugins.
I don't know if he implements any kind of RBAC.

Perhaps this can be adapted
http://github.com/dko/radiant-rbac_assets-extension/
http://github.com/saturnflyer/radiant-rbac_base-extension/
http://github.com/NoamB/acts_as_permissible/

See also http://github.com/saturnflyer/radiant-user_pref_control-extension/

Please let us know how you progress with this.



/a


___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Navigation Menu Sub-levels

2009-11-19 Thread Anton Aylward
Mauricio Dulce said the following on 11/19/2009 07:05 PM:
 Hello, I'm finishing a web mounted radiant, but I need to generate a  
 two-level navigation, and searched and not found such information and  
 I am using this reference to create the menu.
 

 The idea is that this will render me this menu

No it won't.

r:navigation / produces a single menu.
It may or may not have anything to do with the hierarchy of pages.
You could write

r:navigation urls=
Main:  /skipjack |
About: /para1/nicetomeetyou/section1 |
Buying: /shop/selling |
Selling: /trade/buying |
Goodbye: http://www.google.com


The point I'm making here is that r:navigation / is completely
arbitrary.  It need not follow the hierarchy.

*IF* - and its a big if - you want a menu that follows you page
hierarchy, AND you want something like suckerfish menus, then

a) see my post on this last week

b) from the 'root'(which may not be / )

div id=menup class=menuh
r:if_children
ul
r:children:each 
  lir:link /
   r:if_children
  ul
  r:children:each 
lir:link / /li
  /r:children:each
  /ul
  /li
/r:children:each
/ul
/r:if_children
/div

This will dynamically generate the two level menu.

But please see my post about menus from last week


-- 
There are still places where people think that the function of the media
is to supply information -- Donn Rottenburg
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Paperclipped Upload Error

2009-11-16 Thread Anton Aylward
Tom Stoll said the following on 11/16/2009 08:59 PM:
 Unfortunately, Anton, I tried Keith's suggestion, and nothing changed. I use
 Safari, and I don't think Safari did anything funny. Perhaps it will work
 for you. I don't understand how Firefox could have done it to you. There
 seem to be quite a few moving parts...
 
 Has anyone else seen this problem with shared hosting???

If its a javascript problem then its at the client end not the server end.

I tracked this down by borrowing a Windows machine and using and old
version of IE.  Things worked perfectly.  Perhaps you can try other
browsers too.



-- 
Democracy does not guarantee equality of conditions; it only guarantees
equality of opportunity.
--Irving Kristol
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] That cucmber problem again

2009-11-15 Thread Anton Aylward
Actually I was having problems with paperclipped:

When I try to add a new asset I get the popup on 'browse' but when I
click on a file the name isn't transfered to the input field.

Of course I can't enter the pat in the input filed since entering that
field causes the popup to appear ...

This in turn leads to

ActionView::MissingTemplate (Missing template admin/assets/create.erb in
view path
vendor/extensions/sns_minifier/app/views:vendor/extensions/sns/app/views:vendor/extensions/settings/app/views:vendor/extensions/reorder/app/views:vendor/extensions/paperclipped/app/views:vendor/extensions/page_preview/app/views:vendor/extensions/dashboard/app/views:vendor/extensions/copy_move/app/views:/usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/app/views):
  radiant (0.8.1)
vendor/plugins/haml/rails/./lib/sass/plugin/rails.rb:19:in `process'


So I thought to update paperclipped via 'ray'

What was the command again?  Try 'rake -T' to find out.
Well I got

rake -T --trace
(in /home/anton/Ruby/EightyOne)
rake aborted!
undefined method `feature_pattern=' for #Cucumber::Rake::Task:0xb724f1a0
/usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/tasks/cucumber.rake:13
/usr/lib/ruby/gems/1.8/gems/cucumber-0.4.0/lib/cucumber/rake/task.rb:127:in
`initialize'
/usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/tasks/cucumber.rake:7:in `new'
/usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/lib/tasks/cucumber.rake:7
/usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:145:in
`load_without_new_constant_marking'
/usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:145:in
`load'
/usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
`new_constants_in'
/usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/vendor/rails/activesupport/lib/active_support/dependencies.rb:145:in
`load'
/usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/Rakefile:10
/usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/Rakefile:10:in `each'
/usr/lib/ruby/gems/1.8/gems/radiant-0.8.1/Rakefile:10
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1620:in `load'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1620:in `load'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2451:in `load_imports'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2390:in
`raw_load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in
`standard_exception_handling'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:19:in `load'
/usr/bin/rake:19

Its that old
   undefined method `feature_pattern=' for
   #Cucumber::Rake::Task:0xb724f1a0

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] n-tiered Navigation

2009-11-13 Thread Anton Aylward
Jason Broom said the following on 11/13/2009 05:30 PM:
 New to RadiantCMS. Not a developer. I'm trying to create an n-tiered (three
 levels) standard navigation for a test site. Grandparents - Parents -
 Children. This n-tiered navigation should always show the Grandparents, but
 only show the children when a parent is clicked on. I don't want any
 third-tier cousins to see one another.

What you're missing is do it all with CSS.
Go google for things like Suckerfish menu done entirely in CSS.

I did this for one client - very nice it was.
Just as you describe.
They decided they didn't want it after all :-(

It uses three levels of nested ul ... /ul and the menu items are
each li.../li


div id=menu
ul
  lih2Actions /h2
  ul
 li  Action 1 /li
 li  Action 2 /li
 li  h2Nested Actions/h2
 ul
  li Nested Action1 /li
 /ul
 /li
  /ul
   /li
/ul
/div

See also

http://meyerweb.com/eric/css/edge/menus/demo.html
  mouseover the 'css/edge' on the menu on the far right
  See: three elvels



http://pixelspread.com/blog/289/css-drop-down-menu
http://csscreator.com/node/30664

http://www.roopletheme.com/forum/index.php?topic=631.0

Here's a generator: http://pixopoint.com/products/suckerfish_css/

http://mondaybynoon.com/2006/03/27/suckerfish-hoverlightbox/

http://www.classicaleconomies.com/

The classic Suckerfish
http://www.htmldog.com/articles/suckerfish/dropdowns/example/
used a bit of javascript to get around IE problems, but later versions
used pure CSS.
http://users.tpg.com.au/j_birch/plugins/superfish/

Here's the three (and four, vertical and horizontal) level illustrated
http://htmldog.com/articles/suckerfish/dropdowns/
http://htmldog.com/articles/suckerfish/dropdowns/example/vertical.html
http://htmldog.com/articles/suckerfish/dropdowns/example/bones3.html
albeit with some javascript
But see
http://www.builtfromsource.com/2006/10/23/a-fix-for-suckerfish-dropdowns-in-ie-7/

Or here's a version that deals with an indefinite number of levels by
using some javascript magic
http://netweblogic.com/css/suckerfish-drop-down-menu-improved/
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant

[Radiant] Quotes within quotes problem

2009-11-12 Thread Anton Aylward
I've got a problem with with RedCloth4 that I can't find help with on
the  pages at RedCloth.org

I want to cite a quotation, that is, generate HTML that reads


 and as the German Playwright Johann Wolfgang von Goethe said
a
href=http://thinkexist.com/quotation/the_solution_of_every_problem_is_another/158690.html;cite#34The
solution of every problem is another problem#34/cite/a.br /

but have those quotes matched

I start with

 The solution of every problem is another problem

Merely adding the

:http://thinkexist.com/quotation/the_solution_of_every_problem_is_another/158690.html.

Just makes it a link.
The 'cite' uses ??
So I try

 ??The solution of every problem is another problem??

and get what I expect, a citation with balanced quote marks.

But

 ??The solution of every problem is another
problem??:http://thinkexist.com/quotation/the_solution_of_every_problem_is_another/158690.html.

Doesn't give me the cited quotation with a link.

Adding a brace, as mentioned on the Redcloth.org site, doesn't help either

 [??The solution of every problem is another
problem??]:http://thinkexist.com/quotation/the_solution_of_every_problem_is_another/158690.html.

Is this a but in RedCloth4 or am I approaching this incorrectly?

Any RedCloth gurus here?  Any RedCloth list I could ask?

-- 
In preparing for battle I have always found that plans are useless, but
planning is indispensable.
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] Quotes within quotes problem

2009-11-12 Thread Anton Aylward
Anton Aylward said the following on 11/12/2009 03:21 PM:

 I'm aware of the _correct_ use of cite and do use it that way.
 My example could have used just about any tag, but the CITE was
 different enough to stand out.

I should explain that.

In the generated page, I use ctrl-U to view the source, then search for
that block of HTML.

By using CITE, which doens't occur anywhere else on the page becuase I'm
not using CITE in its correct way, I can find it quite easily.

Sort of like putting debug statements in source code.

-- 
For every complex problem there is an answer that is clear, simple, and
wrong.
--Henry Louis Mencken
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Problem installing 0.8.1 - late at night

2009-11-10 Thread Anton Aylward
Jim Gay said the following on 11/09/2009 11:13 PM:
 Is this a new instance or an upgrade?
 If it's an upgrade, have you run rake radiant:update?


Its a new instance.

Not only that, but it seems my efforts to upgrade gems in general
have broken the other 0.6.9 application I was working on that I
thought I had 'frozen'.  This is very annoying and I don't know
where to start looking to fix this.  It basically means my work in
progress is  chronically zapped.  All off it, not just my trial of 0.8.1.


1. The 8.8.1 trial seems t be flopping all over the place with
   little logic.

2. The old 'frozen' 0.6.9 apps that worked yesterday morning seems
   to have been zapped by upgrading gems in my attempt to get the
   0.8.1 working.

   Obviously I should have taken a full disk snapshot that included
   /usr/lib/ruby !!!  You guys do that as a matter of course, don't you?

   The failing 0.6.9 errors begining with failing to find 'require':

/home/anton/Ruby/new-SystemIntegrity/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in
`require': super: no superclass method `require' (NoMethodError)

from
/home/anton/Ruby/new-SystemIntegrity/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
`new_constants_in'

from
/home/anton/Ruby/new-SystemIntegrity/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in
`require'

from
/home/anton/Ruby/new-SystemIntegrity/vendor/rails/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb:36:in
`to_proc'

from
/home/anton/Ruby/new-SystemIntegrity/vendor/plugins/haml/lib/haml.rb:1033:in
`each'
from
/home/anton/Ruby/new-SystemIntegrity/vendor/plugins/haml/lib/haml.rb:1033:in
`init_rails'
from
/home/anton/Ruby/new-SystemIntegrity/vendor/plugins/haml/init.rb:7:in
`evaluate_init_rb'


-- 
And don't tell me there isn't one bit of difference between null and
space, because that's exactly how much difference there is.
-- Larry Wall
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Problem installing 0.8.1 - late at night

2009-11-10 Thread Anton Aylward
well this
http://github.com/radiant/radiant/issues/unreads#issue/56
edit got the demo 0.8.1 working.

Perhaps it time to migrate that into the gem?


Now onward to find out why my other applications have been zapped.


-- 
There is only one quality worse than hardness of heart and that is
softness of head.
--Theodore Roosevelt
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Redcloth Acronym limitation

2009-10-29 Thread Anton Aylward
I've been experimenting with embedding the 'title' tag.

Redcloth does this with the 'acronym mechanism.

From http://redcloth.org/textile/writing-paragraph-text/
there is the example

  The EPA(Environmental Protection Agency) is measuring
  GHG(greenhouse gas) emissions.

being mapped to

 pThe acronym title=Environmental Protection Agency
 span class=capsEPA/span/acronym is measuring
 acronym title=greenhouse gasspan class=capsGHG/span/acronym
 emissions./p

The key bit here is that the
title=Environmental Protection Agency
causes a popup.

I want to do a similar thing but end up as

   tag
 title=explanatory text
   
 multi word stuff, not upper case
   /tag

The 'tag' will probably be a span

The best I've figured out is

  ==span title=explanatory text
 multi word stuff, not upper case
   /span==

which is a bit clunky.

Any ideas?

-- 
  Between the iron gates of fate, The seeds of time were sown,
  And watered by the deeds of those Who know and who are known;
  Knowledge is a deadly friend When no one sets the rules.
  The fate of all mankind I see Is in the hands of fools.
  - Greg Lake

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] using CGI parameters

2009-10-22 Thread Anton Aylward
Mamed Mamedov said the following on 10/22/2009 01:31 AM:
 As i know you can access query params via params hash. For example,
 http://yoursite.com/?someparam=123 will be accessable through:
 params[:someparam]
 
 Is it ok?

Not really.
I know about that in RoR /app/ files, code and views and templates,
but what I'm dealing with here are Radiant pages.

I didn't think the 'raw' RoR level was accessible.
Why else have the radius language?


-- 
History knows no resting places and no plateaus.
-- Henry Kissinger
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] using CGI parameters

2009-10-21 Thread Anton Aylward
I have a Radiant site hosted on Dreamhost.
It works fine.

I'm in the process of adding their Announcement List to the site.
OK so far.

Their how-to page is at
http://wiki.dreamhost.com/Announcement_Mailing_List#How_do_I_display_information_from_the_form_on_my_custom_URLs.3F
Well, actually that's my question.

They give an example in PHP of taking CGI parameters and using hem in
the text body of the page.

?php
$email = $_GET['address'];
$name = $_GET['name'];
?
Thanks for subscribing, ?php echo $name; ? - we'll send our
next newsletter to you at ?php echo $email; ?!


Can you do this in Radiant?

Actually there also the 'code' parameter.
it would be nice to be able to have just one response page and to be
able to branch on that code.  Is this do-able in Radiant?

/a


___
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] Radiant 0.9.0 RC1

2009-10-12 Thread Anton Aylward
Nate said the following on 10/11/2009 10:38 PM:

 Anton Aylward said the following on 10/11/2009 07:23 AM:
   
 Ah.

 Any suggestions for running this along side the development of other
 Radiant sites using earlier version?  For reasons of extension
 compatibility and my lack of knowledge of GIT I still run a lot of 0.6.9
 
 'Cos I'd really like to try this for a new project I have in mind.
   
 
 
 I suggest you learn how to use git then.  ;^)  I have been looking into 
 other CMS's to use on larger projects, or projects not well suited to 
 radiant, and that's the one thing I cannot do without.

Perhaps, then, you can suggest a source of How To for GIT for
non-developers.
___
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] Radiant 0.9.0 RC1

2009-10-12 Thread Anton Aylward
Arthur Gunn said the following on 10/12/2009 08:24 AM:
 Perhaps, then, you can suggest a source of How To for GIT for
 non-developers.
 
 There are no end of resources out there, my personal recommendation  
 though:
   http://www-cs-students.stanford.edu/~blynn/gitmagic/

Ah.  about 50 pages more than I wanted.
Telling me all the things that as a non-developer I don't need to know
about, and not answering fundamental questions like when do I have to
worry about a 'module' or 'submodule' and how can I keep from geting
an update from 0.9 when I've got a 0.6.9 based application or vice
versa, and what if I'm using 0.9 and I try to ... clone? ... an
extension that hasn't a 0.9 revision now but will have in the future?

I'm sure I'm not the only person on this list who has questions like that.

-- 
The state is made for man, not man for the state That is to say the
state should be our servant and not we its slaves.
--Albert Einstein
___
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] Radiant 0.9.0 RC1

2009-10-11 Thread Anton Aylward
John W. Long said the following on 10/09/2009 10:21 PM:
 Hello!
 
 I am pleased to announce the first release candidate of Radiant 0.9.0.

Oh Goodie!

 * We’ve reduced the number of flash messages in favor of status  
 messages that pop up when you submit a form.

I'm not sure about that, I'll have to see how it interacts with my
Firefox popup-blocker.


 [...] We want to  
 encourage all extension developers to update their extensions to work  
 with 0.9.0 as the interface changes in this release are significant  
 and will break existing extensions. 

Which leads to my first question.
What testing with extension did you do in order to come up with that
observation?  You obviously know some extensions break, but which ones?
 And which ones DO work?

Much of the power of Radiant is in its extensions, so this is an
important point.

 
 As always we welcome your feedback and contributions.
 
 
 == Download  Install
 

Ah.

Any suggestions for running this along side the development of other
Radiant sites using earlier version?  For reasons of extension
compatibility and my lack of knowledge of GIT I still run a lot of 0.6.9
-- 
The least lack of discipline starts to erode our self-esteem.
   -- Jim Rohn, http://www.jimrohn.com
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] SnS Usage Questions -- I Need Feedback

2009-10-11 Thread Anton Aylward
Good idea.
I may have played with the settings and I may have omited the minifier
somewhere, but I've no objection to this, not to folding what is a key
extension into the distribution package.
-- 
Five exclamation marks, the sure sign of an insane mind.
-- Terry Pratchett _Reaper Man_
___
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] Radiant 0.9.0 RC1

2009-10-11 Thread Anton Aylward
Anton Aylward said the following on 10/11/2009 07:23 AM:

 Ah.
 
 Any suggestions for running this along side the development of other
 Radiant sites using earlier version?  For reasons of extension
 compatibility and my lack of knowledge of GIT I still run a lot of 0.6.9

'Cos I'd really like to try this for a new project I have in mind.


-- 
Perhaps I am a dinosaur, but if I saw the word hacker used positively
on a resume, I would have trouble continuing.  Hacking means using
quick and dirty means to achieve an objective without concern for
collateral damage and is totally opposite to my philosophy of first,
do no harm.
   -- Pagett Peterson, Wednesday, January 18, 2006
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] URL tags

2009-09-23 Thread Anton Aylward
John W. Long said the following on 09/23/2009 11:20 AM:

 
 I like this:
 
 r:if_blank part=my_part
 r:unless_blank part=my_part

Personally  I am tired of the if_
and prefer the more generic simple if with some parameter.
It look more natural.


-- 
   Nothing is more difficult to carry out, nor more doubtful of
success, nor more dangerous to handle, than to initiate a new
order of things.    Machiavelli
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] URL tags

2009-09-23 Thread Anton Aylward
Jim Gay said the following on 09/23/2009 03:26 PM:
 On Wed, Sep 23, 2009 at 3:00 PM, John W. Long m...@johnwlong.com wrote:
 Basically, encouraging users to have blank page parts is not something
 that I want to encourage. They should delete the object to keep the database
 clean if this is something that they desire.
 
 Users don't care about keeping the database clean. Developers might
 care, but regular content editors just want to know where to put their
 content. And the problem with deleting a page part is that the user
 needs to remember what it was called to successfully recreate it and
 have it appear in the layout.

This is particularly true if you are using templates.
The 'business process' may mean that not all the templates parts are
filled in initially.

-- 
I tell you that as long as I can conceive something better than myself
I cannot be easy unless I am striving to bring it in to existence or
clearing the way for it.
 - George Bernard Shaw
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] URL tags

2009-09-23 Thread Anton Aylward
Mohit Sindhwani said the following on 09/23/2009 09:35 PM:
 Anton Aylward wrote:
 John W. Long said the following on 09/23/2009 03:00 PM:


 Basically, encouraging users to have blank page parts is not  
 something that I want to encourage. 
 
 Not so.
 I've had to use blank page parts as flags in a number of situations
 becuase I could not solve the problem any other way.
 
 I think that is the most common use case of blank parts for me.  
 Perhaps, if there was a really easy way to add page flags?

I'm sure there are some, but they require adding an extension and using
it in some manner;

Maybe the blank page part is labelled upcoming because it means
upcoming and you could use the event manager instead; but then again
maybe it doesn't mean 'upcoming'.

Maybe you can use one of Chris Parrish's variables.  Of some complex and
arbitrary test.  Whose use isn't as obvious as a page part that
describes the flag.

But maybe you don't need all that, so just use a page part ...
Its simpler and all the code is already there.

Maybe ... lots of things.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] URL tags

2009-09-23 Thread Anton Aylward
John W. Long said the following on 09/23/2009 10:00 PM:
 On Sep 23, 2009, at 9:35 PM, Mohit Sindhwani wrote:
 Anton Aylward wrote:
 I've had to use blank page parts as flags in a number of situations
 becuase I could not solve the problem any other way.
 I think that is the most common use case of blank parts for me.   
 Perhaps, if there was a really easy way to add page flags?
 
 We've got plans for custom page attributes which would allow for  
 something like this.

Is that an extension?

Nah, the sites that work with page parts as flags are happy with 0.6..9
or a few years yet ...

-- 
Many of life's failures are people who did not realize how close they
were to success when they gave up.
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


[Radiant] Dual RSS

2009-07-29 Thread Anton Aylward
Question in two parts.

1. Can I restrict the RSS to work on only part of the pages tree?

2. Can I have *one* RSS fee on TWO parts of the tree?
   (e.g. 'Upcoming Events - /events'
and
   'Upcoming presentations - /presentations'
   )

-- 
It seems to work fairly well but composing e-mail on a phone keypad is
akin to trigonometry in binary.  -- ajtr2

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Re: [Radiant-Dev] Where can I find more themes / templates for Radiant ?

2009-05-20 Thread Anton Aylward
Dinooz said the following on 05/19/2009 02:22 PM:
 I wonder if somebody can point me on alternatives to change the look 
 feel of my Radiant Site. I'm just starting and like to see some
 examples of changing the way it looks.

I've done a number of different 'look and fee' usog the various free
site designs that are available on the net.

My favourites are the Andreas Viklund ones:
http:/andreasviklund.com/

If you don't like those, his site has links to other sites and a number
of competitions.

There are also pay-for designs.  YMMV.  Go google.

-- 
Production is not the application of tools to materials, but logic to work.
   --Peter F. Drucker

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Automating New pages

2009-03-19 Thread Anton Aylward
I'm sorry this isn't a very precise question, but I'm also searching for
ideas.

I'm trying to automate a site.  The use of CMS rather than crafted pages
is great, and would be better if I could get the staff concerned to use
Textile instead of their buggy html or importing html from Microsoft word!

But what I'd really like is some way to create new pages without them
actually having to log in.  A sort of shell script QA session.  I
realise it will need a lot of development, and I'd appreciate ideas.

Templates are good, if I can figure out creating page parts.

One of the problems I'm looking at is how to figure out the appropriate
parent page.


-- 
The Internet is not the greatest threat to information security;
stupidity is the greatest threat to information security.
  - Will Spencer will.spen...@gte.net

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Index at top of page ??`

2009-03-16 Thread Anton Aylward
Is there some way with Radiant to automatically generate an index of the
headings at the top of the page, as we see on so many sites?

I realise that I can have a

r:children:each 
* r:link /
r:content //p
/r:children:each

that would pull the sub-pages together and give the appearance of one
page, and another loop at the top for the index .

... BUT ...

I want to be able to link to the middle of that page from another page.

I can see how to link to the child page from a remote page, but not
'into' a page that has been built in this way.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Index at top of page ??`

2009-03-16 Thread Anton Aylward
Sean Cribbs said the following on 03/16/2009 11:39 AM:
 I don't understand.  Do you mean a Table of Contents?

Yes, but more than that.  I realise my subject isn't quite right but I
really don't know how to explain it in one line.

Here's the business use-model:

While many sites that list presentation and events have the speaker
bio/background on the same page as the event, our board has decided that
there will be ONE page that has ALL the speakers we have ever had
listed, along with whatever else we can get, photos, contact etc.

This means that has to be some way to link INTO that page from a remote
page, in particular the page with the event on it.


Yes, there needs to be a table of contents at the top of the page (which
is updated as new speaker details are added), but I can figure that out.
The index isn't the killer; referencing INTO the page is.


As I said, my current idea is the page-per-speaker model and the
r:children:each loop to build the page.  This takes care of the
browsable single page and the automatic update as new (child) pages get
added.  I think I can figure a ToC, but suggestions are welcomed.

While I can figure the link from the presentation page to a single
(child-of...) page for the speaker I can't figure out how to make that a
reference INTO the page built by the r:children:each loop.

I realise that I can actually have one page where the information is
edited in and the ToC is built by hand and has the relevant markers to
link to, but it seems a lot of hard work.  I though CMSs were supposed
to help you get around all that 'do-it-by-hand' stuff.


-- 
The way that can be followed is not the Way
The truth that can be told is not the Truth
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Index at top of page ??`

2009-03-16 Thread Anton Aylward
Mohit Sindhwani said the following on 03/16/2009 11:50 AM:
 I think he means anchors!  That's a good question - I have no idea how 
 to generate anchors automatically in a Radiant page.  I don't think 
 there's a direct way :(

Half way there!  Not just the anchors but some 'standard' thing so that
the anchors can be referenced in a regular and consistent and
predictable manner.


-- 
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] not one of the allowed file types

2009-03-11 Thread Anton Aylward
Here I am with a site that uses paperclipped for asset management and I
try uploading a PDF and get the above as an error message.

How do I fix that?

-- 
Whenever men take the law into their own hands, the loser is the law.
And when the law loses, freedom languishes.
  -- JFK

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Log error with Gallery

2009-03-07 Thread Anton Aylward
MtnBiker said the following on 03/07/2009 04:19 AM:
 
 
 Anton Aylward wrote:

 No, don't copy it by hand!  Do the complete job and use the proper
 method.  Use
  rake radiant:extensions:gallery:update

 I ran the rake and still get the same log error:

What was the output of running rake?

-- 
Last year I went fishing with Salvador Dali.  He was using a dotted line.
He caught every other fish.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Log error with Gallery

2009-03-06 Thread Anton Aylward
MtnBiker said the following on 03/06/2009 09:25 PM:

 AFAIK these two gif's are associated with Gallery and in particular lightbox
 which Gallery uses. But they are buried here:
 /vendor/extensions/gallery/public/images/extensions/gallery/lightbox/closelabel.gif

Ah, if that's the ONLY place they are then I suspect you have not fully
installed the gallery.  The rake for it should have copied that to
/public/images/extensions/gallery/lightbox/closelabel.gif

No, don't copy it by hand!  Do the complete job and use the proper
method.  Use
rake radiant:extensions:gallery:update

-- 
The trouble with troubleshooting is that trouble shoots back.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Conditional Tags

2009-03-05 Thread Anton Aylward
Elle Meredith said the following on 03/05/2009 01:54 AM:

 In most cases, I completely agree with you Mohit :). However, in this  
 case, the layout is exactly the same: one #main column, one #sidebar  
 -- I only want to hide h1 heading on the home page.

If you do as I do and build your layouts as a collection of snippets
then you can either have a front page layout that differs very slightly
or hide the optional heading in a more general and thus reusable
snippet.  DRY.

-- 
...Then anyone who leaves behind him a written manual, and likewise
anyone who receives it, in the belief that such writing will be clear
and certain, must be exceedingly simple-minded... -- Plato, _Phaedrus_
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Speed of Radiant on Dreamhost

2009-02-28 Thread Anton Aylward
MtnBiker said the following on 02/28/2009 09:51 AM:
 Radiant is slow for me on Dreamhost. Can take up to 3 minutes to load. Never
 less than one minute if hasn't been loaded a while. A straight HTML page
 takes seconds.
 
 Is this normal or have I done something wrong? 

Possibly.  But I suspect not.

I have half a dozen sites Dreamhosted and delays like that were never a
problem.

I have had them running from sqlite3 rather than mysql, with and without
 Passenger.  I've had other problems but never unacceptable delays.

 I've different installations of Radiant, with and without embedded Rails.
 Slow either way. After initial loading, reloading can be in seconds,
 although slower than HTML. This site will not generally get much use. It
 seems that once the site has been loaded, it loads faster. 

If this is shared hosting then you may be fighting a very basic problem
with multi-user machines.  You've been swapped out and the scheduler has
to swap you back in, and all the priority issues that go with that.

If you have a virtual machine there is the analogue of that at the
virtual layer.

Yes, I know tests show yamma yamma, but in reality the dominant thing is
that its the first 'wake-up' that is critical.

Its an operating system scheduling issue.


 I don't think
 it's caching on my machine that's doing it, because it's a small page with
 one picture. But I'm not an expert, and haven't done any testing getting rid
 of the cache, etc. The main problem is that if a stranger loads it, they'll
 likely think something is wrong and give up and that's not acceptable.

I'd suggest that you have some kind of CRON-scheduled 'tickler' that
does just enough to keep a bit of your process alive and awake but
doesn't produce such a heavy load that it impacts others.



-- 
Objects in calendar are closer than they appear.
-- Jim Duncan
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Upgrade to .07x on Dreamhost?

2009-02-25 Thread Anton Aylward
K H said the following on 02/25/2009 01:20 PM:
 I have a radiant 0.7.1 site on Dreamhost. I ran into some troubles  
 early on because Passenger would not recognize my local gems. But  
 adding the following line to the top of /config/environment.rb solved  
 the problem for me.
 
 ENV['GEM_PATH'] = '/home/your user name/.gems'
 
 Hope this helps.

No it doesn't.
BTDT and it doesn't -- I'm running 0.6.9 on a hosted not virtual machine.

I've also confirmed the problem with Dreamhost support.

I've also discussed this here before had that suggestion, which is how I
know it doesn't work.   Unless they've changed something in the last 9
weeks.


-- 
First they ignore you, then they laugh at you, then they fight you,
then you win.  -- Mahatma Gandhi
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Upgrade to .07x on Dreamhost?

2009-02-25 Thread Anton Aylward
K H said the following on 02/25/2009 01:20 PM:

 Hope this helps.

My question was about UPGRADING from 0.6.9 to 0.7.1
The Gem thing is incidental.


-- 
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


[Radiant] Problems with templates_extension

2009-02-24 Thread Anton Aylward
I'm trying to us this with a 0.6.9 base implementation and get lots of
errors like

`type_column_header' default partial not found!`type_column' default
partial not found!`type_column' default partial not found!`type_column'
default partial not found!`type_column' default partial not
found!`type_column' default partial not found!`type_column' default
partial not found!`type_column' default partial not found!`type_column'
default partial not found!`type_column' default partial not
found!`type_column' default partial not found!`type_column' default
partial not found!`type_column' default partial not found!`type_column'
default partial not found!`type_column' default partial not
found!`type_column' default partial not found!`type_column' default
partial not found!`type_column' default partial not found!`type_column'
default partial not found!`type_column' default partial not
found!`type_column' default partial not found!`type_column' default
partial not found!`type_column' default partial not found!`type_column'
default partial not found!

I suspect I have a 0.7 version of templates.
Either ... where can I get a 0.6.9 one or what do I have to do to get it
to act like one suitable for a 0.6.9 site?

Thanks





-- 
I will not attack your doctrines nor your creeds if they accord liberty
to me. If they hold thought to be dangerous - if they aver that doubt
is a crime, then I attack them one and all, because they enslave the
minds of men.
--Robert Ingersoll (The Ghosts)

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Include a page

2009-02-20 Thread Anton Aylward
I'm aware of
http://github.com/rp8/radiant-include-tag/tree/master
that will allow a HTML file to be included, but is there a tag which
will include another page or page part without doing a specific seek?

What I'd really like is to have a list of events, each on their own
page, but a synopsis of the next upcoming one to be displayed on the
main page.


-- 
Error of opinion may be tolerated where reason is left free to combat it.
--Thomas Jefferson, First Inaugural Speech (1801)

___
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 what doesn't work with 0.7?

2009-02-10 Thread Anton Aylward
N. Turnage said the following on 02/09/2009 10:17 PM:

 Mohit Sindhwani wrote:
 N. Turnage wrote:
 Since this question is going to be asked a number of times as people 
 begin to move their sites to v0.7 I thought I would begin the thread. 
 What extensions are known not to work with v0.7? 
 Could we make this a page on the wiki instead?  May I request that 
 people who have written extensions and have an explicit tag that works 
 for 0.6.9 and below and a trunk that works on 0.7.0 and later make it 
 known there?

 This will make my job of working through the content for 0.7.0 
 easier.  If someone needs a template, I can try to create the main 
 page on the wiki for this.
 
 That's a great idea, Mohit. I would think the following info should be 
 included:
 
 - name of extension (of course)
 - github project url
 - latest commit known to be working with 0.6.9 if no tag exists

And that Wiki page should have a few lies for those of us who are not
git-gurus on how to use - aka download from - one tag or the other.

Thanks.

A git-diot.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] How to make your website really, really fast

2009-02-10 Thread Anton Aylward
http://blogs.zdnet.com/weblife/?p=207tag=nl.e539

Some interesting ideas here, since so many of our sites are interactive.

-- 
The truth of a proposition has nothing to do with its credibility.
And vice versa.
Excerpt from the notebooks of Lazarus Long,
from Robert Heinlein's Time Enough for Love
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Which Ba ?

2009-02-04 Thread Anton Aylward
john muhl said the following on 02/03/2009 08:28 PM:
 http://github.com/aslakhellesoy/ba/network
 
 looks like while there are some other forks their either not active or
 get merged with the aslakhellesoy repository regularly.
 
 On Tue, Feb 3, 2009 at 3:06 PM, Anton Aylward anton.aylw...@rogers.com
 mailto:anton.aylw...@rogers.com wrote:
 
 I'd like to try out the conference/event management system 'Ba' that I
 see on GitHub.
 
 However there are 4 different copies, and one says it will blow away the
 database on installation!
 
 Can someone advise on which to use, please.

Sorry to be bottom posting in reply to a top-post reply, but there you
are 

John, could you read over my question again.

The aslakhellesoy branch is not an extension.  It is a complete
installation.  The README.textile says to create a new clone and do a
complete bootstrap, blowing away all you already have.

I don't want to do that.  That's why I phrased my question the way I did.

There area few other branches.  OMA, JHANNES, OC.
OC and JHANNES seem to be a clone of the ASLAKHELESOY
OMA (Ole Morten Amundsen) seems to be a proper extension as far as the
code goes, but the installation instructions haven't changed, which is
very confusing.

I don't want to blow away my current application.

-- 
I like to believe that people in the long run are going to do more to
promote peace than our governments. Indeed, I think that people want
peace so much that one of these days governments had better get out of
the way and let them have it.
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] Which Ba ?

2009-02-04 Thread Anton Aylward
Saša Babić said the following on 02/04/2009 09:38 AM:
 Anton Aylward wrote:
 I don't want to blow away my current application.
 
 I'm curious why do you find blowing it away such a problem? 

I'm curious as to why someone supplied it as an extension and others
didn't, but the one that didn't is the one 'recommended'.

 Can't you
 replicate the setup? Just branch* the application (you do use a 
 repository, don't you?), 

No.  Not everyone does or has reason to.

 clone the database, and you're set.

Its more than just cloning the DB

It seems like a lot of fiddly work compared to how I've installed other
extensions.

This attitude - 'hacking' - says something about how 'user friendly'
some people think radiant is.  Sean, Jim, Chris and others ave all done
very nice, easy to install, easy to use, easy to understand, ADDITIVE
packages.

*sigh*

-- 
Age is a very high price to pay for maturity.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Which Ba ?

2009-02-03 Thread Anton Aylward
I'd like to try out the conference/event management system 'Ba' that I
see on GitHub.

However there are 4 different copies, and one says it will blow away the
database on installation!

Can someone advise on which to use, please.

-- 
life, n.:
  A whim of several billion cells to be you for a while.

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Help!! - SQLite3::BusyException (database is locked)

2009-01-15 Thread Anton Aylward
Andreas Roedl said the following on 01/15/2009 12:46 PM:

 
 Try to set a timeout in your database.yml as described in the last
 post of this thread:
 
 http://www.ruby-forum.com/topic/138904

Done that.  Restarted Passenger ...
Still locked.  Now it takes about 10 seconds to come back with the 500
page instead of being immediate.

How do I unlock it?

This is the tail end of the log file:

  Page Load (0.004572)   SELECT * FROM pages WHERE (pages.id = 1)

  PagePart Load (0.007668)   SELECT * FROM page_parts WHERE
(page_parts.page_id = 3) ORDER BY id

WARNING: Can't mass-assign these protected attributes: id

WARNING: Can't mass-assign these protected attributes: id

  Page Load (0.005181)   SELECT * FROM pages WHERE (pages.slug = 'rss'
AND pages.parent_id = 1 AND pages.id  3) LIMIT 1
  Page Update with optimistic locking (0.006955)UPDATE pages

 SET keywords = '', created_at = '2007-01-19 03:04:44',
event_datetime = NULL, layout_id = 3, created_by_id = 1, virtual
= 'f', posi
tion = 12, updated_by_id = 2, title = 'RSS ', published_at =
'2007-01-18 22:04:44', breadcrumb = 'RSS ', class_name = 'Page',
descrip
tion = '', parent_id = 1, updated_at = '2009-01-15 18:15:55',
status_id = 100, lock_version = 3, slug = 'rss'

 WHERE id = 3

 AND lock_version = 2




SQLite3::BusyException (database is locked):

/usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/errors.rb:94:in
`check'
/usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/resultset.rb:76:in
`check'
/usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/resultset.rb:68:in
`commence'
/usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/resultset.rb:61:in
`initialize'
/usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/statement.rb:163:in
`new'
/usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/statement.rb:163:in
`execute'
/usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/database.rb:212:in
`execute'
/usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/database.rb:187:in
`prepare'
/usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/database.rb:211:in
`execute'
/usr/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.1/lib/sqlite3/database.rb:611:in
`commit'
/usr/lib/ruby/gems/1.8/gems/radiant-0.6.9/vendor/rails/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb:160:in
`commit_db
_transaction'



-- 
Make up your mind to act decidedly and take the consequences. No good is
ever done in this world by hesitation.
Thomas H. Huxley
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Help!! - SQLite3::BusyException (database is locked)

2009-01-15 Thread Anton Aylward
Sean Cribbs said the following on 01/15/2009 03:27 PM:
 Do you have a rogue/zombie process that has a lock on the SQLite3 db? 
 I'd say sweep out any mongrel processes (or restart Apache if you're
 using Passenger) and try again.

Its hosted at Dreamhost but I've tried killing everything in my ID
except the login shell.

NIX

-- 
Life is full of contradictions No it isn't.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Help!! - SQLite3::BusyException (database is locked)

2009-01-15 Thread Anton Aylward
Nate Turnage said the following on 01/15/2009 03:27 PM:

 
 Ah, sorry. This begs the question then, is there any kind of way of
 accessing an SQLite from the terminal to run SQL statements on it?

./scripts/console production

a = Page.find(:first)

Yup, works.

a.save

Nope, busyexception message.

I can also do

$ sqlite3 radiant_live.sqlite.db
SQLite version 3.2.1
Enter .help for instructions
sqlite


What now?


-- 
...there is no reason anyone would want a computer in their home.
Ken Olson, President, Chairman, and Founder of DEC, 1977
___
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 and IBM DB2

2009-01-13 Thread Anton Aylward
Johannes Fahrenkrug said the following on 01/13/2009 03:39 AM:
 Hi Anton,
 
 Thanks for your reply.
 
 The Ruby on rails book - the Pickaxe book - discusses how to use RoR
 with legacy databases.  I'd recommend looking at that.
 
 You mean the Agile Web Development with Rails book?
 
 In short, the answer is YES, but you need to have some other database to
  act as a 'shim' of some kind.
 
 Could you explain that a bit further?

I could copy out the section of the book ... but that gets into
copyright violation issues.

It may be that the DB2 tables don't have a field id.  So how are you
going to have ROR access them?  You have a 'shim' database that works
with id and maps that to the index of the DB2 table.


-- 
Hackers:
   Self-righteous crackers
  -- CSO Magazine's The Devil's Infosec Dictionary
___
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 and IBM DB2

2009-01-13 Thread Anton Aylward
Johannes Fahrenkrug said the following on 01/13/2009 08:00 AM:
 Hi Anton,
 
 
 It may be that the DB2 tables don't have a field id.  So how are you
 going to have ROR access them?  You have a 'shim' database that works
 with id and maps that to the index of the DB2 table.
 
 Ok, I see. Yes, the missing id column problem will have to be solved.
 I think Dr. Nic has written a plugin to support multi-column primary
 keys. That might be what I'll need.

I'd still consult the RoR book and other sources.
I seem to recall viewing a podcast about this once but don't recall teh
source.

-- 
If you're not part of the solution, you're part of the precipitate.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: Default Extension Proposal (was - Re: [Radiant] Re: Looking for something similar to summarize...)

2009-01-13 Thread Anton Aylward
Nate Turnage said the following on 01/13/2009 10:01 AM:
 
 b) Less tech-savvy developers being able to modify things without
 necessarily having to create an extension, a task that sounds very
 demanding and daunting.

Sounds like me ;-)

 What do you think?


 +1

+256

-- 
December 32, 1999: We're pleased to report no Y2K failures!
___
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 and IBM DB2

2009-01-12 Thread Anton Aylward
Johannes Fahrenkrug said the following on 01/12/2009 12:08 PM:
 Hi,
 
 I'm new to the list and relatively new to Radiant. I'm evaluating
 Radiant for a mid-sized customer project. The customer has a legacy
 DB2 database. Replacing it is not an option for the customer. So my
 question is: can I use Radiant with DB2? Does anyone have any
 experience doing this?

The Ruby on rails book - the Pickaxe book - discusses how to use RoR
with legacy databases.  I'd recommend looking at that.

In short, the answer is YES, but you need to have some other database to
 act as a 'shim' of some kind.

-- 
Concern for people and their fate must always form the chief interest of
all technical endeavors in order that the creations of our mind shall be
a blessing, not a curse, to humanity. Never forget this amidst your
diagrams and equations.
-- Albert Einstein
___
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 Aylward
Anton J Aylward said the following on 12/09/2008 07:04 PM:
 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.

That line now reads
% stylesheet_link_tag(admin/auto_complete) %

The UI is #$%^-ing awful!  Its unclear and comes down over other
buttons.  Perhaps I have that link tag done incorrectly.



-- 
We'll give you your money back if not satisfied, but we do suspect that
we will be quite satisfied with your money.
___
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

2008-12-06 Thread Anton Aylward
Nate Turnage said the following on 12/04/2008 12:36 PM:
 On Thu, Dec 4, 2008 at 11:23 AM, Anton Aylward [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 I've just returned to a blogging engine to do an upgrade and realised I
 know and like Radiant more.
 
 What does it take to do good blogging in Radiant?  Is there a convenient
 list of what plug-ins are required, templates and so forth?
 
 
 
 This is one of the things that is very well covered in the Summer Reboot
 documentation. Seriously, can we just call this the Reboot Wiki or
 Reboot Documentation or something? The summer is well and truly over.
 Just a suggestion.
 
 Anyway, here is a link to the page:
 http://wiki.radiantcms.org/Using_Radiant_as_a_Blog

That you.
That's proven most useful ;-)

All we need now is that the template competition include some examples
of the fragments of pages  snippets and layouts for blogs.

Sadly, I see too many such 'competition' that rely purely on the overall
looks and not on what it takes to make them work. One can easily - I
have - lift one of the free templates (the designs by Andreas Viklund
are good examples and I've converted a number to run with Radiant, and
find the page_part  inheritance a wonderful too that other CMSs 
blogging engines lack -- http://andreasviklund.com/) and adapt that, but
still flounder with the details.

Residual blogging questions:

  * Is there anything like xmlrpc for remote submission?
  * Is there anything akin to register before commenting?
  * Is there a way to do comments are now disabled?

-- 
It's not true unless it makes you laugh,
 but you don't understand until it makes you weep.
 -- Shea and Wilson,
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] Radiant for Blogin

2008-12-04 Thread Anton Aylward
I've just returned to a blogging engine to do an upgrade and realised I
know and like Radiant more.

What does it take to do good blogging in Radiant?  Is there a convenient
list of what plug-ins are required, templates and so forth?

Thanks.

-- 
A little inaccuracy can save tons of explanation.   -- Saki

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Using Radiant unpacked?

2008-10-08 Thread Anton Aylward

Casper Fabricius said the following on 08/10/08 09:57 AM:

Hi Simon,

I'd recommend to do a

git clone git://github.com/radiant/radiant.git my_radiant_app

instead. Remember to create a database.yml file and to create the  
mysql database on DH.


*sigh*
I had just got my head around SVN when you guys switched to GIT and 
using the various repositories via the web isn't as 'obvious' as it was 
with SVN.


I tried the above and wow!  But how do I figure out all teh add-ons?

More specifically, how do I upgrade a site running a 0.5 release and 
make it 'updateable' now that we have GIT?  I know I'll have to clean 
out all the .svn* directories and files, but what else?



--
...Then anyone who leaves behind him a written manual, and likewise 
anyone who receives it, in the belief that such writing will be clear 
and certain, must be exceedingly simple-minded... -- Plato, _Phaedrus_

___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Adminstrator and Developer role clarification

2008-06-22 Thread Anton Aylward
Chris Parrish said the following on 21/06/08 11:51 PM:

 John,  have you ever considered changing the name developer to 
 designer?  I think it'd be more clear.

Why?

A 'developer' is someone who develops content.
This is obvious to anyone except a programmer.

-- 
In order to dial out, it is necessary to broaden one's dimension.
___
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: Adminstrator and Developer role clarification

2008-06-22 Thread Anton Aylward
Jonathan McCoy said the following on 22/06/08 12:59 PM:
 Anton Aylward wrote:
 Chris Parrish said the following on 21/06/08 11:51 PM:

 A 'developer' is someone who develops content.
 This is obvious to anyone except a programmer.
 
 Huh??
 
 I think it's fairly useful to define the difference between a Content 
 Manager, Designer and Developer - because frankly there's a big 
 difference.
 
   Developer = Web Developer = RoR[etc]/DB/XML/XHTML/CSS
   Designer = Web Designer = HTML/CSS
   Content Manager = Idiot = Copywriter/Editor
 
 Developers open TextMate, Designers open DreamWeaver and Content 
 Managers can't switch on their computer. - Pretty much says it all.

Why are you being insulting?

The whole point is to have content.
Without content a web site is just an academic exercise in programming.


-- 
The quality, not the longevity, of one's life is what is important.
--Dr. Martin Luther King Jr
___
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: Re: Adminstrator and Developer role clarification

2008-06-22 Thread Anton Aylward
Jonathan McCoy said the following on 22/06/08 02:38 PM:
 Anton Aylward wrote:
 The whole point is to have content.
 Without content a web site is just an academic exercise in programming.
 
 That theory is great, when one person designs, builds and manages a 
 site.
 
 But as soon as you have more than one person involved in the management 
 of a site, as with any business function, tasks and responsibilities are 
 delegated to the appropriately trained and graded staff. Security, 
 authorization/editorial and responsibility becomes even more important, 
 the larger the team becomes.
 
 Role based access has nothing to do with  Design Versus Content, but 
 the logical separation of discrete roles.

Indeed.
That's not the point I'm arguing about.
For most businesses the business value of the site is reflected by the
content.  The infrastructure (and those roles) is essential to the
delivery of the content, but without the content - why bother?

Calling the people who manage the content, the writers and editors
Idiots as you did is insulting, just as insulting as calling people
like John Long, Sean Cribbs and Chris parish coding jerks.

In fact the case can be made that the content is 'ongoing' whereas code
can be 'frozen'.

-- 
Very few profundities can be expressed in less than 80 characters.
___
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: Re: Re: Adminstrator and Developer role clarification

2008-06-22 Thread Anton Aylward
Jonathan McCoy said the following on 22/06/08 03:12 PM:
 Anton Aylward wrote:
 blah
 
 Whatever. Nice argument. Sadly it fell apart shortly after For most 
 businesses The reality is quite different, and I can assure you 
 that the ability to write copy, doesn't provide you with the competence 
 to make design or technical decisions. 

I never said it did.
I wasn't denigrating those roles.

Unlike you I wasn't denigrating any roles.
All have to play their part.

Calling the people involved in content development Idiots as you did
is insulting.

-- 
As a goatherd learns his trade by goat, so a writer learns his trade by
wrote.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Textile in Radiant

2008-06-06 Thread Anton Aylward
Thomas Watson Steen said the following on 06/06/08 09:05 AM:
 Well... As the link explains, the 'caps' span is there so that we can  
 style acronyms. This is very strange to me. How come the people who  
 implementet this didn't use the already existing acronym tag in  
 HTML for this?
 
 http://www.w3schools.com/tags/tag_acronym.asp

Possibly because its not forward compatible:

http://www.w3schools.com/tags/html5_acronym.asp



-- 
You've never been lost until you've been lost at Mach 3.  -- Paul F
Crickmore
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Extensions trouble in 0.6.7

2008-06-03 Thread Anton Aylward
Shards in 0.6.7 

In my efforts to migrate I found this:
http://blog.leetsoft.com/2006/5/29/easy-migration-between-databases

But when I tried it I got

$ radiant -v
Radiant 0.6.7
$ rake production  db:backup:write
(in /home/anton/Ruby/Radiant)
rake aborted!
The Shards extension is required and must be loaded first!


What's up?


-- 
Education must precede motivation. Jim Rohn
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] Questions about deployment

2008-06-03 Thread Anton Aylward
Thank you for this, Casper.
I'm a Dreamhost customer and and this has cleaned up some 'failed to
start' problems I've been having.
Its also made deploying some examples I have on my laptop easier since
now I can just have Apache deal with them on an as-needed basis instead
of having to do a cd ~/Ruby/application; ./script/server  each time.

However there is one aspect of deploying on Dreamhost that I'd like to
ask the group here about, and that is getting the content of the
database out there.

My first deployment of Radiant on Dreamhost last year I had developed on
my laptop using SQlite3.  The laptop runs Linux, not Windows.  I used a
CSS file in the file system (lacking sophistication and understanding of
Radiant at that time).  I SFTP'd the files, including the database, to
the Dreamhost machine but the application wouldn't start.  It couldn't
open the database.  I don't know if this was a word-length, library or
version problem.  The application content was small enough that I could
create a new database on Dreamhost and paste the pages in.

Radiant is more sophisticated now.  The sites I'm developing use
extensions such as attachments, galleries, and of course the brilliant
styles_n_scripts.  Even before the site content is added there is a lot
of the site structure in the database now.  And before adding 'real'
content I find that I lay out the hierarchy/structure and few pieces of
boilerplate like a 'site map', 'About', and content and feedback pages.

So I have a very simple problem of how do I get this database that I've
developed as a the template or basic site content out to Dreamhost?

Reality is that by the time I've worked a bit it is more than just a
template, not least of all because the actual CSS and actual logos and
and snippets that deal with names etc are in the database too, as well
as many place-holders.  You know how it goes.

I've just spent a very futile week prior to deploying my new web site on
Dreamhost trying to convert a Sqlite3 database to a MySQL database on my
laptop.  I tried this so that I could debug any problems ahead of time.

There have been nothing but problems.  I have had no success.

I started with the import/export extension.  It doesn't work.  At the
very least it only knows about some of the tables.  I corresponded with
Sean about the problem and tried his suggestions.  Zilch.

I also searched the web.  There are many articles about converting
Sqlite3 to MySQL.  The ones on the MySQL site are plain wrong!  Others
admit to things like differencing SQL syntax but their 'fixes' are
incomplete.  Even after much hand editing of the Sqlite3 .dump file
MySQL kept erroring. Some problems I could not find any reason for even
though the revised syntax was A-OK according to the MySQL documentation.

Chris Dwan posted a tool that allowed copy from one DB to another.
http://blog.radixhound.com/2008/4/28/backing-up-radiant-cms-using-sqlite3
I'm going to try this today on my laptop.  I'll report on how it goes.

However there is still the problem of getting the database running on
Dreamhost and getting content into it there.

The reason I'm writing about this at length is that I am very surprised
that Rails doesn't have tools for all this as part of its baseline.
Rails2 has moved to Sqlite3 as its default, and that's fine for
development.  But I get to wonder if there are going to be more projects
that are like Radiant in that the database has a template and structure
that is part of the application and needs to be 'portable' as well.

Rails really needs something that can do database export/import in a
comprehensive and complete manner.


Casper Fabricius said the following on 03/06/08 03:17 AM:
 Hi Nate,
 
 I recently updated the guide for deploying Radiant to Dreamhost,  
 another shared host:
 http://wiki.radiantcms.org/How_To_Deploy_on_Dreamhost
 
 I don't know Railsplayground, but assuming you have SSH access you  
 should be able to follow this guide, substituting the steps for  
 creating the website and a database with whatever you do at  
 Railsplayground. Also, my blog entry has examples of rolling two  
 popular extensions into the deployment package:
 http://casperfabricius.com/blog/2008/05/24/radiant-cms-on-dreamhost-with-phusion-passenger/

-- 
Expecting life to treat your fairly because you are a good person is
like expecting an angry bull not to charge because you are a vegetarian.
   -- Shari R Barr
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


  1   2   >