Jump to content
vyciook

HTML code in CMS page

Recommended Posts

how to add html code into cms page? or is there other way to create custom page where i can add html code?

Share this post


Link to post
Share on other sites

Hi guys,

 

I was trying to find something similar easy solution but with tinyMSE. There in my cause (PS1.4.7.3) the editor don't want to work with some html codes (eg.DIVs).

 

So I was looking around and found following:

 

I found a solution (thanks Emmanuel Paris) that might help you or anyone who wants to put some html tag on particular CMS page.

 

You just need to put this bit code {if $request_uri|strstr:"13"}YOUR HTML CODE{/if} on cms.tpl. The best place is of course just before or just next to {$cms->content}

 

The number 13 is id of the CMS page you want to use the html code there.

 

I tried to put a facebook plugin between <div></div> tags and it works!

 

 

I hope it help

 

David Nemec

  • Like 1

Share this post


Link to post
Share on other sites

Hi guys,

 

I was trying to find something similar easy solution but with tinyMSE. There in my cause (PS1.4.7.3) the editor don't want to work with some html codes (eg.DIVs).

 

So I was looking around and found following:

 

I found a solution (thanks Emmanuel Paris) that might help you or anyone who wants to put some html tag on particular CMS page.

 

You just need to put this bit code {if $request_uri|strstr:"13"}YOUR HTML CODE{/if} on cms.tpl. The best place is of course just before or just next to {$cms->content}

 

The number 13 is id of the CMS page you want to use the html code there.

 

I tried to put a facebook plugin between <div></div> tags and it works!

 

 

I hope it help

 

David Nemec

 

Perfect solution! It worked for me very well.

 

No need to buy any modules/plugin, and you get all the flexibility to build any layout/script/style you need to, because you will be coding pure HTML.

 

Thanks very much, davnem.

Share this post


Link to post
Share on other sites

I know it's an old post but the only one close I found.

I work in 1.6 and noticed the HTML editor doesn't work at all (it even just looks like a plain text editor>

CSS classes, hr, div, ...you name it, it' not being accepted and most the time even stripped out the moment you hit the save button.

  1. Anyone any idea why it's even there (use code edit)?
  2. Anyone any idea how to solve it, how to turn it into a real HTML editor?

Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More