Thursday 29 January 2004 1:39:40 pm - 9 replies
Can someone point me in the right direction please - I've had a look through the docs but cant find what i'm looking for.
I've built a basic site and have been creating content through the admin interface.
I now want to create some user ids and let them create just the article types I want in just the folders I want, ie only create a 'news' item in the 'news folder', a 'member' item in the member folder and so on (I have created custome classes for each article type)
What I'm trying to do now is give the users a url and a simple interface so that they can do this. They will have their own user id and must be logged on to let them do this.
The actual content creation screens can be very simple, in fact the default ones will do nicely - I just dont want them creating content in the wrong place or messing up the rest of the site
I'm sure its possible (I'm doing it while posting into he his very forum...) but I cant see how to do this - can some one point me to the appropriate documentation or tutorial ?. (I've read the guestbook example in the tutorial buit it doesnt cover how to force a logon first
Modified on Thursday 29 January 2004 1:40:37 pm by Nick Woods
Thursday 29 January 2004 2:36:03 pm
If you use roles for the create/edit and the user doesn't have permission to create/edit then it will redirect them to a login/register screen. This template can be overriden so that it says whatever you want it to.
Also see
http://www.ez.no/ez_publish/docum...incoming/tutorial_using_userregister
Regards,
James
Modified on Thursday 29 January 2004 2:39:55 pm by James Packham
Thursday 29 January 2004 5:54:16 pm
Thanks James, it has helped a bit, however I still need to know how to create some simple screens for creating / editing / deleting articles.
Ideally I'd like to re-use the forms in the admin system which simply present each field name with an input box (ie as if they were creating and article in the admin intrface but without the rest of the admin system)
It doesnt need to be pretty but it does need to be simple to build and use
Thursday 29 January 2004 7:16:49 pm
Hi Nick,
I can tell you what I did to downsize the admin interface.
I made a copy of the complete design/admin folder to e.g. design/adminlight
Then I added a new siteaccess, e.g. adminlight.
Pointing in the siteaccess/adminlight/site.in.append the
[DatabaseSettings], [FileSettings] to the same values as in your admin settings.
Point the [DesignSettings] value to the copied folder:
SiteDesign=adminlight
Turn on the debug informations for templates:
[TemplateSettings]
Debug=enabled
The clue is now, to edit first the design/adminlight/templates/pagelayout.tpl and loginpagelaout.tpl. Here you can easily delete the tabs and buttons, which you don't want to be seen by your users.
With the Debug information from the ini TemplateSettings you can see, which templates you have to override from the standard or adminlight folders. If the template is in adminlight, then you can edit it and customize. If its in the standard folder, then you should override and customize it later in the adminlight folder.
At the end you have two admininistration designs: one for yourself (admin), and one for the users (adminlight).
Then you have to create the users. Create first a role, e.g. for the newseditor with s.th. like:
user login *
content read Class( Folder , Article )
content edit Class( Folder , Article )
This only a easy access, with no distinctions for section etc.
If users login now in http://yourhost/index.php/adminlight, they have only access to the folder and articles.
I hope it helps,
regards
andreas
Wednesday 27 April 2005 2:26:34 pm
Hello
I have the same problem. I want the users who are logged inn on mye portal, to be able to upload news. I tried downsizing the admin interface by using the example andreas delivered.
I couldn`t make it work...
Does anyone know if there is a template or something that I can use to submit newsarticles from the userinterface?
Thanx in advance
Jon Arne
Wednesday 27 April 2005 4:47:49 pm
Simple editing can be done on the user page. Check out this link on frontpage editing:
http://ez.no/ez_publish/documenta..._removing_content_from_the_user_page
Thursday 28 April 2005 11:24:15 am
Hello
Thanx alot Kristian, that link helpt us big time.
But how can I controll where in the content-structure the object will be placed?
I inserted the code that displays a dropdownlist with the classes the user has access to create and then a button to create it. I inserted this into the pagelayout.tpl to trie it out.
Then I copied the design/standard/templates/content/edit.tpl into design/mydesign/templates/edit.tpl and removed the lines mentioned in the tutorial.
So fare I am able to publish for example an article, but I can`t understand where in the content-structure it is placed.
What do I do wrong?
You must be logged in to post messages in this topic!