I managed to edit a file in controller to allow for the edit article link to be directly accessed if a user has a particular username. This is a core edit, but it's a local website only only my pc so I am not worried.
It works when I view in one Internet Explorer, but in another Internet Explorer it doesn't show the editor --only the input for the title. If I refresh the page it shows up.
I looked at echo $this->form->getInput('articletext')
in edit.php and it is set to no editor when var_dump()
. When I refresh, the dump shows tiny_mce.
I can't for the life of me find what file or process sets the articletext editor nor what it bases it on (checks session or something). I know it would check the user's editor because tinymce is this user's default. It is also the site's default.
Any help would be greatly appreciated. Right now I can't find how the editor is assigned in the php code. Otherwise I might be able to find what is missing from direct link to edit article.
I've compared some var_dump
s of this form and $this
params. I'm not seeing much of a difference from first view and refreshed view. Any advice?
Update1 :
Also the plugin is a nice idea but it seems likr a lot more work and learning curve. This is hard because i dont have home intetnet. But perhaps in the future i will merge it over to a plug in. If i can figure that all out. For now mt only core hack is the controller.php in com_content. I dont know how to override only specific component controllers. Maybe I will check it out later if I have time. Thanks for all the advice everyone. For now all is working as i stated above.
Also for my origional post. I meant Internet Explorer. Which i assumed any one using joomla would know ie is short form of a browser name. I am typing on a small cellphone with limited time. Sorry for not proof reading. But anyways, i think the issue I had was less about the browser and more about settings.
I still cant find where joomla looks to see if a user has an editor set in their prefrence and to overrite the global configurations defualt editor with that of the users preferance. This would be nice, and I assumed this is default behaviour so I am not sure why when I edit an article on front end with super user the site ignores the users prefrence.
Anyways if any one can help shine some light on this, and again I hope i have time to make a plugin override direct access based on user group or name.
Update2:
Also i noticed that the global edior was none and showing rhat instead of users prefered esitor. Just changed defuakt to tinymce and it worked.