php code inside the pages

General project discussion. NOT for help questions.
Post Reply
bkiss
Forum Members
Forum Members
Posts: 16
Joined: Sat Dec 17, 2005 9:12 pm

php code inside the pages

Post by bkiss »

Hi,

First , Happy New year for everyone!

I am a ne user, so maybe it's not so complicated, and somebody will help me.
The problem is : i want to integrate in the pages some php code.
With the main editor i cannot :( ...

I want to try with " "  for example.  :)

If  you have suggestions, or solution please let me know,

Thank you,

Kiss Barni
Marosavasarhely,
Transylvania,
Romania
westis

Re: php code inside the pages

Post by westis »

Hi bkiss & welcome to CMS Made Simple!

You can use a user-defined tag. Put the php code there, but leave out the opening . Then put the tag in your template or page like {nameofuserdefinedtag}. User-defined tags are found in Extensions -> User-defined tags.
bkiss
Forum Members
Forum Members
Posts: 16
Joined: Sat Dec 17, 2005 9:12 pm

Re: php code inside the pages

Post by bkiss »

Huh,

Thank you, it's really simple, and it's working great.
I don't see romanian language...tell me if i'm wrong..
If there is not language in romanian, then you can count on me ;)
I will bother you, if i have questions... :)

Happy New Year!

Barni
westis

Romanian translation

Post by westis »

Great! :-)

You're right, there's not yet a Romanian translation. Would be great if want to work with that! The first thing you should do is register yourself in the CMSMS Forgeand then register a Romanian language project.

Very soon a translation tool will be ready for use, to make translations of both the core and modules very easy.

And please bother us with more questions. ;)
Alfredo

Re: php code inside the pages

Post by Alfredo »

I need to insert a code:




I can't create a User_defined_tag
Says Invalid Code Entered.

What's the best way to do it?
bkiss
Forum Members
Forum Members
Posts: 16
Joined: Sat Dec 17, 2005 9:12 pm

Re: php code inside the pages

Post by bkiss »

Hi Alfredo,

My personal oppinion is to insert this code directly in HTML code of the page, not in user defined tag. You can see the html code if you edit the page and push the HTML button of the wysiwyg editor, and you can insert your code here.
Your code isn't php code... so that's why i say this.
Maybe I'm worng but you need to try, if not you will need to search the forum about "javascript in the pages"  :)

Good luck

Barni
Post Reply

Return to “General Discussion”