[Radiant] member-extension checking if user is logged in

2009-06-02 Thread Christian Nikolajsen
Hey people,
I'm currently having a go at member extension (
http://blog.aissac.ro/radiant/member-extension/) and so far all is good.
But what I would really like is for my login form to be replaced when a user
logs in with fx. a logout button, but I can't find a way to tell my layouts
to display the logout part instead of the login part after the user has
logged in.
Is there a way to check if the user is logged in? As far as I can tell there
isn't a tag for it... which would be really neat.


-- 
Venlig hilsen / Best Regards

Christian Nikolajsen
___
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 with Sub Nav

2009-05-13 Thread Christian Nikolajsen
Hi Mohit,
A thought occured to me and I tried your code on a clean radiant install and
it works perfectly. Both yours and Dans code example.
Maybe some extension I have installed is causing the trouble?
These are the extenstions I have installed:
copy_move
mailer
settings
dashboard
navigation_tags
sns
drag_order
news
user_home
help
paperclipped
wym_editor_filter

/Christian

2009/5/14 Mohit Sindhwani t...@onghu.com

 Christian Nikolajsen wrote:

 Hi Mohit sorry I never got back to you on your example. I tried it out and
 it's been causing problems for me and I'm getting the same problems with the
 example from Dan.

 When I try your examaples I get the following error message:


 NoMethodError in SiteController#show_page

 You have a nil object when you didn't expect it!
 The error occurred while evaluating nil.url
 Any thoughts on this would be appreciated (and again my apologies to Mohit
 for not answering him on his last post :)

 Hi Christian

 It seems to be that one of the finds is failing or something.  Could you
 post the exact snippet you are using?

 Cheers,
 Mohit.
 5/14/2009 | 11:37 AM.




-- 
Venlig hilsen / Best Regards

Christian Nikolajsen
Tech Trooper of CreatingSite e-Commerce

Mobile: +45 30624263
Mail: christ...@nikolajsen.net
___
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 with Sub Nav

2009-05-13 Thread Christian Nikolajsen
Aha! Found the culprit, you were right it is navigation_tags causing my
grief.Thanks for the help.

/Christian

2009/5/14 Mohit Sindhwani t...@onghu.com

 Christian Nikolajsen wrote:

 Hi Mohit,

 A thought occured to me and I tried your code on a clean radiant install
 and it works perfectly. Both yours and Dans code example.
 Maybe some extension I have installed is causing the trouble?
 These are the extenstions I have installed:
 copy_move
 mailer
 settings
 dashboard
 navigation_tags
 sns
 drag_order
 news
 user_home
 help
 paperclipped
 wym_editor_filter

 I can tell you that copy_move and settings definitely seem to work with it
 because I have those installed.  Could it be that navigation_tags causes
 some problem?  I'm really not sure what could cause the trouble because my
 code uses built-in Radiant tags so technically that should work in all cases
 :P

 Cheers,
 Mohit.
 5/14/2009 | 12:59 PM.




-- 
Venlig hilsen / Best Regards

Christian Nikolajsen
Tech Trooper of CreatingSite e-Commerce

Mobile: +45 30624263
Mail: christ...@nikolajsen.net
___
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: navigation_tags extension help

2009-05-07 Thread Christian Nikolajsen
Ok, I will try to explain.I'm setting up a site that has a horizontal main
menu at the top of the page (for this navigation_tags works perfectly).
Then for each of these main pages that have children I want a submenu.
example using Benny's page examples:
If I have a main menu page /portfolio and this page has the children
/portfolio/sexy_client
and /portfolio/very_sexy_client I would like when I am on /portfolio and any
of its children to see a menu showing the children of /portfolio.

Hope this helps explain what I'm on about

/Christian

2009/5/6 Mohit Sindhwani t...@onghu.com

 Christian Nikolajsen wrote:

 Thanks Benny, not quite as dynamic as I would have hoped. Are there
 currently any other extensions/ways/best practics out there to create a
 dynamic menu in radiant?

 /Christian



 Sorry Christian,

 I don't understand what you're trying to do.  Could you explain with an
 example?



 Thanks
 Mohit.


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




-- 
Venlig hilsen / Best Regards

Christian Nikolajsen
Tech Trooper of CreatingSite e-Commerce

Mobile: +45 30624263
Mail: christ...@nikolajsen.net
___
Radiant mailing list
Post:   Radiant@radiantcms.org
Search: http://radiantcms.org/mailing-list/search/
Site:   http://lists.radiantcms.org/mailman/listinfo/radiant


[Radiant] navigation_tags extension help

2009-05-04 Thread Christian Nikolajsen
Hello people,
I have a question about the navigation_tags extension.
I want to make a subnavigation menu, and I know I can tell it where to start
by inserting to page slug in the root parameter. This works fine for my main
navigation menu which I insert like this:
r:nav root=/ include_root=true depth=1 expand_all=false
ids_for_lis=true /

But I would like this to be dynamic for my submenu. Is there a way to insert
the current page's slug in the root parameter?

-- 
Best Regards

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


[Radiant] Radiant news extension error

2009-05-01 Thread Christian Nikolajsen
Anyone tried the news extension listed on the Radiant CMS Extension
Registry?
I installed it as described and I'm able to create news elements in the
admin but when trying to show the news items on the page I get the error:

NameError in SiteController#show_page
uninitialized constant NewsTags::News

On my page I have the following code:

r:news:current
 r:news:headline /br /
 r:news:leadtext /br /
 r:news:text /
/r:news:current
Any help appreciated.

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