News module question

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
tonholis
Forum Members
Forum Members
Posts: 21
Joined: Fri Nov 28, 2008 2:14 pm

News module question

Post 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).
JeremyBASS

Re: News module question

Post 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
tonholis
Forum Members
Forum Members
Posts: 21
Joined: Fri Nov 28, 2008 2:14 pm

Re: News module question

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

Re: News module question

Post 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
tonholis
Forum Members
Forum Members
Posts: 21
Joined: Fri Nov 28, 2008 2:14 pm

Re: News module question

Post by tonholis »

ok.... thanks for help
I'll try this way
Post Reply

Return to “Modules/Add-Ons”