Creating new template pages

Register an Account
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 09-19-2007, 12:43 AM
New Pligger
 
Join Date: Aug 2007
Posts: 3
I've searched a bunch, but I haven't found an answer to this question yet:

I'm developing a pligg site with a custom template. I want to add some new pages to my template that don't come with the standard pligg install. For example, I want to create an "About" page explaining the site. I also want to create a "Contact" page and a blog. I'd like these pages to include the pligg header, footer, and sidebar, so I assume I need a new .tpl file.

Creating the .tpl is easy (just a text file), but how do I link to it? How do I make sure that when that URL is called from a link on my pligg site, the header, footer, and sidebar are included in the resulting page? I don't even know exactly how to call the URL, all the URLs in pligg are something like <a href="{$URL_submit}">

Basically, how do I add more templated pages to pligg?

Thanks for the help!
Reply With Quote
  #2 (permalink)  
Old 09-19-2007, 01:19 AM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,445
Pligg comes with an about page template in which you can edit at template/faq-eng_center.tpl
Pligg also comes with a contact module which will do exactly as you described above.
You may also want to check out Understanding Pligg Template Files
Reply With Quote
  #3 (permalink)  
Old 09-21-2007, 01:17 AM
New Pligger
 
Join Date: Aug 2007
Posts: 3
Thanks Chuck, that's helpful. But I still have the need to add some other pages that don't come with pligg.

I've checked out the understanding pligg template files post, which is helpful, but I guess I'm still not there yet. For example, when I create my new .tpl file, do I just need to put {config_load file=”/libs/lang.conf”} in the top and that's it?

Then, how do I call that new .tpl page? What should I link my internal navigation to? I assume this involves setting up a new variable or something, but I'm not sure how or where to do that.
Reply With Quote
  #4 (permalink)  
Old 09-21-2007, 01:48 AM
chuckroast's Avatar
Pligg Developer/Coder/Designer
Pligg Version: SVN
Pligg Template: Social Pro Kit
 
Join Date: Jun 2006
Posts: 5,445
If you look at faq.php and faq-eng_center.tpl you can see how everything is called, you can also copy those and create a new name, edit the php file to point to the newly named tpl file and just add anything you want in there to easily create new pages. Then you can freely add links to those pages anywhere you want..
Reply With Quote
  #5 (permalink)  
Old 09-21-2007, 07:58 AM
Constant Pligger
Pligg Version: 9.7
Pligg Template: Yget
 
Join Date: Nov 2006
Posts: 154
fatbyjhnsn, if you're looking at creating custom pligg pages, take a look at this.
http://forums.pligg.com/suggestions/...e-support.html

Check out the reply from disier, I think that's what you're looking for.
Reply With Quote
  #6 (permalink)  
Old 09-21-2007, 10:55 PM
not2serious's Avatar
Pligg Donor
Pligg Version: 1.1.5
Pligg Template: Westie
 
Join Date: Apr 2007
Location: East Coast, USA
Posts: 229
You may also want to take a look at this thread: http://forums.pligg.com/general-help...n-nav-bar.html
Reply With Quote
  #7 (permalink)  
Old 09-29-2007, 01:16 AM
davemackey's Avatar
Pligg Donor
Pligg Version: 9.9.
Pligg Template: siChunkBlue
 
Join Date: Aug 2007
Location: Langhorne, PA
Posts: 226
Just figured I'd say thanks to all who posted here. I had the same question and you guys gave some great material to read up on.
David.
Reply With Quote
  #8 (permalink)  
Old 10-01-2007, 10:35 PM
New Pligger
 
Join Date: Aug 2007
Posts: 3
Thanks everyone! nothingman, I think you gave me exactly what I want. Back to work...
Reply With Quote
  #9 (permalink)  
Old 10-17-2007, 05:25 AM
New Pligger
 
Join Date: Oct 2007
Posts: 1
Thanks, that's helpful
Reply With Quote
  #10 (permalink)  
Old 02-08-2008, 02:36 PM
New Pligger
Pligg Version: 9.8.1
Pligg Template: Blue-Eye Template
 
Join Date: Nov 2007
Location: USA
Posts: 6
Fatal error: Cannot redeclare shortentext() (previously declared in /home/gilberto/domains/real-estate-mini-sites.com/public_html/sidebar_comments.php:45) in /home/gilberto/domains/real-estate-mini-sites.com/public_html/sidebar_comments.php on line 45
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
MacBlue Free Pligg Template by Yankidank Yankidank Free Templates 18 01-20-2009 03:05 PM
Template Files Yankidank Wiki Articles 1 12-06-2008 03:14 PM
help:You may have typed the template name wrong or it does not exist llmsn Questions and Comments 8 10-28-2008 12:41 AM
Error: You may have typed the template name wrong or it does not exist. phlexus Questions and Comments 2 06-02-2007 02:42 AM
9.1 :: Errors keep pouring in after succesfully Creating Tables The Edifier Questions and Comments 1 05-01-2007 02:15 PM


Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Make a donation to support Pligg CMS development