How can I add an "Edit this page" link?

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
tomalb

How can I add an "Edit this page" link?

Post by tomalb »

Hi,

I've just downloaded and installed version 1.0.2 "Maui". On a hosted server without problems, good work!

I've searched the forums and even tried some code but failed.
Is it possible to add an "Edit this page" link in a template, so that it's only displayed if a certain user is logged in (like admin)?

Content manager users could then log in and wouldn't need the admin interface. Instead they could use the (ready-made) site and use the edit link where needed.


Kind regards

Tomas Albinsson
Stockholm, Sweden
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How can I add an "Edit this page" link?

Post by Dr.CSS »

There is a tag called {edit} but I believe they need to be logged into the backend first...

Help for the edit tag
What does this do?

Creates a link to edit the page
How do I use it?

Just insert the tag into your template/page like: {edit}
What parameters does it take?

    * (optional)showbutton - Set to "true" and will show a edit graphic instead of a text link.
tomalb

Re: How can I add an "Edit this page" link?

Post by tomalb »

Thanks Mark,

just what I wanted.

To keep me from asking more dead simple qustions in the future: where should I have read that?
Is there a reference somewhere of all tags?


Kind regards

Tomas
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How can I add an "Edit this page" link?

Post by Dr.CSS »

If you go to Extensions » Tags and click the tag name you will get the help menu for it showing all the parameters they take...
tomalb

Re: How can I add an "Edit this page" link?

Post by tomalb »

Well, either it's my eyes or my brain.

I assume that's under the Documentation tab. Then where?


Regards

Tomas
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: How can I add an "Edit this page" link?

Post by Dr.CSS »

In the admin of your site, the backend when you are logged in...
Locked

Return to “CMSMS Core”