Re: [Radiant] Problem unsolved: Multiple languages for content

2009-08-08 Thread Haselwanter Edmund


Hi, I have another question concerning languages:



On Thu, Aug 6, 2009 at 10:15 PM, john muhljohnm...@gmail.com wrote:

could you just ask your snippet to give the right urls?

r:if_url matches='^/de'
r:navigation urls=home: /de/home | ueberuns: /de/ueber_uns/ |
kontakt: /de/kontakt/
/r:if_url
r:if_url matches='^/en'
r:navigation urls=home: /en/home | aboutus: /en/about_us/ |  
contact:

/en/contact/
/r:if_url


Is it possible to tell a page a language for rendering r:date/ ?

I tried to set a default language for the whole rails app in  
environment.rb (defaulting to :de)


but

1) It did not change the r:date/ behaviour
2) It did break the admin area (I guess for the config option to be  
able to set the published date)


cu edi

--
DI Edmund Haselwanter, edm...@haselwanter.com, http://edmund.haselwanter.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] Problem with language_transliterate mailer extension

2009-08-08 Thread exitseven
Hey,

thanks for the hint. This is what I have now:

config.extensions = [ :reorder, :page_attachments, :mailer, :all ]

The problem is, that mailer is listed under extensions, but I can not
select the page type mailer from the dropdown menu on a page.
mailer is not listed as it should.

Any ideas?

rainer

On Fri, Aug 7, 2009 at 10:17 AM, subsor...@gmail.com wrote:
 I'm not familiar with the extension you are having problems with but until
 someone else helps out have you tried specifying the extensions load order
 in environment.rb?


 On 7 Aug 2009, at 08:12, exitseven wrote:

 Good Morning,

 I have the language_transliterate extension
 (git://github.com/kranthi/language_transliterate_local.git) installed
 and it worked fine until I git cloned the mailer extension. Now
 everything I type gets somehow translated into arabic characters. And
 there is usually a dropdown called Type in provided by this
 extension, where you can choose the language you are typing in. But
 this dropdown is empty now.  As soon as I move the mailer dir out of
 the extensions dir language_transliterate is working again.

 Any hint so solve this problem?

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

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

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


[Radiant] Trouble Setting Up New 0.8 Site

2009-08-08 Thread Alexis Masters

Hello group!
I am eager to try Radiant 0.8, but every time I try to set up a site  
with it, I have so much trouble that I revert back to 0.7.1. I have  
found where others are having the same problem I am having but cannot  
find a solution anywhere.


Can someone kindly help me figure this out? Here's a link to a post  
that clearly states the problem:

http://lists.radiantcms.org/pipermail/radiant/2009-July/013327.html

Thanks very much,
~ Alexis
=
Alexis Masters, author
http://www.alexismasters.com
510 234-0027



On Aug 8, 2009, at 10:00 AM, radiant-requ...@radiantcms.org wrote:


Send Radiant mailing list submissions to
radiant@radiantcms.org

To subscribe or unsubscribe via the World Wide Web, visit
http://lists.radiantcms.org/mailman/listinfo/radiant
or, via email, send a message with subject or body 'help' to
radiant-requ...@radiantcms.org

You can reach the person managing the list at
radiant-ow...@radiantcms.org

When replying, please edit your Subject line so it is more specific
than Re: Contents of Radiant digest...


Today's Topics:

  1. Re: Search, 0.8.0 and Sqlite3 (Rafael Carvalho)
  2. Re: Problem unsolved: Multiple languages for content (exitseven)
  3. Warning: already initialized constant (Pablo Barboza)
  4. route_handler extension - what can I do when there's no
 parameters? (Rafael Carvalho)
  5. Re: Problem unsolved: Multiple languages for content
 (Haselwanter Edmund)
  6. Re: Problem with language_transliterate  mailer extension
 (exitseven)


--

Message: 1
Date: Fri, 7 Aug 2009 14:02:29 -0300
From: Rafael Carvalho rafaelmcarva...@gmail.com
Subject: Re: [Radiant] Search, 0.8.0 and Sqlite3
To: radiant@radiantcms.org
Message-ID:
346df7c10908071002p16f36aa3sf6038f6a70c1b...@mail.gmail.com
Content-Type: text/plain; charset=ISO-8859-1

2009/8/7 Jim Gay j...@saturnflyer.com



That work is a fork of adsmart's branch which adds some migrations to
select whether or not an individual page part is searchable.
http://github.com/adsmart/radiant-search-extension/tree/master



I liked it with searchable option, but I had some problems with this
branch. Your's works fine.
So, I prefer wait until you update your branch.

Thanks for made It.

--
Rafael Carvalho


--

Message: 2
Date: Fri, 7 Aug 2009 19:18:31 +0200
From: exitseven exitse...@gmail.com
Subject: Re: [Radiant] Problem unsolved: Multiple languages for
content
To: radiant@radiantcms.org
Message-ID:
bb6728e00908071018u10a73b7ao5072597c9400c...@mail.gmail.com
Content-Type: text/plain; charset=ISO-8859-1

Hey John,

thanks for the hint. At a first sight this seems to work pretty good.

Thanks!!
rainer

On Thu, Aug 6, 2009 at 10:15 PM, john muhljohnm...@gmail.com wrote:

could you just ask your snippet to give the right urls?

r:if_url matches='^/de'
r:navigation urls=home: /de/home | ueberuns: /de/ueber_uns/ |
kontakt: /de/kontakt/
/r:if_url
r:if_url matches='^/en'
r:navigation urls=home: /en/home | aboutus: /en/about_us/ |  
contact:

/en/contact/
/r:if_url

still some duplication but much less and duplicating layouts

On Thu, Aug 6, 2009 at 2:06 PM, exitsevenexitse...@gmail.com wrote:

Hey again,

sorry, I'm still looking around for a solution. I stumbled over an  
old

post of someone having the same problem
(http://www.ruby-forum.com/topic/133019). He writes exactly about  
what

I need. But besides I am unable to install the Language Redirect
extension, it is not exactly what I need.

I have to page trees:

1) /de/page
2) /en/page

