The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Jan 27, 2012 5:05 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Wed Jan 05, 2011 3:23 pm
Posts: 5
Location: Bruxelles
Hello

This is the first time I post a question in a forum. So I am still in its infancy. Also, I'm not a crack of Joomla!, PHP and many others.

I am looking for how to insert a php function in the html code of Joomla article.

A concrete example of my problem: When I insert <p><?php echo "This is a test";?></p> in the html code of an article, the string changes into
<p>
<!--?php echo "This is a test";?--></p>

In other words, the editor changes the php statement into an html comment.

Is there a way to solve this problem? If so, I would most appreciate a help for it ?

Thank you in advance for the help

Pierre Faniel


Top
 Profile  
 
PostPosted: Fri Jan 27, 2012 5:24 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Aug 07, 2010 12:03 pm
Posts: 32
Location: East Coast US
Use the JCE Editor: http://www.joomlacontenteditor.net/
Besides a whole bunch of functionality, you can configure it to allow code.

joomlawebsitesbyjim.com


Top
 Profile  
 
PostPosted: Thu Mar 08, 2012 11:41 pm 
Joomla! Explorer
Joomla! Explorer

Joined: Mon Mar 09, 2009 9:54 am
Posts: 459
Location: Dallas, TX
This is what I normally do to insert not too complex PHP code inside the articles.

First install this extension: http://extensions.joomla.org/extensions ... ntent/4470

Then Enable it inside the Plugin Manager.

If you click inside the Plugin you can go to Parameters and set everything like I do on the Picture 1 below.

Then finally I disable the Editor TinyMCE inside the Global Configurations and I use the Articles without any Editor at all.

I work in plain code display.

Finally after all that I start pasting whatever needed PHP Code.


You do not have the required permissions to view the files attached to this post.

_________________
http://cmsteachings.com - Joomla Tips & Tutorials
http://ubrainmedia.com - My Joomla Company
My Joomla Advice is my personal experience. It does not means I am right or wrong. It just means that I work with Joomla in my own way and it works for me.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 



Who is online

Users browsing this forum: No registered users and 27 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group