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

keystone 06-17-2009 12:41 PM

Re: Create Embedded Page not shown under Help.
 
Sweet, It worked. Ok so now my next question is this, since I have my robots.txt file set so that *.php pages are not indexed ( I have cdseo regular not pro) to set a line up in my robots file to allow the static pages within "pages/..." to be indexed? There won't be danger of duplicate content on those pages since I'm not rewriting the URL's. I didn't know if there was a way to set up exceptions on a robots file or not.

hoosierglass 06-17-2009 12:45 PM

Re: Create Embedded Page not shown under Help.
 
Good to hear.

The files in skin1/pages/US/ are html not php. This is why I set mine up the way I do. It points to an html page not a php file.

Mike


Quote:

Originally Posted by keystone
Sweet, It worked. Ok so now my next question is this, since I have my robots.txt file set so that *.php pages are not indexed ( I have cdseo regular not pro) to set a line up in my robots file to allow the static pages within "pages/..." to be indexed? There won't be danger of duplicate content on those pages since I'm not rewriting the URL's. I didn't know if there was a way to set up exceptions on a robots file or not.


keystone 06-17-2009 12:54 PM

Re: Create Embedded Page not shown under Help.
 
Hoosierglass,
I re-read your system of setting that up in the help.tpl and it looks like it also would have worked. I see that the files in the pages/US/ directory are html but the actual link to them points to something like http://www.uscandleco.com/pages.php?pageid=6. If I point directly to the file like this http://www.uscandleco.com/skin1/pages/US/fundraising.html then I lose all the extra stuff (links,header,footer,etc..) and only get the text. Obviously if I get CDSEO pro that would be taken care of but I was wondering if there was another way. I have been seeing a few people having issues with CDSEO pro and having to enter stuff (meta info) twice...I don't know if they just don't have it set up right or what but I was kind of holding off on upgrading. Do you know how to block all .php file except pages.php?... in a robots.txt file? I don't mind having those pages indexed as php urls instead of html but I'm blocking them at the moment.

hoosierglass 06-17-2009 01:31 PM

Re: Create Embedded Page not shown under Help.
 
You would have to limit each .php type by line, and then make sure that pages.php was allowed. Basically this would eliminate a global command to block all php ie Disallow: /*.php would be no good and you would have to list each .php file individually.

Mike

keystone 06-17-2009 01:35 PM

Re: Create Embedded Page not shown under Help.
 
Oh, That would be a good bit of work plus having to update the robots.txt file each time I added a new page. Not a lot of fun. Ok well I'll have to think about what I'm going to do.


All times are GMT -8. The time now is 12:35 PM.

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