Re: [Radiant] Radiant Sprint & Summer Reboot

2008-10-22 Thread jeff

Howdy all,

I am a mediocre programmer so don't expect much from me ;) However I  
have just discovered the "Help" extension from saturnflyer which I am  
liking a lot. I am therefore going to be writing some help files for  
other extensions that will display on the "Help" extension page.


I will send these files to the relevant extension owner (Or do a pull  
request in github).


I am also eyeing the page_groups extension because it is a tad out of  
date, it needs one change to make it work in rails 2.1 and it could  
also do with a few new features (Such as displaying group access on  
the "List" view that is enabled by the epnymous extension).


Cheers

Jeff

引用 Mohit Sindhwani <[EMAIL PROTECTED]>:


As you guys know, this weekend (24th - 26th Oct, 2008) is the Radiant
Sprint Weekend where we are looking forward to getting a lot of code
and features cranked out - so, a big thanks and good luck to the guys
who are going... we hope that we'll get mini-updates as things progress
:)

That said, I'd like to invite the rest of the community (those who
can't make it there for some reason or the other) to find something in
the Radiant ecosystem that they can write about! I'm hoping that while
the coders hack, some of the rest of us can document things like
extensions, etc. to get things moving on that front.

For my part, I'll try to add 2 or 3 things over the weekend - I'm
hoping to strip out some of the details of the 'Comments' extension
(from the article on using Radiant as a blog) to a separate piece, add
something about Gallery and may be 1 or 2 more items.

Given their high level of use, I'm hoping someone can add something for
Paperclipper, SnS, Multi-site and PageAttachments.


[Details]
Naturally, the Summer Reboot project outline is:
http://wiki.radiantcms.org/Summer_Reboot

[Samples]
An example of documenting an extension with screen shots, known
problems, etc. is: http://wiki.radiantcms.org/Copy_and_Move

Alternatively, you could help by documenting (on the basis of the
mailing list or your experience) a frequently asked question/ tip for
troubleshooting (Appendix C). An example is:
http://wiki.radiantcms.org/Intermittent_Errors_with_SQLite_on_Windows

You could choose to document something that's already in the outline,
or you could add your own item. Don't worry about which chapter it goes
into. Just create it first - if worried, create a new chapter called
'Uncategorized Items' and add it under that - we'll catalog it
somewhere proper later.

[How to]
1. In my opinion, the simplest way to start is to update the Summer
Reboot main page first and mark something as a wiki link by enclosing
the text between [[ and ]]. For example, if you have this entry:

# Gallery – Image galleries

you could make Gallery a wiki link by changing it to [[Gallery]] - when
you save the page, there will be question mark next to Gallery in the
page:

* Gallery? - Image galleries

2. Click on the question mark and the wiki will fill out the correct
details and take you to a page where the content is empty. Just start
typing out what you want to say.

3. Authentication: when you click on 'Edit' you will be asked for a
password and e-mail. Enter your email address and any password of your
choice when you go there the first time. An account is auto-created for
you. Just use that e-mail and password henceforth. There is NO separate
registration.

4. The wiki uses Textile markup - there's a link next to the Edit Box
of a page that will take you to Textile help.

5. The page title and main heading will be the same as the link you
clicked. DO NOT change it - if you change it, you will need to link in
that page again.

6. If you want to see another page's Textile markup (as reference or
whatever), my recommendation would be to open it in another window and
then click on edit. DO NOT click on 'cancel' to cancel the editing
(i.e. exit without saving) - somehow, this triggers Junebug wiki to
treat it as a new version if no changes are made. Just close the window
or click on back.

7. Images: The wiki doesn't allow image attachments. You'll need to put
it on a publicly accessible site and link to it using Textile. If you
have problems with a public site, let me know by email "tech {at} onghu
dot com" - I could put it up for you on my site and send you the links.

Hope this helps.

Cheers,
Mohit.
10/23/2008 | 11:49 AM.




___
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] Radiant Sprint & Summer Reboot

2008-10-22 Thread Mohit Sindhwani
As you guys know, this weekend (24th - 26th Oct, 2008) is the Radiant 
Sprint Weekend where we are looking forward to getting a lot of code and 
features cranked out - so, a big thanks and good luck to the guys who 
are going... we hope that we'll get mini-updates as things progress :)


That said, I'd like to invite the rest of the community (those who can't 
make it there for some reason or the other) to find something in the 
Radiant ecosystem that they can write about! I'm hoping that while the 
coders hack, some of the rest of us can document things like extensions, 
etc. to get things moving on that front.


