The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
How to create a custom CMS page
Hi,
I know there's the PHP Direct Evaluation Content Type, but the content / article one can create with it remains under the cms section. That is, the url will be content.php?... etc. I want a separate php page, something like www.mysite.com/mypage.php On this php page I want to display CMS widgets. Now I can create a custom page and display VB Header, navbar, footer just fine using this article as a reference point, but obviously I won't be able to display the CMS widgets in this, or can I? if yes, how? if no, is there any way? Thanks for reading... |
#2
|
||||
|
||||
The CMS seems to lack any flexibility or functionality in this regard at this time.
|
#3
|
||||
|
||||
Hi Alfa,
I found a way, but i am still testing. I will hopefully paste the code if I am able to achieve this. |
#4
|
|||
|
|||
I will follow up on this, I will love to do the same but Im bad with variables. Im trying to archive a page like this one here http://www.minatica.be/content/
but I have no clue where to start from. I seen many sites getting this done but unfortunately for me is not the case. |
#5
|
||||
|
||||
Actually I gave up on the idea as it was too much work and I had little time. But it can be done. This is how to do it,
The following is code of a sample custom page, which has the VB header, navbar and footer and CMS Widgets as it's main content. The page is far from finished, like I said I abondoned the idea of implementing this. I am sharing the code so that if someone else wants to do this he has a starting point. PHP Code:
--------------- Added [DATE]1290712997[/DATE] at [TIME]1290712997[/TIME] --------------- Quote:
|
#6
|
|||
|
|||
The widgets do work in this example. Does anyone know how to
intialize {vb:raw layout}? That would be the next step which I am trying to work out now. Thank you! Rick |
#7
|
|||
|
|||
Why raw layout?
Shouldn't it be {vb:raw output} I have tested this but I don't see that cms widgets work on custom pages |
#8
|
||||
|
||||
If it's just for the url's sake, you can create a url rewrite in your .htaccess so http://whatever.tld/foo.php
directs to http://whatever.tld/content.php?id=9001 it's actually pretty easy if you google it up (try "url rewrite htaccess") this would spare you the hacking/coding and you'd keep the benefits of the vbcms like editor, modifyable site, etc. |
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|