PDA

View Full Version : Answer to the mystic custom page content module question


anarchystar
01-03-2005, 03:03 AM
I was having a problem figuring out how to add content to the custom page content module, I searched the forums and saw that there seemed to be quite a few people with the same problem. I followed the instructions I found in most of the posts and never got the results I wanted. Nor was there a definitive post that answered the question, but I was able to piece together the answer after reading about 6 different posts.
Anyway, if you want to add you own content to the cmps_index.php page, take the following steps.
1) go into style manger and click the drop down box in the style you want to use and click "add new template" make sure you name it "adv_portal_pagename"
substituting your page name for "pagename"
2) go into vba cmps and find the option maked "edit pages"
3) the top page list should say "Default / Hompage" click the "go" button to edit this page
4) the page template feild at the top of this page is blank, add the adv_portal_pagename to that field.
5) save

now that template will appear in the custom page content mod on you cmps_index page.

if you want the content to be in a block, like the other blocks on your page use the following code:
<table align="center" border="0" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" class="tborder" width="100%">
<tr>
<td class="tcat"><span class="smallfont"><b>$vba_options[portal_blockbullet] Custom Module 1</b></span></td>
</tr>
<tr>
<td class="$getbgrow" width="100%">

<!-- Begin custom code -->
Your custom code comes here.
<!-- End custom code -->

</td>
</tr>
</table>
<br />

jugo
01-03-2005, 09:57 PM
this will load the page via the ?page=XXXX url??

Our Sponsors
 

anarchystar
01-04-2005, 08:29 AM
not exaclty, this will add the content on your template to your cmps_index.php page, but to do what you want, just create the template, and then add the page under your vba cmps options (in place of editing the existing page there in step 3). then you can view it at ?page=yours

Grumpy ol' Jim
01-13-2005, 02:25 AM
Can you point us to an example please?

Thanks,

Grump

Our Sponsors
 

Oreamnos
01-13-2005, 03:35 AM
anarchystar,

Thanks! That's what i was looking for. Thanks for doing all the leg work.

giorgio
01-14-2005, 05:19 PM
Thanks so much, anarchystar. I am looking all around becos of the same issue too.