![]() |
|
#1
|
||||
|
||||
|
I'm stuck....
Ive read as much of the forum as I could before my eyes started to cross. OK I figured out how to make a module. Done. I figured out how to make a new template. Easy. Tested and it works in the preview. MY PROBLEM Ive tried everything. All page types and nothing works. Every time I try to make a new page all I get is a copy of the index page. This page should have a Car Dictionary on it. But all it has is the index copy. http://www.scalemotorcars.com/cmps_i...age=dictionary I tried to make the HTML page and link using the file page. Heres the original HTML page still active on the site. http://www.scalemotorcars.com/page76.html And this page was actually deleted off my page list but its still on the net. And yep its another copy of the index. http://www.scalemotorcars.com/cmps_i...d_20dictionary No matter what I do the new page is always a copy of the index. Even if I go and edit the new page and remove all modules or move them around all I get is the same index page copy. HELP!!!! Last edited by scalemotorcars; 07-27-2007 at 12:48 PM. |
|
#2
|
||||
|
||||
|
Hopefully I can help. The cmps_index.php is a hierarchy (sp?). Meaning the page designated "home" for it is always the first page you see.
Unless you code a copy of the cmps_index.php to call a certain page it will always pull the "home" when you navigate to it. I hope I got the problem right. I am helping out someone else and will post the code bit you use to modify a copy of cmps_index.php so it always calls a certain identifer as soon as I get a break again.
__________________
TheDarkTower.com--Stephen King Fan Site |
|
#3
|
||||
|
||||
|
Please I really need to be able to create separate pages that I can link to without going through the cmps index first. Thanks Ill be here waiting.
|
|
#4
|
||||
|
||||
|
Should be just a bit, I volunteer to help out and for some reason, my job still wants me to work some. <_<
put remember, make a COPY of the cmps_index.php and put the code in it or it will only pull the page you put in there. coming up
__________________
TheDarkTower.com--Stephen King Fan Site Last edited by towermatt; 07-27-2007 at 01:10 PM. Reason: clarification |
|
#5
|
||||
|
||||
|
You know what, you actually fixed my problem. THANK YOU!!!
I see it adds an ID# or letter to the end of the URL path and I can link to it from outside the index page. Its always the little thinks that get me.
|
|
#6
|
||||
|
||||
|
Oh yeah, if you want to simply have a link that opens it, that is totally he way to go.
If you want to have it as an index.php on a page, that is where the coded identifer comes into play. http://www.thedarktower.com/news that is a cmps page with coded identifier. I am so glad I could help. It makes me feel good after all the wonderful support I received here after getting started.
__________________
TheDarkTower.com--Stephen King Fan Site |
|
#7
|
||||
|
||||
|
I figured I would throw this out here for anyone else reading up.
I had wanted people to be able to click on a simple link (www.thedarktower.com/news) to see my CMPS news page. To do that, follow the steps below. -Make a folder on your server to house the index file (news in my example) -make a copy of the cmps_index.php and put it in there -open it up and find this: Code:
define('VBA_PORTAL', true);
Code:
define('VBA_PAGE', 'yourpageidentifer');
-to make it active, rename it "index.php" and it will be called whenever anyone navigates to the folder. PLEASE! Use a copy of the cmps_index.php to do this or it will call the coded page first on everything you do.
__________________
TheDarkTower.com--Stephen King Fan Site |
|
#8
|
||||
|
||||
|
Still seems to be working but maybe you can answer this. I noticed when I first added the madual then went to the page it had the /?pageid=#z
Now it just has ?pageid=dictionary Will I still be able to link from an outside page using (pageid=dictionary) or will I have to add the (#z) to the end? Thanks |
|
#9
|
||||
|
||||
|
Heres a little 80's flash back.
You Rock Dude!!! Answered it before I asked.
|
|
#10
|
||||
|
||||
|
If you put the identifier as "dictionary" then the page id should = dictionary.
You should not have to but the #z and to be honest, I haven't seen that before in my limited experience. The identifier for the page in the CMPS is the key to that. Should be exactly the same EDIT--NICE!! I'm an 80's kid so that worked for me.
__________________
TheDarkTower.com--Stephen King Fan Site Last edited by towermatt; 07-27-2007 at 01:52 PM. Reason: updated |
|
#11
|
||||
|
||||
|
While were at it.
In the CMPS file theres a forum path. That stays the same correct.? And if I make a new folder in my root directory, example, lets call it (pages) and then add the copy of the cmps index renamed to lets say (dictionary) I would add this to your code above. PHP Code:
PHP Code:
The link then being PHP Code:
Last edited by scalemotorcars; 07-27-2007 at 02:16 PM. |
|
#12
|
||||
|
||||
|
The VBA_page is the identifier for your page, not the name of the php file
the copy of your cmps_index page should stay that name and the coded identifier just calls the actual identifier for your page. The only reason you rename the cmps_index.php file to "index.php" is if you want that page to open automatically when that spot is visited. so...I have a copy of my cmps_index.php file in my /news folder on the server. I have created a page in my CMPS that I want to open when that is visited. The page identifier is "news" put in the code above and rename the cmps_index.php to "index.php" and it will automatically open to the page identified in the cmps. Remember: CMPS is a hierarchy so the identifier code just tells the cmps_index.php (copy) to call that specific page in your cmps (identifier) so you have it completley right except do not rename your cmps_index to "test_page"--the only reason to rename it is to make it "index.php" which is set to display automatically when they visit (in my example) http://www.thedarktower.com/news
__________________
TheDarkTower.com--Stephen King Fan Site |
|
#13
|
||||
|
||||
|
Oops I edited my post while I thought you logged off. Fairly sure I got it. Thanks again.
|
|
#14
|
||||
|
||||
|
Great to hear, remember to stop back by and help others out if you get a chance.
Its a nice thing all of us can do to help out this great product.
__________________
TheDarkTower.com--Stephen King Fan Site |
|
#15
|
||||
|
||||
|
You got it.
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Multiple copies (installs) of vBa on one domain? | trgreen | "How Do I..." Questions | 2 | 02-13-2007 11:06 AM |
| Making Modules Appear in "forum" pages | Kyosuked | "How Do I..." Questions | 3 | 08-16-2006 08:40 PM |
| Running multiple copies of CMPS | precharge | "How Do I..." Questions | 1 | 08-15-2006 07:33 AM |
| Making forum index as cmps the homepage | Tee | "How Do I..." Questions | 2 | 06-29-2005 05:03 PM |
| making cmps index | Milk Man | Troubleshooting / "How do I..." Questions | 14 | 04-08-2005 03:02 AM |