customize article submission fields

General questions relating to Joomla! 1.5 There are other boards for more specific help on Joomla! features and extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Locked
User avatar
webrp
Joomla! Guru
Joomla! Guru
Posts: 853
Joined: Sat Oct 28, 2006 9:10 pm
Location: Lisbon, Portugal

customize article submission fields

Post by webrp » Sat Feb 21, 2009 7:12 am

I would like to have the article submission layout customized in a simpler way. So my front users dont get too confused.

I wanna take out the section, show on frontpage, author alias, start and finish publishing, access level, and metadata fields. Bassically only title, text, category are really needed.

Is there some way to hide this fields for users, or even better only for authors?

dpminusa
Joomla! Guru
Joomla! Guru
Posts: 907
Joined: Sun Dec 21, 2008 6:35 pm
Location: USA

Re: customize article submission fields

Post by dpminusa » Sat Feb 21, 2009 7:43 am

You can comment them out of the program. The parameters to request this are not there.

the program is:
/components/com_content/views/article/tmpl/form.php

dpminusa

devload
Joomla! Apprentice
Joomla! Apprentice
Posts: 15
Joined: Fri Feb 20, 2009 8:53 pm

Re: customize article submission fields

Post by devload » Sat Feb 21, 2009 7:44 am

All of those fields can be hidden from the drop down menu on the right hand side of every article editor UI I thought.

Anyways "Flex content layout plus" is a nice article display component that lets you really customize how your articles display including all of the features you listed.

Hope this helps

User avatar
webrp
Joomla! Guru
Joomla! Guru
Posts: 853
Joined: Sat Oct 28, 2006 9:10 pm
Location: Lisbon, Portugal

Re: customize article submission fields

Post by webrp » Sat Feb 21, 2009 8:08 am

devload wrote:All of those fields can be hidden from the drop down menu on the right hand side of every article editor UI I thought.
Where can I find that drop dawn menu?

dpminusa
Joomla! Guru
Joomla! Guru
Posts: 907
Joined: Sun Dec 21, 2008 6:35 pm
Location: USA

Re: customize article submission fields

Post by dpminusa » Sat Feb 21, 2009 10:31 am

@devload

Thanks for the input.

We are talking about the Article Submission Form for the Users off the User Menu right? If so there are no parameters on the screen. Bring it up and look. You are thinking of the back-end.

You can customize the form used as indicated. I did.

dpminusa

User avatar
webrp
Joomla! Guru
Joomla! Guru
Posts: 853
Joined: Sat Oct 28, 2006 9:10 pm
Location: Lisbon, Portugal

Re: customize article submission fields

Post by webrp » Sat Feb 21, 2009 4:24 pm

what are you guys talking about? ???
My question is about adding a new article, in other words submitting a new article. I would like to make it simpler for Authors to write articles.

From begining, again, my question...
webrp wrote:I would like to have the article submission layout customized in a simpler way. So my front users dont get too confused.

I wanna take out the section, show on frontpage, author alias, start and finish publishing, access level, and metadata fields. Bassically only title, text, category are really needed.

Is there some way to hide this fields for users, or even better only for authors?

dpminusa
Joomla! Guru
Joomla! Guru
Posts: 907
Joined: Sun Dec 21, 2008 6:35 pm
Location: USA

Re: customize article submission fields

Post by dpminusa » Sat Feb 21, 2009 10:35 pm

YES. That is what I am assuming. It is a PHP script:

/components/com_content/views/article/tmpl/form.php specifically.

You want to customize it, right?

dpminusa

User avatar
webrp
Joomla! Guru
Joomla! Guru
Posts: 853
Joined: Sat Oct 28, 2006 9:10 pm
Location: Lisbon, Portugal

Re: customize article submission fields

Post by webrp » Sun Feb 22, 2009 4:26 am

dpminusa wrote:/components/com_content/views/article/tmpl/form.php specifically.
thanks dpminusa. I found it and customized it as I wanted. Its done

And even better, by moving this line I could hide everythin I wanted only for users, with admin account I still have them all.

Code: Select all

<?php if ($this->user->authorize('com_content', 'publish', 'content', 'all')) : ?>
Just one more detail, I would like to hide the section (it will be allways be the same), and only display the category field. To achieve this I suppose I first have to make some section default, so the categories will be listed. How can I make it?

maybe some hack on this lines? I am pretty ignorant with.. php(?)

Code: Select all

var sectioncategories = new Array;
<?php
$i = 0;
foreach ($this->lists['sectioncategories'] as $k=>$items) {
	foreach ($items as $v) {
		echo "sectioncategories[".$i++."] = new Array( '$k','".addslashes( $v->id )."','".addslashes( $v->title )."' );\n\t\t";
	}
}
?>

dpminusa
Joomla! Guru
Joomla! Guru
Posts: 907
Joined: Sun Dec 21, 2008 6:35 pm
Location: USA

Re: customize article submission fields

Post by dpminusa » Sun Feb 22, 2009 5:36 am

It needs to be something. You are right, it will want to pull the categories for the sections. If you look at the page rendered with view source you will see it makes an array:

