Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

New .tpl Page? Rate Topic   - - - - -

 

Posted 15 February 2010 - 12:54 AM #1

Any help would be greatly appreciated,

I need to add a new (physical) .tpl file for content/code not possible through the cms.

Thanks in advance.

James

 
  • jobosales
  • Senior Member
  • Members
  • Join Date: 04-Nov 06
  • 3114 posts

Posted 15 February 2010 - 01:02 AM #2

What version are you running?

Bob
CS-Cart 2.0.14 (testing)

 

Posted 15 February 2010 - 01:30 AM #3

The latest 2.0.12

 
  • jobosales
  • Senior Member
  • Members
  • Join Date: 04-Nov 06
  • 3114 posts

Posted 15 February 2010 - 02:09 AM #4

Not sure whether this would work for you or not but thought I would toss it out there. Have you considered using an Unique HTML block on your page? This allows quite a bit of flexibilty.

Beyond that, there are a couple of hooks in /skins/YOURSKIN/customer/views/pages/view.tpl that might help:
{hook name="pages:page_content"}
	{$page.description|unescape}
	{/hook}
{hook name="pages:page_extra"}
{/hook}
You could probably use some "if" statements in the hooked file to trigger different includes for different looks.

Bob
CS-Cart 2.0.14 (testing)

 

Posted 15 February 2010 - 02:17 AM #5

Thanks jobo,

I'll give these a try, all I'm trying to do is add a php include which is easy enough in a .tpl but not possible in tinyMCE.

Thanks again!

James
CS-Cart 2.2.4
ePlanet Design

 

Posted 15 February 2010 - 03:16 AM #6

Got it working.
CS-Cart 2.2.4
ePlanet Design

 
  • xrussx
  • Junior Member
  • Members
  • Join Date: 31-May 10
  • 7 posts

Posted 03 June 2010 - 02:27 PM #7

Could you explain how you got this to work? I am looking for this... Thanks