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)
-   -   Confused with pageid! (https://forum.x-cart.com/showthread.php?t=31395)

Robin Layfield 05-24-2007 02:05 AM

Confused with pageid!
 
Hi there,

I'm having some difficulty with linking to pageid's from a graphical footer that I have set up. The pageid numbers that the static page list claims are correct either link to a different static page or I get a "page not found" error. For example: my 'Useful links' page is (according to the static page list) page_001.html but I can only reach it by using the pageid=3. Shouldn't the pageid be 1 for this section?

In my static pages list I can see 5 pages with their relevant links (when I mouseover them). If I look in the pages/US/ folder via the template editor I have 9 files (page_001 - 009.html). This is pretty confusing in itself. Where have the other pages gone and why don't they show up in the static pages list?

Thanks for any help anyone can provide.

Regards

Dan

Robin Layfield 05-24-2007 02:10 AM

Re: Confused with pageid!
 
I've located the missing pages (by pressing the 'Find Pages' button - doh!) but I am still confused as to where X-Cart defines the pageid for each static page. Either something has been slightly screwed up and it is assigning the wrong pageid's or I am being daft and looking in the wrong place!

Any enlightenment would be greatly received!

balinor 05-24-2007 02:43 AM

Re: Confused with pageid!
 
The name of the html X-Cart creates and the page id will not match unless you make them match. You can name the html whatever you want, as you will never call that by itself. The page id is assigned in numerical order, each new one you create is the next number in the series. You call static pages using this:

<a href="pages.php?pageid=x">link</a> where x is the X-Cart assigned pageid.

Robin Layfield 05-24-2007 03:15 AM

Re: Confused with pageid!
 
Thanks Balinor (I had a feeling it would be you who provided the answer!).

Is there no way of re-ordering the pageid's within X-cart? At the moment I can potentially have 6 or 7 files on the go but, dependent on the number of pages I have generated and then deleted, I may well be using pageid=26. This seems pretty counter-intuitive and it would make logical sense to be able to reorder these into a sensible numerical layout.

balinor 05-24-2007 03:30 AM

Re: Confused with pageid!
 
I have never tried modifying or resetting the pageid, but you will have to go into the database directly if you want to try that.

carpeperdiem 05-24-2007 04:29 AM

Re: Confused with pageid!
 
Quote:

Originally Posted by Robin Layfield
At the moment I can potentially have 6 or 7 files on the go but, dependent on the number of pages I have generated and then deleted, I may well be using pageid=26. This seems pretty counter-intuitive and it would make logical sense to be able to reorder these into a sensible numerical layout.


The internal pageid is totally a meaningless and random ID. In a more perfect x-cart you will not use these pageid numbers, except for internal linking, and instead, you will use a mod that allows you to name each static page something intelligent, such as www.domain.com/help/shipping.html or www.domain.com/help/wholesale.html

I use the CDSEO for static links, and it does exactly this.

I wouldn't worry about your internal link id.

Jeremy

Robin Layfield 05-24-2007 08:03 AM

Re: Confused with pageid!
 
Thank you for both the above responses. I think I will try editing the DB just for the sake of it but I will also take a look at CDSEO for future reference. Thanks to you guys things are making a little more sense...


All times are GMT -8. The time now is 03:47 PM.

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