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

Category: Joomla 3

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

Hits: 722
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
Dean-O

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

You must login before you can submit an answer.

OTHER ANSWERS

0

Arn
Staff
16,770 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.

Regards,
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.
rockie12_us
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 Global parameters, and that should do the trick.

If this is for a template though that you plan to distribute, you can create a template override 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 php's get_defined_vars() function 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 Joomla forums?

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

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a 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!

Need more Help?

Search

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: support@InMotionHosting.com
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!