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

Create Embedded Page not shown under Help.

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 06-17-2009, 07:55 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Create Embedded Page not shown under Help.

I want to create an embedded page that doesn't automatically put a link under the "Help" section. I want to be able to put the link somewhere else on my pages. I tried making a static page and copying the home.tpl code to it and just editing the area I want my new content but the .html page just showed all the code (i'm thinking because my new static page was saved in the root not in skin1, is that correct?) Is there an easier way to do this?
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #2  
Old 06-17-2009, 08:18 AM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 974
 

Default Re: Create Embedded Page not shown under Help.

If it is a static page then it should be located in /skin1/pages/US/

I do not know why your page only shows code.

Here is how we do it.....

Once you create your static page you will want it to link onto you home page in some way. For this example I will use our Weekly Specials page.
I wanted this page link to be like a category and listed as the first item in the category list. So in categories.tpl just before
Quote:
{foreach from=$categories item=c}
I put the call to the static page
Quote:
<a href="http://www.kennedyhardware.com/weekly-special.html" class="VertMenuItems"><b>Weekly Special</b></a><br />

Now we have CDSEO Pro so it has changed
www.mywebsite.com/skin1/pages/us/pages.php?pageid=## to the html version. There are other ways to do this and to be honest this is probably not the best way when using CSS.

Hope this helps and gives you ideas.

Mike
__________________
X-Cart Gold 4.7.7
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
  #3  
Old 06-17-2009, 08:43 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: Create Embedded Page not shown under Help.

Thanks for your reply. The way my static pages go is that if I create an embedded page it gets saved into skin1/pages/US/ but if I create a root level, it saves it in my root (obviously) the problem I'm having is that my embedded level pages automatically gets a link placed under the "Help" section and I'm not sure how to make a page not have a link there. My help section would get pretty long and cluttered if I just let them go in there. How do you get the link out of the Help section?

Also do you have the "parse smarty tags" box checked or unchecked in the admin/static pages...?

The page I want to add is a wedding centerpiece ideas page so customers can get an idea of how affordable different decorations can be. (I'd probably add the link to the bottom of my page but I'm not sure yet.)
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #4  
Old 06-17-2009, 08:56 AM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 974
 

Default Re: Create Embedded Page not shown under Help.

My parse is unchecked. Use embeded and click disable. You can still create a link to the file if it is disabled.
__________________
X-Cart Gold 4.7.7
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
  #5  
Old 06-17-2009, 08:57 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: Create Embedded Page not shown under Help.

Ahhhh....ok that makes sense. I'll give that a shot. Thanks.
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #6  
Old 06-17-2009, 09:45 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: Create Embedded Page not shown under Help.

Hoosierglass,
That did work for me. If I create the embedded page and disable it when I enter http://www.uscandleco.com/pages.php?pageid=12 into the address bar I get a "page not found" error. If I type the actual URL (http://www.uscandleco.com/skin1/pages/US/centerpiece-ideas.html) I get the text I entered but it is not embedded within the page. (What I mean is that there is no header, nav links, footer, nothing else but the text) Basically I lose the "embedded" part of embedded.

How did you keep all the template stuff intact doing a direct link with the file disabled?
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #7  
Old 06-17-2009, 11:42 AM
 
carpeperdiem carpeperdiem is offline
 

X-Guru
  
Join Date: Jul 2006
Location: New York City, USA
Posts: 5,399
 

Default Re: Create Embedded Page not shown under Help.

Quote:
Originally Posted by keystone
I want to create an embedded page that doesn't automatically put a link under the "Help" section. I want to be able to put the link somewhere else on my pages.

Ah...

http://forum.x-cart.com/showthread.php?p=178375#post178375
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #8  
Old 06-17-2009, 11:58 AM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 974
 

Default Re: Create Embedded Page not shown under Help.

Here is what we do for our help menu.....

Contact Us
Privacy Statement
Terms & Conditions

are all part of help and look like this in the help.tpl file.....
Quote:
<a href="help.php?section=contactus&amp;mode=update" class="VertMenuItems">{$lng.lbl_contact_us}</a><br />
<a href="help.php?section=business" class="VertMenuItems">{$lng.lbl_privacy_statement} </a><br />
<a href="help.php?section=conditions" class="VertMenuItems">{$lng.lbl_terms_n_conditions }</a><br />

The line inside help.tpl {include file="pages_menu.tpl"}
is what loads your static pages. If you do not want them all to show then comment it out. Use your CDSEO Pro to set your url for the page you create. Now in the help.tpl file you can add a link like this to your static page.
<a href="http://www.kennedyhardware.com/order-catalog.html" class="VertMenuItems">Order Catalog</a><br />

Where you place these is where they will order in the menu. When you do it this way the pages need to be marked as embeded in the static pages menu on the admin side. This will take care of the items that you want in the help menu. For items you want elsewhere use the same cose to place it where you want. If it is in a verticle menu then you can keep the class or you can change it to whatever.

Mike
__________________
X-Cart Gold 4.7.7
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
  #9  
Old 06-17-2009, 12:28 PM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default Re: Create Embedded Page not shown under Help.

Thanks guys,
Hoosierglass, I think part of my issue is that I don't have CDSEO pro so I can't do it quite like you did. I think that carpeperdiem's hack will work though. I'll give that a shot. I love the forums...
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote
  #10  
Old 06-17-2009, 12:34 PM
  hoosierglass's Avatar 
hoosierglass hoosierglass is offline
 

X-Adept
  
Join Date: Aug 2006
Location: Zionsville, IN
Posts: 974
 

Default Re: Create Embedded Page not shown under Help.

I assumed you had it based on you signature.

The only difference is the url. Your should look something like...
<a href="http://www.yourwebsite.com/pages.php?pageid=12 " class="VertMenuItems">Order Catalog</a><br />

You might want to consider CDSEO Pro.

Mike
__________________
X-Cart Gold 4.7.7
Custom Work from www.luminointernet.com
www.indy-pen-dance.com
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



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 09:59 PM.

   

 
X-Cart forums © 2001-2020