

![]() |
| | Thread Tools | Display Modes |
| |||
|
Is there any way to use $pagename to set a page name for static pages created? I need to set this for a new page I created to be able to modify the sidebar when this page loads.
|
| ||||
|
This one: PHP Code: |
| |||
|
I tried that - but on the static pages created through the admin panel this shows up as text for some reason. Any ideas?
|
| ||||
|
CMStheme: You can't use smarty tags in the page content like that because it treats the text input the same as it would for a story.
The Twitter Module for Pligg CMS! Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites! |
| |||
|
Would it be a better solution to create a new php page with $pagename, a .tpl and just load that tpl in the php page?
|
| ||||
|
Well, how many pages are you going to create and do you want the sidebar to appear on all of them? There is an existing pagename variable for all pages if you use... Code: {if $pagename eq "page"} This is a page {/if} The Twitter Module for Pligg CMS! Register, Login, and Submit Stories with Twitter. An absolute MUST HAVE for all Pligg sites! |
| |||
|
you can check if the pagename is a page and then check for $posttitle which contains the actual page title. {if $pagename eq "page"} {$posttitle}{/if} Hope this helps. |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Pages Pagename Value | teachwny | Questions and Comments | 1 | 07-12-2009 03:29 AM |
| Trouble getting user 'inbox' to display on new pages | betagirl | Questions and Comments | 1 | 07-19-2007 06:06 PM |
| Creating Static Pages... | SoapTaco | Questions and Comments | 2 | 06-02-2007 05:11 PM |
| creating static pages? | stevelucky | Questions and Comments | 0 | 06-29-2006 03:06 PM |
| Multiple Pages of Top Pliggers even when there aren't many | nickaster | Questions and Comments | 1 | 04-16-2006 07:41 PM |