Page 1 of 1

News module question

Posted: Sat Feb 07, 2009 10:29 pm
by tonholis
Hi people...

I customize the News module to restrict the content to only authorized users.
When the admin user creates new article, an email is sent with link of the entire article.

Question:
When the user clicks on link to the entire article, the login is requested, and the link for the article is lost.
So, how do i make to store the link and redirect the user after login? (with CMS patterns).

Re: News module question

Posted: Sun Feb 08, 2009 1:41 am
by JeremyBASS
look to customcontent and FEU in the forge and on the forum... that’s an easy way to do this...

hope that helps,

cheers
jeremyBass

Re: News module question

Posted: Sun Feb 08, 2009 3:08 pm
by tonholis
JeremyBASS wrote: look to customcontent and FEU in the forge and on the forum... that’s an easy way to do this...

hope that helps,

cheers
jeremyBass
Hi, thanks for help...
I did the login module that implements the security logic for my case...
but this is my first project that I used the CMS system and I'm a little confused ...

In this case, I did a copy of the News module and I did some changes to when user creates a new article a function is called to send a mail.

so, can you send me any example to how could I use the Custom Content in this situation?


PS: sorry about my english.... i'm brazilian

Re: News module question

Posted: Sun Feb 08, 2009 5:34 pm
by JeremyBASS
Hello, really there are few things you can't find in here on the forum... and this is one of them... you should always search first... but this a start

{if $ccuser->loggedin()}
{news}
{else}
not logged in
{/if}

cheers
jeremyBass

Re: News module question

Posted: Sun Feb 08, 2009 7:09 pm
by tonholis
ok.... thanks for help
I'll try this way