|
|
Members: 10,140
Threads: 38,830
Posts: 159,367
Online: 25
Newest Member:
Xoote |
|
|
|
 |
 |
|
 |
08.04.2004, 02:02
|
#1
|
|
Junior Mamber
Join Date: Apr 2004
Location: Minnesota, USA
Posts: 26
|
Best method of displaying dynamic (non-static) pages
Not sure the best way to describe what I'm asking for... but I'll try.
Mambo erases my PHP code when trying to drop it in the 'html' view when creating a page.
Example: Trying to create a new FAQ page, but instead of typeing 40 faq pages, I am trying to write ONE page that will pull that info from the data base. I tried creating a php page in dreamweaver first and then droping that code into the 'html' mode on editor.
The only (successful) example I can show you is what i did once apon a time ago using .asp.
http://www.lakelida.com/fishing/fish.asp?FishID=14235
http://www.lakelida.com/fishing/fish.asp?fishID=14102
Note same exact page... different fishid
What is the best method (other than making the pages then using "wraper") for diplaying dynamic pages? I must be missing something.
Thanks in advance.
|
|
|
08.04.2004, 03:21
|
#2
|
|
Expert Mamber
Join Date: Apr 2004
Location: Virginia Beach, Virginia USA
Posts: 309
|
Re: Best Method of Diplaying non-static pages
Have you considered using Content section or Content categories for your FAQ?
If the FAQ is simple and you do not need categories, create a section called FAQ, but do not publish it, then create a category called FAQ under it. You can then create FAQ items for the category and publish it. When you create the menu link for the FAQ, link to the category rather than the section.
If you need a FAQ with Categories, then publish the section and create as many categories are required. You can then assign the section to a menu link, or...
you can create a menu link for the section as a top level menu item and add the categories as submenu items. I use this a lot because it allows users to jump immediately to the FAQ they need to read.
Quote:
|
Originally Posted by mame
Not sure the best way to describe what I'm asking for... but I'll try.
Mambo erases my PHP code when trying to drop it in the 'html' view when creating a page.
Example: Trying to create a new FAQ page, but instead of typeing 40 faq pages, I am trying to write ONE page that will pull that info from the data base. I tried creating a php page in dreamweaver first and then droping that code into the 'html' mode on editor.
The only (successful) example I can show you is what i did once apon a time ago using .asp.
http://www.lakelida.com/fishing/fish.asp?FishID=14235
http://www.lakelida.com/fishing/fish.asp?fishID=14102
Note same exact page... different fishid
What is the best method (other than making the pages then using "wraper") for diplaying dynamic pages? I must be missing something.
Thanks in advance.
|
|
|
|
08.04.2004, 16:44
|
#3
|
|
Baby Mamber
Join Date: Apr 2004
Location: Brazil
Posts: 20
|
Re: Best Method of Diplaying non-static pages
Hello,
I thought that you could have a .php page with wrapper (althought I never used...)
If you look into the "Best Method for Displaying a statis page", you can sse that it is posted there if you want to have .php you can use mambots (again, never used, because I am new on Mambo  ).
Hope I helped.
Regards
Marcos
|
|
|
08.04.2004, 23:30
|
#4
|
|
Baby Mamber
Join Date: Apr 2004
Posts: 1
|
Re: Best method of displaying dynamic (non-static) pages
hey man , im from argentina and i add to my icq , im talk to marcos ..
im searching the same thing ... how to display records from an existing table ... becouse i made that in asp and now , whit Mambo , is more easy to make a site , like my problem , a hardware provider ... to list all product..
so if i can to inserte alllllll products again , i will comite suicide ... !!!!!!!
so , we can work toghether ..
Adios
Sebastian
|
|
|
08.04.2004, 23:35
|
#5
|
|
Senior Mamber
Join Date: Apr 2004
Posts: 125
|
Re: Best method of displaying dynamic (non-static) pages
ok, i friend of mine sent me a component with 1 file only!!! named com_whatever
so told me to upload it at components/com_whatever and then linking to it with ?option=com_whatever ...
i haven't tried.. but does this workk?? is there any problem with this weird way of adding php pages???
|
|
|
08.04.2004, 23:36
|
#6
|
|
Junior Mamber
Join Date: Apr 2004
Posts: 30
|
Re: Best method of displaying dynamic (non-static) pages
I'm also looking for a methode to write php code directly in the htmlarea editor... I've tried a mambot callled mosphp available here: www.mambobrothers.com
But I've got a Parse error in the script!!!
So if you find a way to do that tell me!
|
|
|
08.04.2004, 23:36
|
#7
|
|
Expert Mamber
Join Date: Mar 2004
Posts: 202
|
Re: Best method of displaying dynamic (non-static) pages
You can create a simple component as well if you wish to have php. You can also use the php mambot that you can find at http://www.mambobrothers.com
|
|
|
08.04.2004, 23:40
|
#8
|
|
Senior Mamber
Join Date: Apr 2004
Posts: 125
|
Re: Best method of displaying dynamic (non-static) pages
ok, i've tried now and it woorks, but you have to call your file whatever.php
look at this: [LINK DELETED]
source of caca.php
<?php
echo "writed with php";
?>
Last edited by coke; 14.05.2004 at 01:48.
|
|
|
09.04.2004, 01:39
|
#9
|
|
Junior Mamber
Join Date: Apr 2004
Location: Minnesota, USA
Posts: 26
|
Re: Best Method of Diplaying non-static pages
Quote:
|
Originally Posted by mmx
Have you considered using Content section or Content categories for your FAQ?
If the FAQ is simple and you do not need categories, create a section called FAQ, but do not publish it, then create a category called FAQ under it. You can then create FAQ items for the category and publish it. ......
|
Thats a cool idea, thanks, but it doesn't fix the eraseing php code issue.
keliix06, Can you tell me what the file is called please? I will try it!!
Thanks
|
|
|
09.04.2004, 17:22
|
#10
|
|
Junior Mamber
Join Date: Apr 2004
Location: Minnesota, USA
Posts: 26
|
Re: Best method of displaying dynamic (non-static) pages
Very Close!!!
I created a folder called com_fish
added a file called fish.php inside it and publish and all is working well. Now I want to link to a file and dynamicaly call the page with a link, it works, but it displays outside the mambo template. (here is the link)
<a href="components/com_fish/FishNFO.php?FishID=14235" target="_self">Walleye</a>
Sorry for the dumb question. Can someone tell me what my mistake is (or point me to the manual ?)
Thanks!
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT +2. The time now is 17:47.
|
|
|
|