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)
-   -   Create Embedded Page not shown under Help. (https://forum.x-cart.com/showthread.php?t=48139)

keystone 06-17-2009 07:55 AM

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?

hoosierglass 06-17-2009 08:18 AM

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

keystone 06-17-2009 08:43 AM

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.)

hoosierglass 06-17-2009 08:56 AM

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.

keystone 06-17-2009 08:57 AM

Re: Create Embedded Page not shown under Help.
 
Ahhhh....ok that makes sense. I'll give that a shot. Thanks.

keystone 06-17-2009 09:45 AM

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?

carpeperdiem 06-17-2009 11:42 AM

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

hoosierglass 06-17-2009 11:58 AM

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

keystone 06-17-2009 12:28 PM

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...

hoosierglass 06-17-2009 12:34 PM

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


All times are GMT -8. The time now is 05:07 PM.

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