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

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
pikkabbu

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

Post 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
User avatar
Elijah Lofgren
Power Poster
Power Poster
Posts: 811
Joined: Mon Apr 24, 2006 1:01 am

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

Post 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
Note: I don't have time to take on any more projects. I'm quite busy. I may be too busy to reply to emails or messages. Thanks for your understanding. :)
pikkabbu

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

Post by pikkabbu »

O my !!!

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

:(
faglork

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

Post 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
jah
Forum Members
Forum Members
Posts: 147
Joined: Thu Dec 30, 2004 9:09 am

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

Post 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.
faglork

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

Post by faglork »

Well, indeed ... ;-)
pikkabbu

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

Post by pikkabbu »

Thanks,

You know what ?

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

pik
Locked

Return to “CMSMS Core”