Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#13 2008-06-14 12:04:59

jelle
Member
Registered: 2006-06-07
Posts: 165

Re: Admin Area - Hiding sections from users

chriloi wrote:

I’m currently developing a plugin, that makes the write tab fully customisable and even gives the possibilty to have an own “write” tab on a per section basis. It is a paid work and in testing right now.

Hmmmmmm, that sounds very interesting. I’ve been looking for a way to change the write tab to my needs. Especially moving the custom fields (using glz_custom_fields) from the Advanced Options tab to right under the article textarea, eliminating the need for opening/closing and giving me a clearer layout. Is this something that will be possible with your plugin? I’m swamped with work and I’m still getting to grips with plugin programming.

Offline

#14 2008-06-14 12:41:05

chriloi
Plugin Author
From: Vienna, Austria
Registered: 2006-01-17
Posts: 120
Website

Re: Admin Area - Hiding sections from users

@jelle: No, you have to alter glz_custom_fields in this case.

Offline

#15 2008-06-14 13:18:50

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: Admin Area - Hiding sections from users

jelle wrote:

….eliminating the need for opening/closing and giving me a clearer layout….

jelle, this doesen’t solve all your problems but you can use ied_hide_in_admin to keep always open the advanced options

Offline

#16 2008-06-14 14:50:56

jakob
Admin
From: Germany
Registered: 2005-01-20
Posts: 4,732
Website

Re: Admin Area - Hiding sections from users

Getting a little off the topic here…

… Especially moving the custom fields (using glz_custom_fields) from the Advanced Options tab to right under the article textarea.

If you still want to move glz_custom_fields to under the main column, it’s not too difficult as gerhard has used jquery to rewrite portions of the admin using javascript. Find this section of code about 1/4 into his plugin.

   $(document).ready(function() {
      // removes all existing custom fields
      $("p:has(label[for*=custom-])").remove();
      $("legend[@id=custom_fields]").after(\''.$out.'\');
    });

The first $-line (jquery’s notation for find) finds the existing p elements containing the custom fields and removes them, the second $-line finds legend id=“custom_fields” and inserts the glz_custom_fields (contained in $out) after that point. All you need to do is look at the source code of your write tab, find the point where you want to insert it and replace "legend ..." in the second line to match the main html element after which you want your fields to appear. glz_custom_fields will be inserted there instead.


TXP Builders – finely-crafted code, design and txp

Offline

#17 2008-06-14 14:58:58

jelle
Member
Registered: 2006-06-07
Posts: 165

Re: Admin Area - Hiding sections from users

chriloi wrote:

@jelle: No, you have to alter glz_custom_fields in this case.

I’ve been experimenting with that….I have some rude hacks of the TXP to get it to move. But nothing plugin-worthy yet. Thanks for the heads up though, I’ll look into it some more.

redbot wrote:

jelle, this doesen’t solve all your problems but you can use ied_hide_in_admin to keep always open the advanced options

Yeah, thats part of my standard TXP config already. But I’m trying to get rid of the Advanced Options all together and have one clean form for article + custom fields and controlled by sed_section_fields.

Still I’m very curious to what your plugin has to offer chriloi. :)

Last edited by jelle (2008-06-14 15:01:25)

Offline

#18 2008-06-14 15:00:47

jelle
Member
Registered: 2006-06-07
Posts: 165

Re: Admin Area - Hiding sections from users

jakob wrote:

If you still want to move glz_custom_fields to under the main column, it’s not too difficult as gerhard has used jquery to rewrite portions of the admin using javascript. Find this section of code about 1/4 into his plugin.

hey thanks Jakob. I was going about in a different way: moving TXP custom fields so glz_custom_fields pop’s up in that spot. Which works ok, but your solution is waaaaay better. I’ll check it out…

Last edited by jelle (2008-06-14 15:04:56)

Offline

#19 2008-06-14 15:59:00

redbot
Plugin Author
Registered: 2006-02-14
Posts: 1,410

Re: Admin Area - Hiding sections from users

jelle wrote:

Yeah, thats part of my standard TXP config already. But I’m trying to get rid of the Advanced Options all together…

This is doable with ied_hide_in_admin.
I mean that other than keeping “advanced option” open you can also hide the “advanced option” label (and everything else you don’t need).

Offline

#20 2008-06-14 16:06:06

net-carver
Archived Plugin Author
Registered: 2006-03-08
Posts: 1,648

Re: Admin Area - Hiding sections from users

Folks

Just a heads-up; disabling the override-form control renders standard glz_custom_fields un-usable on the write tab.

If you do turn off form-overrides from the admin interface (and perhaps from some other plugins) you will loose your glz_custom_fields unless you make the edits mentioned a few posts back by jakob.

More here and here (thanks redbot!)


Steve

Offline

#21 2008-12-15 17:31:02

chriloi
Plugin Author
From: Vienna, Austria
Registered: 2006-01-17
Posts: 120
Website

Re: Admin Area - Hiding sections from users

I’m sorry for not replying to this thread for a long time, but since my last post I’m so stuffed with work, that I don’t find the time to make this plugin ready for release. (And now with 4.0.7. it even needs to be updated…)

Offline

#22 2009-08-30 16:53:41

Gerich
Member
Registered: 2009-08-30
Posts: 35

Re: Admin Area - Hiding sections from users

sthmtc wrote:

i was in need of something like this a while ago and cooked up my own solution, it takes a list of users, hardcoded in the plugin and specify which sections these users are allowed to see (which is in my case only one section). let me know if this is what you’re after…

Is it a chance that this plugin will see the world in the near future?

Offline

Board footer

Powered by FluxBB