For my part, I'll try to add 2 or 3 things over the weekend - I'm hoping 
to strip out some of the details of the 'Comments' extension (from the 
article on using Radiant as a blog) to a separate piece, add something 
about Gallery and may be 1 or 2 more items.


Given their high level of use, I'm hoping someone can add something for 
Paperclipper, SnS, Multi-site and PageAttachments.



[Details]
Naturally, the Summer Reboot project outline is: 
http://wiki.radiantcms.org/Summer_Reboot


[Samples]
An example of documenting an extension with screen shots, known 
problems, etc. is: http://wiki.radiantcms.org/Copy_and_Move


Alternatively, you could help by documenting (on the basis of the 
mailing list or your experience) a frequently asked question/ tip for 
troubleshooting (Appendix C). An example is: 
http://wiki.radiantcms.org/Intermittent_Errors_with_SQLite_on_Windows


You could choose to document something that's already in the outline, or 
you could add your own item. Don't worry about which chapter it goes 
into. Just create it first - if worried, create a new chapter called 
'Uncategorized Items' and add it under that - we'll catalog it somewhere 
proper later.


[How to]
1. In my opinion, the simplest way to start is to update the Summer 
Reboot main page first and mark something as a wiki link by enclosing 
the text between [[ and ]]. For example, if you have this entry:


# Gallery – Image galleries

you could make Gallery a wiki link by changing it to [[Gallery]] - when 
you save the page, there will be question mark next to Gallery in the page:


* Gallery? - Image galleries

2. Click on the question mark and the wiki will fill out the correct 
details and take you to a page where the content is empty. Just start 
typing out what you want to say.


3. Authentication: when you click on 'Edit' you will be asked for a 
password and e-mail. Enter your email address and any password of your 
choice when you go there the first time. An account is auto-created for 
you. Just use that e-mail and password henceforth. There is NO separate 
registration.


4. The wiki uses Textile markup - there's a link next to the Edit Box of 
a page that will take you to Textile help.


5. The page title and main heading will be the same as the link you 
clicked. DO NOT change it - if you change it, you will need to link in 
that page again.


6. If you want to see another page's Textile markup (as reference or 
whatever), my recommendation would be to open it in another window and 
then click on edit. DO NOT click on 'cancel' to cancel the editing (i.e. 
exit without saving) - somehow, this triggers Junebug wiki to treat it 
as a new version if no changes are made. Just close the window or click 
on back.


7. Images: The wiki doesn't allow image attachments. You'll need to put 
it on a publicly accessible site and link to it using Textile. If you 
have problems with a public site, let me know by email "tech {at} onghu 
dot com" - I could put it up for you on my site and send you the links.


Hope this helps.

Cheers,
Mohit.
10/23/2008 | 11:49 AM.




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


Re: [Radiant] "View Page" link

2008-10-22 Thread Joe Van Dyk
On Wed, Oct 22, 2008 at 3:44 PM, Tim Gossett <[EMAIL PROTECTED]> wrote:
> On Wed, Oct 22, 2008 at 1:12 PM, Jim Gay <[EMAIL PROTECTED]> wrote:
>
>>
>> On Oct 22, 2008, at 12:55 PM, Joe Van Dyk wrote:
>>
>>  So, if I'm editing a page in Radiant, seems like there should be a
>>> "View Page" link (perhaps on the edit page and/or next to the page in
>>> the page tree).
>>>
>>> Haven't looked for an extension yet, but this seems like something
>>> that would go in Radiant core, right?
>>
>>
> Isn't this what Page Preview does?
>
> http://github.com/tricycle/radiant-page-preview-extension/tree/master

Doh, didn't know about that one.  That's exactly what I want.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] parameterized_snippets extension

2008-10-22 Thread Luis Lebron
How do you install the extension? In the vendors/extensions folder I did a
git clone
git://github.com/manuelmeurer/radiant-parameterized-snippets-extension.gitparameterized-snippets
and the files were downloaded from the repository but
I cannot get it to work.

thanks,

Luis

On Tue, Oct 21, 2008 at 9:44 PM, Manuel Meurer <[EMAIL PROTECTED]>wrote:

> Fixed, thanks for testing.
> Please grab a fresh copy from
> http://github.com/manuelmeurer/radiant-parameterized-snippets-extension/
>
> Manuel
>
> On Tue, Oct 21, 2008 at 12:10 PM, Simon Josi <[EMAIL PROTECTED]> wrote:
> > I've got a case where parameters to snippets are not availabe. It
> > occurs when I call a snippet with parameters from another snippet:
> >
> > Content of page "Referenzen":
> > 
> >
> > The "Referenzen" page contains childs with "text", "image" and "body"
> > parts defined.
> >
> > Content of snippet "list_childs_as_generic_entries":
> > 
> >  
> >
> >  
> >  
> >!(photo)()!
> >  
> >  
> >
> >  
> > 
> >
> > Content of snippet "image_with_border":
> >  class="">
> >   
> >  
> >   
> > 
> >
> > The class parameter is not set if a open the page "Referenzen".
> >
> > If i call the snippet "image_with_border" directly from a page and not
> > from a snippet, it works.
> >
> > Any ideas on that?
> >
> > Thx,
> > /smon
> > ___
> > 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


