Page 1 of 1

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

Posted: Sat Nov 11, 2006 5:51 pm
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

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

Posted: Sat Nov 11, 2006 8:35 pm
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.

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

Posted: Sun Nov 12, 2006 3:31 pm
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

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

Posted: Sun Nov 12, 2006 7:43 pm
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...

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

Posted: Mon Nov 13, 2006 12:05 pm
by tomalb
Well, either it's my eyes or my brain.

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


Regards

Tomas

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

Posted: Mon Nov 13, 2006 2:13 pm
by Dr.CSS
In the admin of your site, the backend when you are logged in...