var sectioncategories = new Array; // Holds the categories
(sectionID, Category ID, "Category Name")

Later there is an HTML form option list with the Section Names. You could force it to be a list of one section and default to it.

As I remember, the sectioncategories can be left alone and only the section form options code needs to be changed. In other words, the array can be more than you need and the logic will only show what the Section list references.

Maybe this gives you some direction.

I did all this stuff and decided that my users did need some of the fields, so I put some of it back. But that is my site, not yours.

I did a couple of other things that you may want to consider. I wrote a HELP button with instructions and layouts of the editors that pops up. I also added an 3rd party extension that emails the submissions to me for edit. It has a link to approve the article automatically without having to use the back-end admin screens.

Hope this helps.

dpminusa

User avatar
webrp
Joomla! Guru
Joomla! Guru
Posts: 853
Joined: Sat Oct 28, 2006 9:10 pm
Location: Lisbon, Portugal

Re: customize article submission fields

Post by webrp » Mon Feb 23, 2009 4:56 pm

dpminusa wrote:Maybe this gives you some direction.
Didnt find the right direction yet, but I am working on that

Thanks for your help.

cchow32
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Thu Aug 20, 2009 9:30 am

Re: customize article submission fields

Post by cchow32 » Thu Aug 20, 2009 9:32 am

webrp wrote:
dpminusa wrote:/components/com_content/views/article/tmpl/form.php specifically.
thanks dpminusa. I found it and customized it as I wanted. Its done

And even better, by moving this line I could hide everythin I wanted only for users, with admin account I still have them all.

Code: Select all

<?php if ($this->user->authorize('com_content', 'publish', 'content', 'all')) : ?>
Just one more detail, I would like to hide the section (it will be allways be the same), and only display the category field. To achieve this I suppose I first have to make some section default, so the categories will be listed. How can I make it?

maybe some hack on this lines? I am pretty ignorant with.. php(?)

Code: Select all

var sectioncategories = new Array;
<?php
$i = 0;
foreach ($this->lists['sectioncategories'] as $k=>$items) {
	foreach ($items as $v) {
		echo "sectioncategories[".$i++."] = new Array( '$k','".addslashes( $v->id )."','".addslashes( $v->title )."' );\n\t\t";
	}
}
?>

Hi there!

I'm trying to accomplish something similar (simplify article submission layout) and I was wondering if you would be able to provide more details on the modifications you did to the code please? I'm not very good with PHP and I'm not sure where to start :(

Thanks in advance! :)

jagrit2853
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Thu Sep 09, 2010 12:13 pm

Re: customize article submission fields

Post by jagrit2853 » Mon Sep 13, 2010 1:47 pm

Hi Dude,
I am also trying something similar. Did you find any solution ? Could you provide me with some details ?
Thanks,
Jagrit

User avatar
jmuehleisen
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4874
Joined: Thu Nov 09, 2006 2:46 pm
Location: Kampala, Uganda
Contact:

Re: customize article submission fields

Post by jmuehleisen » Mon Sep 13, 2010 2:59 pm

I've had good success with this extension: http://extensions.joomla.org/extensions ... ssion/5178

It does have quite a bit of simplification of the article submission form. It isn't quite as simple as you are talking about, but my users love it.
John Muehleisen
Visit my "Getting Started with Joomla" site, now with videos, tips, and new user tutorials:  http://welcometojoomla.com

jagrit2853
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Thu Sep 09, 2010 12:13 pm

Re: customize article submission fields

Post by jagrit2853 » Mon Sep 13, 2010 3:15 pm

Hi,
This works just fine. Thanks :).

But I also want to implement the feature that you had worked on,:
1. Fields like: Published, Front Page, Metadata, Keywords etc need not be displayed on the screen for Authors. But this is visible to the Admin, so that he can do the changes if needed.
2. Authors should be able to automatically publish their articles under a specific category (without using any admins involvement).

I am new to Joomla and am not very well versed with the codes. So you may have to provide a lil detailed instructions :).

Looking forward for your response.

Regards,
Jagrit

User avatar
jmuehleisen
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4874
Joined: Thu Nov 09, 2006 2:46 pm
Location: Kampala, Uganda
Contact:

Re: customize article submission fields

Post by jmuehleisen » Mon Sep 13, 2010 3:57 pm

Let me research the code a bit here.
John Muehleisen
Visit my "Getting Started with Joomla" site, now with videos, tips, and new user tutorials:  http://welcometojoomla.com

User avatar
jmuehleisen
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4874
Joined: Thu Nov 09, 2006 2:46 pm
Location: Kampala, Uganda
Contact:

Re: customize article submission fields

Post by jmuehleisen » Mon Sep 13, 2010 4:29 pm

This was actually pretty easy to accomplish.

Let me give you the theory, and then how to do it.

The page that the content submission component builds (the extension that we have been discussing) is actually generated by this file: (assuming that you are using the "let the user submit by category" option):

Code: Select all

/components/com_contentsubmit/views/article/tmpl/bycategory.php
There is part of the page that is hidden from the user if they do not have publishing privileges.

That code is inside a php "if" block that begins on line 90 and ends on line 101.

