X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Embedded static page content on welcome page (https://forum.x-cart.com/showthread.php?t=54728)

david@fullOM 07-24-2010 01:17 PM

Embedded static page content on welcome page
 
Hi,
Has anyone any idea of how to display the content of a static page into welcome.tpl? The idea is that my client will be able to edit it through the admin in static pages.

I know that this is content management but as this is the only key page on the site where the client needs to edit content (and through the wysiwyg editor) I thought this might be a good way, although I've no real idea as to how to do it.

If anyone knows or can suggest some alternative (apart from installing a full CMS module), I'd be very grateful and interested.

Thanks a lot.

ARW VISIONS 07-24-2010 01:21 PM

Re: Embedded static page content on welcome page
 
could just edit the welcome text language variable via the admin section and use the wysiwyg that way.

david@fullOM 07-24-2010 01:28 PM

Re: Embedded static page content on welcome page
 
That's brilliant. My clients usually want a good deal of front end customisation that they can edit and that opens up a new world for client updating in many areas of a shop.

Thanks a lot,
David

PhilJ 07-24-2010 02:39 PM

Re: Embedded static page content on welcome page
 
Or, create a new static page, call the file welcome.html

Then in skin1/customer/main/welcome.tpl
Code:

{include file="./pages/en/welcome.html"}


All times are GMT -8. The time now is 02:37 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.