Page 1 of 1

Editing : How did you do THAT on your site pages ?

Posted: Sun May 07, 2006 7:08 pm
by pikkabbu
Hi !
The more I see of CMSMS, the more I love it.

In the documentation pages, non existing pages have a link, just over the "User handbook" words in the blue ribbon, who say "Edit".

Clicking it requieres loggin in.

I wonder how it's done.

How can i put such a button in some of my pages ?
How can I link it so that people enter in editing mode if they are logged, or in registring page if they are not yet ?

I suppose loggin will decide if they have permissions enough to edit the page.


Thank you,
(I'm preparing question # 2  ;D)

pik

Re: Editing : How did you do THAT on your site pages ?

Posted: Sun May 07, 2006 7:18 pm
by Elijah Lofgren
pikkabbu wrote: In the documentation pages, non existing pages have a link, just over the "User handbook" words in the blue ribbon, who say "Edit".

Clicking it requieres loggin in.

I wonder how it's done.

How can i put such a button in some of my pages ?
The User Handbooks is powered by MediaWiki.
See: http://www.mediawiki.org/wiki/MediaWiki

Re: Editing : How did you do THAT on your site pages ?

Posted: Sun May 07, 2006 8:08 pm
by pikkabbu
O my !!!

Does that mean that cmsms doen't allow to do this in a cmsms site ?

:(

Re: Editing : How did you do THAT on your site pages ?

Posted: Mon May 08, 2006 11:54 am
by faglork
No big problem: A direct-edit-link looks like this:

http://www.domain.com/admin/editcontent ... =33&page=1

So all you have to to is write a user-defined tag which generates this link and place the tag in the template.

The only thing which is missing: If you are not logged in it shows the login page, but no link to a registration page. If you want this, you have to modify the login page as well.

hth,
faglork

Re: Editing : How did you do THAT on your site pages ?

Posted: Mon May 08, 2006 12:13 pm
by jah
It would be easier to use the edit tag. Just add the {edit} tag in your template, and it will take you to your admin page.

Re: Editing : How did you do THAT on your site pages ?

Posted: Mon May 08, 2006 12:39 pm
by faglork
Well, indeed ... ;-)

Re: Editing : How did you do THAT on your site pages ?

Posted: Tue May 09, 2006 9:48 pm
by pikkabbu
Thanks,

You know what ?

I'm about to post the new question.. right now  ;D

pik