Then, the code below that is what gathers the author alias, publishing dates, meta data, etc.

So, all we need to do is to move the closing php "if" statement of that block a bit farther down in the file to enclose all of that in the "show this only if the user is a publisher or higher".

So, move the code in line 101, which is

Code: Select all

<?php endif; ?>
down to the end of the table rows, but right before the close of the table (between lines 161 and 162).

So, this is what lines 187 and 188 look like presently:

Code: Select all

</tr>
</table>
When you move the contents of line 101 down there, it will then look like this:

Code: Select all

</tr>
<?php endif; ?>
</table>
And with that simple hack, you have what you want.

This is what it looks like now (which is what I think you want):
content_submit_1.gif
You do not have the required permissions to view the files attached to this post.
John Muehleisen
Visit my "Getting Started with Joomla" site, now with videos, tips, and new user tutorials:  http://welcometojoomla.com

jagrit2853
Joomla! Apprentice
Joomla! Apprentice
Posts: 16
Joined: Thu Sep 09, 2010 12:13 pm

Re: customize article submission fields

Post by jagrit2853 » Mon Sep 13, 2010 5:39 pm

Thanks a Ton !!!!! It works perfectly fine. !!!

User avatar
jmuehleisen
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4874
Joined: Thu Nov 09, 2006 2:46 pm
Location: Kampala, Uganda
Contact:

Re: customize article submission fields

Post by jmuehleisen » Mon Sep 13, 2010 5:52 pm

Very good. It was actually a very easy modification to make. Move one line of code and it's done.
John Muehleisen
Visit my "Getting Started with Joomla" site, now with videos, tips, and new user tutorials:  http://welcometojoomla.com

generalbongo
Joomla! Apprentice
Joomla! Apprentice
Posts: 19
Joined: Tue Mar 02, 2010 8:51 am

Re: customize article submission fields

Post by generalbongo » Tue Dec 14, 2010 11:40 am

Super!

Exactly what I was looking for!

I have another question:

Under the field where you can insert your story I have 3 options: Image, New Page and Read More.

I also want to remove these buttons. Any idea how to do that?

Best regards

Bongo

User avatar
jmuehleisen
Joomla! Virtuoso
Joomla! Virtuoso
Posts: 4874
Joined: Thu Nov 09, 2006 2:46 pm
Location: Kampala, Uganda
Contact:

Re: customize article submission fields

Post by jmuehleisen » Tue Dec 14, 2010 3:01 pm

This one is actually easier to do and doesn't require any code modifications.

Those buttons are actually controlled through Joomla "plug-ins" ... so disabling the plug-ins will make the buttons disappear.

Go to Extensions -> Plug-in Manager.

You will find 3 plug-ins that you may want to "disable" ... "Editor Button - Image," "Editor Button - Read More" and "Editor Button Page Break."

That should make them disappear.

Now, keep in mind, however, that if you are using the JCE editor, these functions are also on the editor toolbar and turning them off under the editing box will not make them disappear from the editor toolbar.

To make them disappear from there, you will need to edit the toolbar settings in the JCE Editor plug-in.

But, if you are using the default TinyMCE editor, this is not an issue.
John Muehleisen
Visit my "Getting Started with Joomla" site, now with videos, tips, and new user tutorials:  http://welcometojoomla.com

kducey
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 135
Joined: Sat Nov 21, 2009 3:11 pm

Re: customize article submission fields

Post by kducey » Fri May 27, 2011 9:09 pm

I would like to modify the arcitlc submit form, but I am using 1.6. Does anyone have the code to be able to do this?

darylsob
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sat Jun 11, 2011 4:40 am

Re: customize article submission fields

Post by darylsob » Sat Jun 11, 2011 4:49 am

Few days I seen some good software which is looking promising to modify article submission field. I am interested to use it.

rollerskate
Joomla! Intern
Joomla! Intern
Posts: 60
Joined: Fri Apr 15, 2011 6:35 pm
Contact:

Re: customize article submission fields

Post by rollerskate » Mon Apr 04, 2016 3:17 am

Not sure if anyone is still working on this, but I'm trying to simplify article submissions as well and it looks like that form.php file isn't in the same place for the most recent Joomla version. Anyone know where it went, or if the .php changed?
Have fun, be good, play video games
http://www.TheRollerskate.com

User avatar
GODpleasers
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 226
Joined: Wed Jun 11, 2014 3:47 pm
Location: Wenatchee, Wa
Contact:

Re: customize article submission fields

Post by GODpleasers » Mon May 09, 2016 12:06 am

We are in Joomla! 3.5.1 and have the same question?

On the new article submission form I would like to remove the following fields so the registered members cant use them or see them.

Under the publishing tab...
the fields tags, status, featured, Start Publishing, end Publishing, access

Under the language tab...
the language field or the whole tab if possible?

Or this simply hide them so only super users or administrators can use them. Is this possible?
GOD Speaks internet radio- :-) GOOD :-) Music that employs life, deliverance, & restoration - COMPLETE :-)
http://godspeaksinternetradio.com/


Locked

Return to “General Questions/New to Joomla! 1.5”