The /de-tree is working fine. The user should now be able to hit a
link English version on the site and should then get to the
/en-tree-contents.

So far not a problem. The user gets to for example /en/home. But  
from

now on he should only get contents from the /en-tree:

/en/home/
/en/about_us
/en/contact
/en/...

I use a snippet to render the menu:
r:navigation urls=home: /de/home | ueberuns: /de/ueber_uns/ |
kontakt: /de/kontakt/

Do I have to double every layout I have into an /en- and an
/de-version? I thought there is propably some extension that
automatically routes every /de-request to the /en-tree if the user
requested the english version of the site one time by clicking the
English version link.

Hopefully you understand the problem and there is an answer  
somewhere outside...


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


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




--

Message: 3
Date: Fri, 7 Aug 2009 17:43:11 -0300
From: Pablo 

[Radiant] Ajax with mailer extension

2009-08-08 Thread Greg Dart

Hello,

I'm new to Radiant (and fairly new to Rails) so please be gentle

I've got a contact form working using the Mailer Extension - the contact form 
is in a snippet on the sidebar of the home page. What I would like to achieve 
is that when the contact form is submitted and the email successfully sent, 
rather than redirecting to a new page, I'd like an AJAX like effect to change 
the heading of the contact form to Mail Sent!.

Based on research to date, I'm trying to follow articles about RJS and so I've 
tried adding the following to the  
../vendor/extensions/mailer/app/mail_controller.rb file: 

   page.replace_html 'contactmsg', 'Mail Sent!'

Where 'contactmsg' is the id of a div in the snippet. But I get errors about 
unknown variable page. Reading further, I realise this kind of stuff should 
be in an .rjs file, in a view directory? But Radiant projects don't have 
views do they...? So how can I achieve an RJS or AJAX like effect to update 
one part of the page based on some logic happening in a controller?

If I'm going about this in completely the wrong way please feel free to 
re-direct me...

Thanks,
Greg


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