Re: [Radiant] "View Page" link

2008-10-22 Thread Tim Gossett
On Wed, Oct 22, 2008 at 1:12 PM, Jim Gay <[EMAIL PROTECTED]> wrote:

>
> On Oct 22, 2008, at 12:55 PM, Joe Van Dyk wrote:
>
>  So, if I'm editing a page in Radiant, seems like there should be a
>> "View Page" link (perhaps on the edit page and/or next to the page in
>> the page tree).
>>
>> Haven't looked for an extension yet, but this seems like something
>> that would go in Radiant core, right?
>
>
Isn't this what Page Preview does?

http://github.com/tricycle/radiant-page-preview-extension/tree/master

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


Re: [Radiant] Default page filter on new page parts

2008-10-22 Thread Joe Van Dyk
Sent pull request for
http://github.com/joevandyk/radiant/commit/b732b61c79dd14d67060e841874ffb1ef81dbe52
to the github radiant user.

On Wed, Oct 22, 2008 at 9:45 AM, Sean Cribbs <[EMAIL PROTECTED]> wrote:
> Joe,
>
> Yes, that is a bug or oversight.  Patch + specs?
>
> Sean
>
> Joe Van Dyk wrote:
>>
>> Hi,
>>
>> If I add a page part to an existing page that uses Textile, the filter
>> is set to none.  But I have the default filter set to Textile, and
>> Textile is picked when I create a new page.
>>
>> Bug?
>>
>> Joe
>> ___
>> 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


Re: [Radiant] "View Page" link

2008-10-22 Thread Jim Gay


On Oct 22, 2008, at 12:55 PM, Joe Van Dyk wrote:


So, if I'm editing a page in Radiant, seems like there should be a
"View Page" link (perhaps on the edit page and/or next to the page in
the page tree).

Haven't looked for an extension yet, but this seems like something
that would go in Radiant core, right?


Right, I think so. This weekend will see a good bit of development of  
the UI, I suggest you create a ticket for it at http://radiant.lighthouseapp.com


I don't know if there is one out there to do this, but the premise is  
the same as the admin_breadcrumbs extension that I wrote: http://ext.radiantcms.org/extensions/25-admin-breadcrumbs 
.

You could use that as a template to add a link to the page.

You could also take a look at
http://github.com/tricycle/radiant-page-preview-extension
http://github.com/vigetlabs/radiant_page_preview_extension

I believe that both of those are entirely separate projects and show  
the page prior to saving changes.


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


Re: [Radiant] "View Page" link

2008-10-22 Thread Sean Cribbs

Have a look at the "blade" mockups. [1]  It's currently planned.

Sean

[1] http://github.com/radiant/radiant-mockups/tree/master/blade

Joe Van Dyk wrote:

So, if I'm editing a page in Radiant, seems like there should be a
"View Page" link (perhaps on the edit page and/or next to the page in
the page tree).

Haven't looked for an extension yet, but this seems like something
that would go in Radiant core, right?

Joe
___
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] "View Page" link

2008-10-22 Thread Joe Van Dyk
So, if I'm editing a page in Radiant, seems like there should be a
"View Page" link (perhaps on the edit page and/or next to the page in
the page tree).

Haven't looked for an extension yet, but this seems like something
that would go in Radiant core, right?

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


Re: [Radiant] Default page filter on new page parts

2008-10-22 Thread Sean Cribbs

Joe,

Yes, that is a bug or oversight.  Patch + specs?

Sean

Joe Van Dyk wrote:

Hi,

If I add a page part to an existing page that uses Textile, the filter
is set to none.  But I have the default filter set to Textile, and
Textile is picked when I create a new page.

Bug?

Joe
___
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] Default page filter on new page parts

2008-10-22 Thread Joe Van Dyk
Hi,

If I add a page part to an existing page that uses Textile, the filter
is set to none.  But I have the default filter set to Textile, and
Textile is picked when I create a new page.

Bug?

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


Re: [Radiant] parameterized_snippets extension

2008-10-22 Thread Manuel Meurer
Oops... fixed.

But you're right, the missing="ignore"-variant looks much cleaner.
The if_var and unless_var tags should just be used if you want to
execute several lines based on if that parameter exists or not.

