View Full Version : I'm soooooooooo close...
Jason McConnell
06-30-2004, 12:40 PM
I've been up and down the manual, and I'm probably so close to the problem that I can't see the answer lol :D
My problem is this: In the last section of the Pages manual, Linking to your Page, it describes how to link to it, but I can't find where in the site's directory to save such pages! Is this something arbitrary? Can I just create a new folder in my site's root and call it pages, and then link to them from there? Or do they have to be placed in a predetermined place and I just missed it?
mholtum
06-30-2004, 12:47 PM
You lost me. Are you talking about the pages you create in CMPS control panel?
Jason McConnell
06-30-2004, 12:58 PM
Yes. Pages that I want to be displayed in the Custom Content section above the News posts. Say I'd write an article in html, then place the article in a template. I'd name the template article1.php, and then link to it as http://yoursite.com/index.php?page=article1 right?
So in Page Title, I have Article1
in Page Identifier I have http://yoursite.com/index.php?page=article1
in Page Template, i have template1
for Custom Style, it's set to default.
I've got to be missing something... the page id points to Article1 but I have no idea where to place that file? Does it matter? In previous posts, it was said that html can be used, but what about vb code? I'm assuming that's a given, what with how this portal is powered and all :D But there was nothing in that manual section about filling in the content, just publishing it.
Brian
06-30-2004, 01:37 PM
Um... There's quite a bit wrong there...
Why did you name a template article1.php? It should just be article1.
Page identifier should be article1 (or whatver you want to appear in the URL, after the 'page=' part.
Page template should be article1 (the name of the tempate that you want displayed on that page).
mholtum
06-30-2004, 02:10 PM
it is stored in the template. You dont actually save the html page. I designed a page, then copied the code into a template, saved the template.. here is what I did. http://www.ravensrealm.net/index.php?page=staff
You dont actually place the file anywhere.
Jason McConnell
06-30-2004, 02:11 PM
Shouldn't the template have an extension so that it could be saved? I'm thinking that the template is it's own file... is that wrong? I see.. the template entry is an insertion of code into an existing file, right?
I'm sorry I'm such a pain in the ass, but I still don't understand where to put the content of the new page.
Please bear with me, before I started using vBa CMPS I had very little knowledge of php, and now it's rudimentary to say the least.
Jason McConnell
06-30-2004, 02:14 PM
Sorry, I didn't see mholtum's post... I think I got it. I'll brb :)
mholtum
06-30-2004, 02:26 PM
When you create a template for a page, it is the same as creating a template for a module. Just insert your code and click save. CMPS does the rest. no extension needed.
You really dont need any "PHP brain power" so to speak, to use CMPS in this mannor..
Jason McConnell
06-30-2004, 02:28 PM
OK, I think I see how it's done. Name the article, establish a link for it, update the template with the content, and then save it. Am I getting this right so far? lol
I'm getting that, mh :) Thanks for the help, direct and indirect. The support in this forum is truly outstanding :)
mholtum
06-30-2004, 02:39 PM
You learn fast Grasshopper. When you are able to snatch this stone from my hand, you will truly be ready. :)
Jason McConnell
06-30-2004, 02:42 PM
I can deal with a learning curve, so long as I remember my cleats :D
mholtum
06-30-2004, 02:43 PM
Sorry couldnt resist.
Do this:
1: Create a template that will be used for your custom page name it adv_portal_whatever.
2: Create a Custom Page.
Name it acourding to your template.
In this case "whatever".
Page Identifier: whatever
Page template: "adv_portal_whatever"
Modules Enabled: Custom Page Content MUST be checked
This is what my custom page link is http://www.ravensrealm.net/index.php?page=staff instead of page=staff at the end place page=whatever and your page will display
Jason McConnell
06-30-2004, 03:19 PM
Thanks for the help Mh!
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.