Pligg CMS Forums


Go Back   Pligg CMS Forum > Pligg Help > Customization Assistance



Creating new template pages

Questions about customizing your Pligg site.


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 09-18-2007, 11:43 PM
New Pligger
 
Join Date: Aug 2007
Posts: 3
Creating new template pages

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
Sponsor
  #2 (permalink)  
Old 09-19-2007, 12:19 AM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: Shredit
 
Join Date: Jun 2006
Location: PA
Posts: 3,390
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


Thank this developer

Get the Pligg 1.0 Module Pack and more ---> download here




Reply With Quote
  #3 (permalink)  
Old 09-21-2007, 12: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, 12:48 AM
chuckroast's Avatar
Coder/Designer
Pligg Version: 1.0
Pligg Template: Shredit
 
Join Date: Jun 2006
Location: PA
Posts: 3,390
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..


Thank this developer

Get the Pligg 1.0 Module Pack and more ---> download here




Reply With Quote
  #5 (permalink)  
Old 09-21-2007, 06:58 AM
Constant Pligger
Pligg Version: 9.7
Pligg Template: Yget
 
Join Date: Nov 2006
Posts: 161
fatbyjhnsn, if you're looking at creating custom pligg pages, take a look at this.
Simple Static Page Support...

Check out the reply from disier, I think that's what you're looking for.
Reply With Quote
  #6 (permalink)  
Old 09-21-2007, 09:55 PM
not2serious's Avatar
Pligg Donor
Pligg Version: v0.96 w/modifications
Pligg Template: Yget w/modifications
 
Join Date: Apr 2007
Location: East Coast, USA
Posts: 226
You may also want to take a look at this thread: Howto Ad additional navigation to nav bar?

My Pligg Site: Critique My Art
My Arts Directory: Links 2 Arts
Reply With Quote
  #7 (permalink)  
Old 09-29-2007, 12:16 AM
davemackey's Avatar
Pligg Donor
Pligg Version: 9.9.
Pligg Template: siChunkBlue
 
Join Date: Aug 2007
Location: Langhorne, PA
Posts: 286
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, 09: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, 04:25 AM
New Pligger
 
Join Date: Oct 2007
Posts: 1
Thanks, that's helpful
Reply With Quote
  #10 (permalink)  
Old 02-08-2008, 01:36 PM
New Pligger
Pligg Version: 9.8.1
Pligg Template: Blue-Eye Template
 
Join Date: Nov 2007
Location: USA
Posts: 7
Applying these mods I get a Fatal error

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 Pligg Templates 18 01-20-2009 02:05 PM
help:You may have typed the template name wrong or it does not exist llmsn Installation and Upgrade Help 8 10-27-2008 11:41 PM
Creating Static Pages... SoapTaco General Help 2 06-02-2007 04:11 PM
Error: You may have typed the template name wrong or it does not exist. phlexus Installation and Upgrade Help 2 06-02-2007 01:42 AM
9.1 :: Errors keep pouring in after succesfully Creating Tables The Edifier Installation and Upgrade Help 1 05-01-2007 01:15 PM

Pligg Modules and Pligg Templates from Pligg Pro Find support on the Pligg CMS Forum - 24 hours a day! Use the coupon code PLIGG at Dreamhost.com to receive a discount of up to $84.00 Make a donation to support Pligg CMS development