| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Confused with pageid! | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() 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 |
|||||||
#2
|
|||||||
|
|||||||
![]() 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 |
|||||||
#3
|
|||||||
|
|||||||
![]() 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 |
|||||||
#4
|
|||||||
|
|||||||
![]() 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 |
|||||||
#5
|
|||||||
|
|||||||
![]() 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 |
|||||||
#6
|
|||||||
|
|||||||
![]() Quote:
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 |
|||||||
#7
|
|||||||
|
|||||||
![]() 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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|