Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls

Replacing static page headings with images

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-22-2010, 10:48 PM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Replacing static page headings with images

Hi, is it possible to replace the static page titles with an image instead?
I presume this might be quite difficult because the static page pulls the heading from the title that you give the static page.
Many thanks in advance.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #2  
Old 08-23-2010, 03:14 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Replacing static page headings with images

You will have to edit dialog.tpl and put an if statement for {$title}

{if $main ne "pages"}{$title}{/if}

then just insert image in the static page body
You may also need to edit skin1/cusotmer/main/pages.tpl - there is a h1 tag with the title
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Sisom (08-25-2010)
  #3  
Old 08-25-2010, 09:30 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Re: Replacing static page headings with images

Many thanks for your help Steve. I only want to use an image heading on some of the static pages, is that possible?
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #4  
Old 08-25-2010, 11:06 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,201
 

Default Re: Replacing static page headings with images

Use {$page_data.pageid eq "xxx"} to restrict to individual pages
__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Sisom (08-25-2010)
  #5  
Old 08-25-2010, 03:18 PM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default Re: Replacing static page headings with images

Thanks very much Steve, that's exactly what I wanted! I'll give it a try and let you know how I get on.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 02:50 PM.

   

 
X-Cart forums © 2001-2020