InMotion Hosting Support Center

can a template parameter turn off article options like author, etc

Category: Joomla 3

n/a Points
2013-12-20 6:32 pm EST

Hits: 753
I would like to create template parameters which can turn off article parameter like author name, create date, etc without having to go to the article manager

Thanks in advance

You must login before you can ask a follow up question.

You must login before you can submit an answer.



40,993 Points
2013-12-20 6:46 pm EST
Hello Dean-O,

Thanks for the question! From what I've read in this article on Joomla templatesr, the parameters do not include those items. Under the Basic Details section, you'll see that this information is in the templateDetails.xml file. You can remove it or edit in there.

I hope that helps to answer your question! Please let us know if you require any further assistance.

Arnel C.

You must login before you can post a comment about this answer.

Can you give an example showing HOW I can remove this via templateDetails.xml? I read that page but it did not show how to do this. I have used other parameters from the templateDetails.xml file. I just don't know how do remove the article header info via template param. If you could show how, that would be great.
3 Points
2013-12-21 11:04 am EST
Hi Dean-O,

If this is a site wide change that you'd like to make, you can make the change just one time in <a href='' target='_blank'>Global parameters</a>, and that should do the trick.

If this is for a template though that you plan to distribute, you can <a href='!_core' target='_blank'>create a template override</a> and simply remove the article published date / etc.

I tested this quite a bit this morning, trying to change article parameters using template parameters. In my template, I used <a href='' target='_blank'>php's get_defined_vars() function</a> to print all the variables in php at that moment. When doing this, it did not include any article data. I tried several different methods, but I couldn't change article parameters when they hadn't been loaded yet.

I'm sure there is a way you can do what you're trying to do it, but I've been running test after test in the last hour, and havn't been able to modify an article paramater within a template. Have you thought about posting your question in the <a href='' target='_blank'>Joomla forums</a>?

Let me know if you find a solution, I'm very interested in seeing how it's done.
5,399 Points
2013-12-23 1:08 pm EST
Like this Question?

Joomla Community Google+ Hangout #3

June 3rd, 2014

Thank you @RustyJoomla for letting me speak on the Joomla Community Google+ Hangout!

Click here to watch!

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!