Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin
Works great. I can confirm that both hiding the advanced options as a whole and hiding certain elements within it work fine when using the tiny_mce plugin with txp 4.0.4.
Thanks for the effort.
Offline
Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin
Strange thing: the patch works fine for my site at the ISP (Unix environment); on my home computer (XP) it doesn’t work. I made a clean, new install of TXP and installed the patch as the first plugin. But it didn’t work. Does anybody have a clue???
Offline
Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin
Blueprint check the source of the page.
Towards the end you should be seeing something like
document.getElementById("advanced").previousSibling.style.display="none";
printed out. See if it’s the same between your ISP and your home computer. The hiding is all done on the client so the server environment shouldn’t affect it.
Last edited by hakjoon (2007-02-07 20:43:25)
Shoving is the answer – pusher robot
Offline
Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin
Thnx for the suggestion; it triggered my mind that it wasn’t handled on the server, but that it is client code.
In order to compare the code of both my ISP site and my XP site I made sure that I had turned off the same options. And when I did that the plugin worked on my XP site.
And after some research I found that the option: Write: Toggle off Textile Help was the origin of my problem>
I have the hak_tinymce plugin installed, and in Preference I have turned Textile off. Turning the option Write: Toggle off Textile Help off in the hide in admin gave the result that the whole plugin didn’t work. So the solution was quiet simple: turning Write: Toggle off Textile Help on in the hide in admin.
However, it is a bit of a quirky plugin.
Last edited by blueprint (2007-02-08 20:27:13)
Offline
Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin
The javascript in the plugin is not very defensive. It doesn’t check if the element exists before trying to apply a property to it. Doing that to a not existent element normally cause Javascript to just error out.
Please no one take this as an attack on Yura’s code. The implementation of this plugin is quite brilliant and not something I would have ever come up with.
Last edited by hakjoon (2007-02-08 20:36:36)
Shoving is the answer – pusher robot
Offline
Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin
The plugin is working for me, but it won’t expand the left menus, or remove any of the advanced options. I’ve tried the patched version, and tried checking and unchecking the toggle ones. I’m using 4.04. Anyone have any ideas?
Thanks,
Offline
Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin
renobird,
there are some tricks to this plugin, sometimes you need to make sure you have the right combination of boxes ticked or other oddities. For instance, you need to have some article categories for categorization to show up. I think this is because of TXP not the plugin persay.
M
- I am Squared Eye and I
am launchinghave launched Pattern Tap
Offline
Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin
If I have more than 10 custom fields they are not displayed as option for hiding in this plugin.
Job: Plugo – tvorba eshopu
Projects: Czech free fonts
Offline
Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin
If I have more than 10 custom fields they are not displayed as option for hiding in this plugin.
txp caters for a maximum of 10 custom fields. If you’ve hacked txp to manage more, you’ll need to adapt the plugin accordingly. Check the function ied_getCustomFields
near the end of the plugin code. There it says while ($i < 10)
. You’ll need to change that to cater for more custom fields. Similarly in function ied_hide_in_admin_main($message='')
there’s also a line reading for ( $i=1; $i<=10; $i++ )
.
TXP Builders – finely-crafted code, design and txp
Offline
Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin
lee wrote:
Hi Yura,
it seems the write tab has been changed since you updated you plugin, it now has a more label and a create new label, would you consider adding these to the plugin so they can be hidden?
Many thanks, Lee.
Great plugin!
It really helps simplifying TXP for end users.
I was also wondering if this will be implemented in the future…
(removing the more label)
Dutch Ruby on Rails news and articles: OnRails
Offline
Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin
Inspired wrote:
The plugin can now hide any of the four categories in the Organise tab and any of the fields in the Image tab edit mode (thumbnail, replace image, category, caption etc.).
Additionally it now gives you option to have “Textile Help”, “Advanced Options” and “Recent Articles” in the Write tab be opened by default (as well for any of the user levels or for all).
I’ve encountered a problem:
I am using TXP 4.0.4 and ied_hide_in_admin 0.1.6
(I haven’t installed any other plugins yet, as I just started working on a clean TXP install).
- Image: Replace image
- Image: Upload thumbnail
- Image: Create thumbnail
- Image: Image name
- Image: Category
- Image: Alt text
- Image: Caption
Too bad… I really like the minimalism of this plugin…
Any chance a solution exists?
Thanks in advance!
Dutch Ruby on Rails news and articles: OnRails
Offline
Re: [plugin] [ORPHAN] ied_hide_in_admin version 0.1.: Hide Fields in Admin
Hi guys!
Sorry, I dropped out from textpattern life for quite some time, that’s not because I don’t love you, I love you all very much :) and wish I can pay some time soon to update the stuff and make you happy.
Plugin Composer — admin plugin to write your own plugins
Offline