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

Confused with pageid!

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 05-24-2007, 02:05 AM
 
Robin Layfield Robin Layfield is offline
 

Newbie
  
Join Date: May 2007
Posts: 6
 

Default 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
__________________
X-Cart Version: 4.1.7
Reply With Quote
  #2  
Old 05-24-2007, 02:10 AM
 
Robin Layfield Robin Layfield is offline
 

Newbie
  
Join Date: May 2007
Posts: 6
 

Default 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!
__________________
X-Cart Version: 4.1.7
Reply With Quote
  #3  
Old 05-24-2007, 02:43 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #4  
Old 05-24-2007, 03:15 AM
 
Robin Layfield Robin Layfield is offline
 

Newbie
  
Join Date: May 2007
Posts: 6
 

Default 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.
__________________
X-Cart Version: 4.1.7
Reply With Quote
  #5  
Old 05-24-2007, 03:30 AM
 
balinor balinor is offline
 

Veteran
  
Join Date: Oct 2003
Location: Connecticut, USA
Posts: 30,253
 

Default 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.
__________________
Padraic Ryan
Ryan Design Studio
Professional E-Commerce Development
Reply With Quote
  #6  
Old 05-24-2007, 04:29 AM
 
carpeperdiem carpeperdiem is offline
 

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

Default 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
__________________
xcart 4.5.4 gold+ w/x-payments 1.0.6; xcart gold 4.4.4
Reply With Quote
  #7  
Old 05-24-2007, 08:03 AM
 
Robin Layfield Robin Layfield is offline
 

Newbie
  
Join Date: May 2007
Posts: 6
 

Default 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...
__________________
X-Cart Version: 4.1.7
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 07:37 PM.

   

 
X-Cart forums © 2001-2020