Manuel

On Wed, Oct 22, 2008 at 11:49 AM, Simon Josi <[EMAIL PROTECTED]> wrote:
> Thank you!
>
> Unfortunately i've came across another error:
> The  tag ist not working, as for my example it only works if I
> change the line:
>
>  class="">
>
> to
>
> ">
>
> Stack trace: http://pastie.org/297893
>
> The latter variant is absolutely perfect mor me though, thank you.
>
>
> /simon
>
> On Wed, 22 Oct 2008 04:44:32 +0200
> "Manuel Meurer" <[EMAIL PROTECTED]> wrote:
>
>> Fixed, thanks for testing.
>> Please grab a fresh copy from
>> http://github.com/manuelmeurer/radiant-parameterized-snippets-extension/
>>
>> Manuel
>>
>> On Tue, Oct 21, 2008 at 12:10 PM, Simon Josi <[EMAIL PROTECTED]> wrote:
>> > I've got a case where parameters to snippets are not availabe. It
>> > occurs when I call a snippet with parameters from another snippet:
>> >
>> > Content of page "Referenzen":
>> > 
>> >
>> > The "Referenzen" page contains childs with "text", "image" and
>> > "body" parts defined.
>> >
>> > Content of snippet "list_childs_as_generic_entries":
>> > 
>> >  
>> >
>> >  
>> >  
>> >!(photo)()!
>> >  
>> >  
>> >
>> >  
>> > 
>> >
>> > Content of snippet "image_with_border":
>> >  class="> > name="class" />"> > > class="top">  > > class="body"> > > class="bottom">  
>> >
>> > The class parameter is not set if a open the page "Referenzen".
>> >
>> > If i call the snippet "image_with_border" directly from a page and
>> > not from a snippet, it works.
>> >
>> > Any ideas on that?
>> >
>> > Thx,
>> > /smon
>> > ___
>> > 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 mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


Re: [Radiant] parameterized_snippets extension

2008-10-22 Thread Simon Josi
Thank you!

Unfortunately i've came across another error:
The  tag ist not working, as for my example it only works if I
change the line:

 class="">

to

">

Stack trace: http://pastie.org/297893

The latter variant is absolutely perfect mor me though, thank you.


/simon

On Wed, 22 Oct 2008 04:44:32 +0200
"Manuel Meurer" <[EMAIL PROTECTED]> wrote:

> Fixed, thanks for testing.
> Please grab a fresh copy from
> http://github.com/manuelmeurer/radiant-parameterized-snippets-extension/
> 
> Manuel
> 
> On Tue, Oct 21, 2008 at 12:10 PM, Simon Josi <[EMAIL PROTECTED]> wrote:
> > I've got a case where parameters to snippets are not availabe. It
> > occurs when I call a snippet with parameters from another snippet:
> >
> > Content of page "Referenzen":
> > 
> >
> > The "Referenzen" page contains childs with "text", "image" and
> > "body" parts defined.
> >
> > Content of snippet "list_childs_as_generic_entries":
> > 
> >  
> >
> >  
> >  
> >!(photo)()!
> >  
> >  
> >
> >  
> > 
> >
> > Content of snippet "image_with_border":
> >  class=" > name="class" />">  > class="top">   > class="body">  > class="bottom">  
> >
> > The class parameter is not set if a open the page "Referenzen".
> >
> > If i call the snippet "image_with_border" directly from a page and
> > not from a snippet, it works.
> >
> > Any ideas on that?
> >
> > Thx,
> > /smon
> > ___
> > 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] Re: Re: How to use current_user in tags

2008-10-22 Thread Vincent Pérès
Yes, he is logged in (sure).
To access to the current_user, I added a line on the 
file_based_extension (butI'm not using this extension yet) :

module FileBasedLayout
  module SiteControllerExt
def self.included(base)
  base.class_eval {
include InstanceMethods
alias_method_chain :process_page, :file_based_layout
  }
end

module InstanceMethods

  protected

  def process_page_with_file_based_layout(page)
@page.current_user = current_user
puts "** session : " + session.inspect
if @page.layout && @page.layout.file_based?
  render :text => process_with_file_based_layout(@page), :layout 
=> @page.layout.layout_file.gsub(/(\.[a-z]+)?\.[a-z]+$/, '')
else
  process_page_without_file_based_layout(page)
end
  end
etc.

current_user and session are not empty on my computer, but they are nil 
on the other one... I'm realy lost because we have the same mysql dump 
and project files.

If I can't resolve my problem, there is an other way to access to my 
current user/user_id ?

Thank you !
Vincent
-- 
Posted via http://www.ruby-forum.com/.
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant