Forums / Setup & design / how to create a simple user interface for content creation ?

how to create a simple user interface for content creation ?

Author Message

Nick Woods

Thursday 29 January 2004 4:39:40 am

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

James Packham

Thursday 29 January 2004 5:36:03 am

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/documentation/incoming/tutorial_using_userregister

Regards,

James

Nick Woods

Thursday 29 January 2004 8:54:16 am

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

andreas spahr

Thursday 29 January 2004 10:16:49 am

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

Nick Woods

Friday 30 January 2004 5:13:05 am

Thanks andreas - I'll giove that a try

Jon Arne Carsten

Wednesday 27 April 2005 5:26:34 am

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

Kristian Hole

Wednesday 27 April 2005 7:47:49 am

Simple editing can be done on the user page. Check out this link on frontpage editing:

http://ez.no/ez_publish/documentation/customization/tips_tricks/editing_creating_and_removing_content_from_the_user_page

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Jon Arne Carsten

Thursday 28 April 2005 2: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?

Aleksander Lech

Monday 29 August 2005 1:17:48 am

Hi Andreas,
following your instructions, I made adminlight interface, but it tooks stylesheets from 'strandard' design, not from 'adminlight' design - where else should I make changes?

Greetings
Aleksander

Aleksander Lech

Monday 29 August 2005 2:00:28 am

Well,
I made some stupid mistake. After repeating your instruction steps again, everything works just great.

Aleksander